$SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_guest_menu (action, what, title, sort, visible, locked) VALUES ('main', 'active', 'Heute Online', 10, 'N', 'Y')";
// Load CSS file?
- $EXT_CSS = 'Y';
+ $EXT_CSS = "Y";
break;
case "remove": // Do stuff when removing extension
break;
case "0.0.5": // SQL queries for v0.0.5
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD active_limit bigint(20) not null default '10'";
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD active_limit BIGINT(20) NOT NULL DEFAULT '10'";
$SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_admin_menu (action, what, title, descr, sort) VALUES('setup', 'config_active', 'Aktiv-Liste', 'Einstellungen an der Aktiv-Liste (<STRONG>Heute Online</STRONG> im Gastbereich) vornehmen.', 8)";
// Update notes (these will be set as task text!)
break;
default: // Do stuff when extension is loaded
- $DUMMY = LOAD_CONFIG("0");
- $_CONFIG['active_limit'] = $DUMMY['active_limit']; // Only display X most active users for today
- unset($DUMMY);
+ $dummy = LOAD_CONFIG();
+ $_CONFIG = merge_array($_CONFIG, $dummy);
+ unset($dummy);
break;
}
// Language file prefix
$EXT_LANG_PREFIX = "active";
// Extension is always active?
-$EXT_ALWAYS_ACTIVE = 'N';
+$EXT_ALWAYS_ACTIVE = "N";
//
?>