]> git.mxchange.org Git - mailer.git/blobdiff - inc/extensions/ext-theme.php
A lot rewrites from double-quote to single-quote, some fixes for extension handling...
[mailer.git] / inc / extensions / ext-theme.php
index 21c0b0c08cf0d42e1702e6e42de379a16616dbf4..9ba001ca64c815935f23ff99bab898d04370dfdc 100644 (file)
@@ -43,18 +43,18 @@ if (!defined('__SECURITY')) {
 }
 
 // Version number
-EXT_SET_VERSION("0.0.8");
+EXT_SET_VERSION('0.0.8');
 
-// Version history array (add more with , "0.1" and so on)
-EXT_SET_VER_HISTORY(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"));
+// Version history array (add more with , '0.1.0' and so on)
+EXT_SET_VER_HISTORY(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'));
 
 switch ($EXT_LOAD_MODE)
 {
-case "register": // Do stuff when installation is running (modules.php?module=admin&action=login is called)
+case 'register': // Do stuff when installation is running (modules.php?module=admin&action=login is called)
        // SQL commands to run
        break;
 
-case "remove": // Do stuff when removing extension
+case 'remove': // Do stuff when removing extension
        // Drop theme table
        ADD_EXT_SQL("DROP TABLE IF EXISTS `{!_MYSQL_PREFIX!}_themes`");
 
@@ -68,55 +68,55 @@ case "remove": // Do stuff when removing extension
        ADD_EXT_SQL("DELETE LOW_PRIORITY FROM `{!_MYSQL_PREFIX!}_member_menu` WHERE `action`='themes' OR `what`='themes'");
        break;
 
-case "activate": // Do stuff when admin activates this extension
+case 'activate': // Do stuff when admin activates this extension
        // SQL commands to run
        ADD_EXT_SQL("");
        break;
 
-case "deactivate": // Do stuff when admin deactivates this extension
+case 'deactivate': // Do stuff when admin deactivates this extension
        // SQL commands to run
        ADD_EXT_SQL("");
        break;
 
-case "update": // Update an extension
+case 'update': // Update an extension
        switch ($EXT_VER)
        {
-       case "0.0.1": // SQL queries for v0.0.1
+       case '0.0.1': // SQL queries for v0.0.1
                // Update notes (these will be set as task text!)
                EXT_SET_UPDATE_NOTES("HTML-Code für ein Zeilen-Template ausgelagert.");
                break;
 
-       case "0.0.2": // SQL queries for v0.0.2
+       case '0.0.2': // SQL queries for v0.0.2
                // Update notes (these will be set as task text!)
                EXT_SET_UPDATE_NOTES("Abspeichern von Einstellungen repariert.");
                break;
 
-       case "0.0.3": // SQL queries for v0.0.3
+       case '0.0.3': // SQL queries for v0.0.3
                // Update notes (these will be set as task text!)
                EXT_SET_UPDATE_NOTES("Im Menüpunkt "Prüfen" wurden die bereits installierten und auch aktuellen Themes nicht ausgeblendet.");
                break;
 
-       case "0.0.4": // SQL queries for v0.0.4
+       case '0.0.4': // SQL queries for v0.0.4
                // Update notes (these will be set as task text!)
                EXT_SET_UPDATE_NOTES("Sicherheitsupdate für die Include-Befehle.");
                break;
 
-       case "0.0.5": // SQL queries for v0.0.5
+       case '0.0.5': // SQL queries for v0.0.5
                // Update notes (these will be set as task text!)
                EXT_SET_UPDATE_NOTES("<strong>set_session()</strong> mit @-Zeichen gegen ungewollte Ausgaben abgesichert.");
                break;
 
-       case "0.0.6": // SQL queries for v0.0.6
+       case '0.0.6': // SQL queries for v0.0.6
                // Update notes (these will be set as task text!)
                EXT_SET_UPDATE_NOTES("Variablen-Handling skriptglobal ge&auml;ndert.");
                break;
 
-       case "0.0.7": // SQL queries for v0.0.7
+       case '0.0.7': // SQL queries for v0.0.7
                // Update notes (these will be set as task text!)
                EXT_SET_UPDATE_NOTES("Ung&uuml;ltiges Update.");
                break;
 
-       case "0.0.8": // SQL queries for v0.0.8
+       case '0.0.8': // SQL queries for v0.0.8
                // Theme table
                ADD_EXT_SQL("DROP TABLE IF EXISTS `{!_MYSQL_PREFIX!}_themes`");
                ADD_EXT_SQL("CREATE TABLE `{!_MYSQL_PREFIX!}_themes` (
@@ -154,10 +154,10 @@ INDEX (`theme_active`)
        }
        break;
 
-case "modify": // When the extension got modified
+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. For details see file inc/modules/admin/what-extensions.php, arround line 305.
        break;
 
 default: // Do stuff when extension is loaded