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;
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'");
// 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');