1: <?php
2: /**
3: * This file contains the upgrade job 3.
4: *
5: * @package Setup
6: * @subpackage UpgradeJob
7: * @version SVN Revision $Rev:$
8: *
9: * @author Murat Purc <murat@purc>
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:
16: defined('CON_FRAMEWORK') || die('Illegal call: Missing framework initialization - request aborted.');
17:
18: /**
19: * Upgrade job 3.
20: * Runs the upgrade job for convert date time and urldecode.
21: *
22: * @package Setup
23: * @subpackage UpgradeJob
24: */
25: class cUpgradeJob_0003 extends cUpgradeJobAbstract {
26:
27: public $maxVersion = "4.9.0-beta1";
28:
29: public function _execute() {
30: global $cfg;
31:
32: convertToDatetime($this->_oDb, $cfg);
33: 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
34: urlDecodeTables($this->_oDb);
35: }
36: }
37:
38: }
39: