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