1: <?php
2: /**
3: * This file contains the upgrade job 11.
4: *
5: * @package Setup
6: * @subpackage UpgradeJob
7: * @version SVN Revision $Rev:$
8: *
9: * @author Frederic Schneider
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 11.
20: * Update the old system property for insite editing
21: *
22: * @package Setup
23: * @subpackage UpgradeJob
24: */
25: class cUpgradeJob_0011 extends cUpgradeJobAbstract {
26:
27: public $maxVersion = "4.9.0";
28:
29: public function _execute() {
30: global $cfg, $db;
31:
32: if ($this->_setupType == 'upgrade') {
33: $sql = "UPDATE `" . $cfg['tab']['system_prop'] . "` SET `name` = 'insite_editing_activated' WHERE `name` = 'insight_editing_activated'";
34: $db->query($sql);
35:
36: $db->query("DELETE FROM " . $cfg["tab"]["system_prop"] . " WHERE `name` = 'available' AND `type`='imagemagick'");
37: }
38: }
39: }
40: