From: Roland Häder Date: Thu, 29 Oct 2009 04:04:44 +0000 (+0000) Subject: Default theme added (opps?) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=abf0306300d9abda6ad84dffc7b0be326f978978;p=mailer.git Default theme added (opps?) --- diff --git a/inc/extensions/ext-theme.php b/inc/extensions/ext-theme.php index a44d29b92c..840a7aba65 100644 --- a/inc/extensions/ext-theme.php +++ b/inc/extensions/ext-theme.php @@ -39,13 +39,13 @@ // Some security stuff... if (!defined('__SECURITY')) { die(); -} +} // END - if // Version number -setThisExtensionVersion('0.0.8'); +setThisExtensionVersion('0.0.9'); // Version history array (add more with , '0.1.0' and so on) -setExtensionVersionHistory(array('0.0', '0.0.1', '0.0.2', '0.0.3', '0.0.4', '0.0.5', '0.0.6', '0.0.7', '0.0.8')); +setExtensionVersionHistory(array('0.0', '0.0.1', '0.0.2', '0.0.3', '0.0.4', '0.0.5', '0.0.6', '0.0.7', '0.0.8', '0.0.9')); switch (getExtensionMode()) { case 'register': // Do stuff when installation is running (modules.php?module=admin is called) @@ -77,8 +77,7 @@ switch (getExtensionMode()) { break; case 'update': // Update an extension - switch (getCurrentExtensionVersion()) - { + switch (getCurrentExtensionVersion()) { case '0.0.1': // SQL queries for v0.0.1 // Update notes (these will be set as task text!) setExtensionUpdateNotes("HTML-Code für ein Zeilen-Template ausgelagert."); @@ -149,6 +148,14 @@ INDEX (`theme_active`) // Update notes (these will be set as task text!) setExtensionUpdateNotes("Update von sql_patches übertragen. (Kann Fehlermeldungen verursacht haben!)"); break; + + case '0.0.9': // SQL queries for v0.0.9 + // Config SQL + addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_config` ADD `default_theme` VARCHAR(255) NOT NULL DEFAULT 'default'"); + + // Update notes (these will be set as task text!) + setExtensionUpdateNotes("Fehlende Konfiguration hinzugefügt."); + break; } break; diff --git a/inc/modules/admin/what-theme_edit.php b/inc/modules/admin/what-theme_edit.php index c768b1eae0..a5d849245f 100644 --- a/inc/modules/admin/what-theme_edit.php +++ b/inc/modules/admin/what-theme_edit.php @@ -83,7 +83,7 @@ if ($SEL > 0) { // Output generated? if (empty($OUT)) $OUT = getMessage('ADMIN_THEME_NO_OUTPUT'); -} elseif (isGetRequestElementSet(('default_theme'))) { +} elseif (isGetRequestElementSet('default_theme')) { // Escape string from input $postData['default_theme'] = getRequestElement('default_theme');