// SQL commands to run
$SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_guest_menu (action, what, title, visible, locked, sort) VALUES ('main', 'top10', 'TOP-10', 'Y', 'Y', 7)";
$SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_admin_menu (action, what, title, descr, sort) VALUES ('setup', 'config_top10', 'TOP-10 Listen', 'Stellen Sie hier ein, wie lang die TOP-Listen sein sollen, also wie viele Plätze angezeigt werden sollen.', 8)";
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD top10_max tinyint(4) not null default '10'";
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD top10_max TINYINT(3) UNSIGNED NOT NULL DEFAULT '10'";
// Load CSS file?
- $EXT_CSS = 'Y';
+ $EXT_CSS = "Y";
break;
case "remove": // Do stuff when removing extension
case "0.0.8": // SQL queries for v0.0.8
// Update notes (these will be set as task text!)
- $UPDATE_NOTES = "Seit <A href=\"".SERVER_URL."/patches/340-Gast_Mitgliedsmenue_Deaktivieren.zip\">Patch 340</A> überflüssige HTML-Tags entfernt.";
+ $UPDATE_NOTES = "Seit <A href=\"#\">Patch 340</A> überflüssige HTML-Tags entfernt.";
break;
case "0.0.9": // SQL queries for v0.0.9
break;
default: // Do stuff when extension is loaded
- $DUMMY = LOAD_CONFIG("0");
- $_CONFIG['top10_max'] = $DUMMY['top10_max'];
- unset($DUMMY);
+ $dummy = LOAD_CONFIG();
+ $_CONFIG = merge_array($_CONFIG, $dummy);
+ unset($dummy);
break;
}
$EXT_LANG_PREFIX = "top10";
// Extension is always active?
-$EXT_ALWAYS_ACTIVE = 'N';
+$EXT_ALWAYS_ACTIVE = "N";
//
?>