X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fextensions%2Fext-active.php;h=eb2bcfc61fc557f2f001d9dfc01c5ebceac9e87d;hb=5ab0d021f3e96722af5d96d2b9036430200c06cb;hp=e144a5698d1c352da29cdb335e90f1dd0bcc286e;hpb=8268379f7f0f38f5cd605714ecd5cbfacff0e282;p=mailer.git diff --git a/inc/extensions/ext-active.php b/inc/extensions/ext-active.php index e144a5698d..eb2bcfc61f 100644 --- a/inc/extensions/ext-active.php +++ b/inc/extensions/ext-active.php @@ -1,7 +1,7 @@ Heute Online im Gastbereich) vornehmen.', 8); + addConfigAddSql('active_limit', 'BIGINT(20) UNSIGNED NOT NULL DEFAULT 10'); + addAdminMenuSql('setup', 'config_active', 'Aktiv-Liste', 'Einstellungen an der Aktiv-Liste (Heute Online im Gastbereich) vornehmen.', 8); // Update notes (these will be set as task text!) setExtensionUpdateNotes("Aktiven-Liste im Gastbereich ist nun einschränkbar."); @@ -118,31 +117,31 @@ switch (getExtensionMode()) { break; case '0.0.9': // SQL queries for v0.0.9 - // Make update depending on 'online' - addExtensionUpdateDependency('online'); + // Make update depending on ext-online + addExtensionDependency('online'); // Register filter - registerFilter('online_extra_links', 'ADD_LINK_ACTIVE_LIST', false, true, getExtensionDryRun()); + registerFilter(__FILE__, __LINE__, 'online_extra_links', 'ADD_LINK_ACTIVE_LIST', FALSE, TRUE, isExtensionDryRun()); // Update notes (these will be set as task text!) setExtensionUpdateNotes("Filter für den "Wer ist Online" Block hinzugefügt und ist von online abhängig."); break; - } + } // END - switch break; case 'modify': // When the extension got modified break; - case 'test': // For testing purposes. For details see file inc/modules/admin/what-extensions.php, arround line 305. + case 'test': // For testing purposes break; case 'init': // Do stuff when extension is initialized break; default: // Unknown extension mode - DEBUG_LOG(__FILE__, __LINE__, sprintf("Unknown extension mode %s detected.", getExtensionMode())); + reportBug(__FILE__, __LINE__, sprintf("Unknown extension mode %s in extension %s detected.", getExtensionMode(), getCurrentExtensionName())); break; -} +} // END - switch // [EOF] ?>