From: Roland Häder Date: Tue, 12 Jul 2011 22:49:54 +0000 (+0000) Subject: Some fixes: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c81276edfc54bdaca50489f739d67ad592825197;p=mailer.git Some fixes: - what-repair_refs.php does now check for latest ext-user - Drop of 'user_refs' moved from ext-refback to ext-user (opps!) --- diff --git a/inc/extensions/ext-refback.php b/inc/extensions/ext-refback.php index 1f46156fc3..d871246fc9 100644 --- a/inc/extensions/ext-refback.php +++ b/inc/extensions/ext-refback.php @@ -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; diff --git a/inc/extensions/ext-user.php b/inc/extensions/ext-user.php index 4a65c5d0c9..17ea3ebeba 100644 --- a/inc/extensions/ext-user.php +++ b/inc/extensions/ext-user.php @@ -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'"); diff --git a/inc/modules/admin/what-repair_refs.php b/inc/modules/admin/what-repair_refs.php index fd567dd7d1..2613442d51 100644 --- a/inc/modules/admin/what-repair_refs.php +++ b/inc/modules/admin/what-repair_refs.php @@ -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');