]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-repair_amnu.php
Typos fixed + keep fake modules hidden
[mailer.git] / inc / modules / admin / what-repair_amnu.php
index 6aa9f0c4a1caa69bd0144487da5c557b22174775..a06cbdc6e8a40698af77c4c5ba4418213a1e5228 100644 (file)
@@ -16,8 +16,8 @@
  * $Author::                                                          $ *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009, 2010 by Mailer Developer Team                    *
- * For more information visit: http://www.mxchange.org                  *
+ * Copyright (c) 2009 - 2012 by Mailer Developer Team                   *
+ * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
  * it under the terms of the GNU General Public License as published by *
@@ -41,7 +41,7 @@ if ((!defined('__SECURITY')) || (!isAdmin())) {
 } // END - if
 
 // Add description as navigation point
-addMenuDescription('admin', __FILE__);
+addYouAreHereLink('admin', __FILE__);
 
 $actions = array();
 
@@ -50,7 +50,7 @@ $result_fix = SQL_QUERY("SELECT `id`, `action` FROM `{?_MYSQL_PREFIX?}_admin_men
 $count = '0'; $repairedWeights = '0';
 while ($content = SQL_FETCHARRAY($result_fix)) {
        // Store act value for later usage in sorting sub menus
-       $actions[] = $content['action'];
+       array_push($actions, $content['action']);
 
        // Fix weight
        SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_admin_menu` SET sort=%s WHERE `id`=%s LIMIT 1",
@@ -82,13 +82,13 @@ foreach ($actions as $action) {
 
 // Repair finished
 if ($repairedWeights > 0) {
-       $message = getMaskedMessage('ADMIN_REPAIR_ENTRIES_FIXED', $repairedWeights);
+       $message = '{%message,ADMIN_REPAIR_ENTRIES_FIXED=' . $repairedWeights . '%}';
 } else {
        $message = '{--ADMIN_REPAIR_NOTHING_FIXED--}';
 }
 
 // Output message
-loadTemplate('admin_settings_saved', false, $message);
+displayMessage($message);
 
 // [EOF]
 ?>