]> git.mxchange.org Git - mailer.git/commitdiff
Some fixes:
authorRoland Häder <roland@mxchange.org>
Tue, 12 Jul 2011 22:49:54 +0000 (22:49 +0000)
committerRoland Häder <roland@mxchange.org>
Tue, 12 Jul 2011 22:49:54 +0000 (22:49 +0000)
- what-repair_refs.php does now check for latest ext-user
- Drop of 'user_refs' moved from ext-refback to ext-user (opps!)

inc/extensions/ext-refback.php
inc/extensions/ext-user.php
inc/modules/admin/what-repair_refs.php

index 1f46156fc39249f9bc913762b8b48f0bf72a6e37..d871246fc9e646c224f2972f589815c3d47d62eb 100644 (file)
@@ -57,7 +57,6 @@ switch (getExtensionMode()) {
 
        case 'remove': // Do stuff when removing extension
                // SQL commands to run
-               addDropTableSql('user_refs');
                addExtensionSql("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_member_menu` WHERE `what`='refback'");
                addExtensionSql("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_admin_menu` WHERE `what` IN('config_refback','list_refback')");
                break;
index 4a65c5d0c9719926e9de3797f0902b193a104537..17ea3ebebad79102207d3c8de0d0b3b2650a5391 100644 (file)
@@ -177,6 +177,7 @@ INDEX (`stats_type`)",
                addDropTableSql('user_data');
                addDropTableSql('user_points');
                addDropTableSql('user_links');
+               addDropTableSql('user_refs');
                addDropTableSql('user_stats');
                addDropTableSql('user_stats_data');
                addExtensionSql("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_admin_menu` WHERE `what` IN('config_user','user_contct','list_user_del') OR `action`='user'");
index fd567dd7d1676fa7e19f23ac451a02ab92aa186b..2613442d51c35184319ce4cc946ba505d4eb6e6f 100644 (file)
@@ -43,6 +43,13 @@ if ((!defined('__SECURITY')) || (!isAdmin())) {
 // Add description as navigation point
 addYouAreHereLink('admin', __FILE__);
 
+// Extension ext-user must be at least v0.4.4
+if (isExtensionInstalledAndOlder('user', '0.4.4')) {
+       // Display outdated-message and exit
+       displayMessage(generateExtensionOutdatedMessage('user', '0.4.4'));
+       return;
+} // END - if
+
 // Just include fix_refsystem.php again
 loadIncludeOnce('inc/fix_refsystem.php');