// Keep this extension active!
} else {
// De/activate extension
- $ACT = 'N'; getExtensionMode('deactivate');
+ $ACT = 'N'; setExtensionMode('deactivate');
if ($active != 'Y') { $ACT = 'Y'; setExtensionMode('activate'); }
SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_extensions` SET `ext_active`='".$ACT."' WHERE `id`=%s AND `ext_active`='%s' LIMIT 1",
- array(bigintval($ext_id), $active), __FILE__, __LINE__);
+ array(bigintval($ext_id), $active), __FILE__, __LINE__);
// Run embeded SQL commands
doExtensionSqls($ext_id, getExtensionMode());
// Change this extension?
if ($sel == 1) {
// Load mode is modify
- getExtensionMode('modify');
+ setExtensionMode('modify');
// Get entry for 'active'
$active = postRequestElement('active', $ext_id);