1: <?php
2: /**
3: * This file contains the upgrade job 3.
4: *
5: * @package Setup
6: * @subpackage UpgradeJob
7: * @author Murat Purc <murat@purc>
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:
14: defined('CON_FRAMEWORK') || die('Illegal call: Missing framework initialization - request aborted.');
15:
16: /**
17: * Upgrade job 3.
18: * Runs the upgrade job for convert date time and urldecode.
19: *
20: * @package Setup
21: * @subpackage UpgradeJob
22: */
23: class cUpgradeJob_0003 extends cUpgradeJobAbstract {
24:
25: public $maxVersion = "4.9.0-beta1";
26:
27: public function _execute() {
28: global $cfg;
29:
30: convertToDatetime($this->_oDb, $cfg);
31: if ($_SESSION['setuptype'] == 'upgrade') { // we don't want this to happen during the setup since it would decode the example client which is already decoded
32: urlDecodeTables($this->_oDb);
33: }
34: }
35:
36: }
37: