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