Fixes/improvements, missing version 0.1.3 for ext-autpurge added
authorRoland Häder <roland@mxchange.org>
Mon, 4 Jul 2011 08:14:06 +0000 (08:14 +0000)
committerRoland Häder <roland@mxchange.org>
Mon, 4 Jul 2011 08:14:06 +0000 (08:14 +0000)
inc/extensions/ext-autopurge.php
inc/extensions/ext-iso3166.php
inc/mysql-manager.php

index 1fc0951f73efffc2b39104f602de25d427e9febe..83d8af65ea1b4509ce549840ebaabe61111b168c 100644 (file)
@@ -94,7 +94,7 @@ switch (getExtensionMode()) {
                                addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_user_data` ADD `ap_notified` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0");
 
                                // Update notes (these will be set as task text!)
-                               setExtensionUpdateNotes("Automatisches L&ouml:schen von inaktiven bzw. nicht best&auml;tigten Accounts hinzugef&uuml;gt.");
+                               setExtensionUpdateNotes("Automatisches L&ouml;schen von inaktiven bzw. nicht best&auml;tigten Accounts hinzugef&uuml;gt.");
                                break;
 
                        case '0.1.2': // SQL queries for v0.1.2
@@ -102,6 +102,11 @@ switch (getExtensionMode()) {
                                setExtensionUpdateNotes("Automatisches L&ouml;schen von als zu l&ouml;schen markierte Tasks hinzugef&uuml;gt.");
                                break;
 
+                       case '0.1.3': // SQL queries for v0.1.3
+                               // Update notes (these will be set as task text!)
+                               setExtensionUpdateNotes("Nicht mehr verwendetes Update.");
+                               break;
+
                        case '0.1.4': // SQL queries for v0.1.4
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Fehler <div class=\"notice\">Warning: Missing argument 2 for create_timestamp_from_selections() in {?PATH?}inc/libs/pro_functions.php on line 227</div> behoben.");
@@ -109,7 +114,6 @@ switch (getExtensionMode()) {
 
                        case '0.1.5': // SQL queries for v0.1.5
                                // Update notes (these will be set as task text!)
-
                                setExtensionUpdateNotes("Anstelle von <strong>ref_depth</strong> wurde <strong>level</strong> programmiert.");
                                break;
 
index 6eef445f3770537845f478e677bbd9c35010416a..8fa328ab83be5da425bc24ef5494f51503c4b9c2 100644 (file)
@@ -61,12 +61,12 @@ switch (getExtensionMode()) {
 
        case 'activate': // Do stuff when admin activates this extension
                // SQL commands to run
-               addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_countries` SET is_active = 'Y' WHERE provider = 'ext-iso3166';");
+               addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_countries` SET `is_active`='Y' WHERE `provider`='ext-iso3166';");
                break;
 
        case 'deactivate': // Do stuff when admin deactivates this extension
                // SQL commands to run
-               addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_countries` SET is_active='N' WHERE provider = 'ext-iso3166';");
+               addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_countries` SET `is_active`='N' WHERE `provider`='ext-iso3166';");
                break;
 
        case 'update': // Update an extension
index 4b9ee0e0138ad015586eaf8baec4091bb696f930..8a3d3335a46fffe65206be9239403969d5021330 100644 (file)
@@ -98,13 +98,16 @@ function addYouAreHereLink ($accessLevel, $FQFN, $return = false) {
                // This is a 'what file'!
                $type = 'what';
                $search = substr($file, 5);
-               $ADD = " AND `visible`='Y' AND `locked`='N'";
 
                // Get access level from it
                $modCheck = getModuleFromFileName($file, $accessLevel);
 
                // Do we have admin? Then display all
-               if (isAdmin()) $ADD = '';
+               $ADD = " AND `visible`='Y' AND `locked`='N'";
+               if (isAdmin()) {
+                       // Display all!
+                       $ADD = '';
+               } // END - if
 
                $dummy = substr($search, 0, -4);
                $ADD .= sprintf(" AND `action`='%s'", getActionFromModuleWhat($accessLevel, $dummy));