1: <?php
2: /**
3: * This file contains the upgrade job 15.
4: *
5: * @package Setup
6: * @subpackage UpgradeJob
7: * @version SVN Revision $Rev:$
8: *
9: * @author Mischa Holz
10: * @copyright four for business AG <www.4fb.de>
11: * @license http://www.contenido.org/license/LIZENZ.txt
12: * @link http://www.4fb.de
13: * @link http://www.contenido.org
14: */
15: defined('CON_FRAMEWORK') || die('Illegal call: Missing framework initialization - request aborted.');
16:
17: /**
18: * Upgrade job 15.
19: * Change the upload root folder from "/" to ""
20: *
21: * @package Setup
22: * @subpackage UpgradeJob
23: */
24: class cUpgradeJob_0015 extends cUpgradeJobAbstract {
25:
26: public $maxVersion = "4.9.4";
27:
28: public function _execute() {
29: global $db, $cfg;
30:
31: if ($_SESSION['setuptype'] == 'upgrade') {
32: $db->query('UPDATE ' . $cfg['tab']['upl'] . ' SET dirname="" WHERE dirname="/"');
33: }
34: }
35:
36: }
37: