]> git.mxchange.org Git - mailer.git/commitdiff
Added activation/deactivation queries for ext-beg and ext-theme
authorRoland Häder <roland@mxchange.org>
Mon, 8 Nov 2010 02:34:52 +0000 (02:34 +0000)
committerRoland Häder <roland@mxchange.org>
Mon, 8 Nov 2010 02:34:52 +0000 (02:34 +0000)
inc/extensions/ext-beg.php
inc/extensions/ext-theme.php

index d591d04bc894cde6bf5000bc8acacd7a2a631bb2..73010788cb8afd59afdb7f8070412269ee385429 100644 (file)
@@ -80,7 +80,7 @@ PRIMARY KEY (`id`)
        case 'activate': // Do stuff when admin activates this extension
                // SQL commands to run
                addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_guest_menu` SET `visible`='Y', `locked`='N' WHERE `what`='beg' LIMIT 1");
-               addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_member_menu` SET `visible`='Y', `locked`='N' WHERE `what`='beg' LIMIT 1");
+               addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_member_menu` SET `visible`='Y', `locked`='N' WHERE `what` IN ('beg','beg2') LIMIT 2");
                addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_mod_reg` SET `locked`='N', `hidden`='N', `admin_only`='N', `mem_only`='N' WHERE `module`='beg' LIMIT 1");
                break;
 
index 94cad5d9d6ed5118f85452b843a5343306232904..54df06813f8caae7b97b6878d7a083d6b3bec27e 100644 (file)
@@ -71,12 +71,14 @@ switch (getExtensionMode()) {
 
        case 'activate': // Do stuff when admin activates this extension
                // SQL commands to run
-               addExtensionSql('');
+               addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_guest_menu` SET `visible`='Y', `locked`='N' WHERE `action`='theme' LIMIT 1");
+               addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_member_menu` SET `visible`='Y', `locked`='N' WHERE `action`='theme' OR `what`='theme' LIMIT 2");
                break;
 
        case 'deactivate': // Do stuff when admin deactivates this extension
                // SQL commands to run
-               addExtensionSql('');
+               addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_guest_menu` SET `visible`='N', `locked`='Y' WHERE `action`='theme' LIMIT 1");
+               addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_member_menu` SET `visible`='N', `locked`='Y' WHERE `action`='theme' OR `what`='theme' LIMIT 2");
                break;
 
        case 'update': // Update an extension