X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fextensions%2Fext-top10.php;h=c764d09346913cb1060bcc269f23075f46b525e5;hb=3e64a94e122e30dd66db07fd8c8cfae05871c460;hp=4264841f3a70dffb42205a8cb5aeea227d67cc0c;hpb=1b4494c45790f1ba6808bb6a037d777147bd8f23;p=mailer.git
diff --git a/inc/extensions/ext-top10.php b/inc/extensions/ext-top10.php
index 4264841f3a..c764d09346 100644
--- a/inc/extensions/ext-top10.php
+++ b/inc/extensions/ext-top10.php
@@ -53,10 +53,10 @@ case "register": // Do stuff when installtion is running (modules.php?module=adm
// 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
@@ -116,7 +116,7 @@ case "update": // Update an extension
case "0.0.8": // SQL queries for v0.0.8
// Update notes (these will be set as task text!)
- $UPDATE_NOTES = "Seit Patch 340 überflüssige HTML-Tags entfernt.";
+ $UPDATE_NOTES = "Seit Patch 340 überflüssige HTML-Tags entfernt.";
break;
case "0.0.9": // SQL queries for v0.0.9
@@ -142,9 +142,9 @@ case "update": // Update an extension
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;
}
@@ -152,7 +152,7 @@ default: // Do stuff when extension is loaded
$EXT_LANG_PREFIX = "top10";
// Extension is always active?
-$EXT_ALWAYS_ACTIVE = 'N';
+$EXT_ALWAYS_ACTIVE = "N";
//
?>