]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-optimize.php
Fixes loading of network type config
[mailer.git] / inc / modules / admin / what-optimize.php
index 04a054eab4b337f472a931244d5169b052770725..571df6957cc8b42f97dab9e89ab9f2156c781da3 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 - 2011 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,14 +41,14 @@ if ((!defined('__SECURITY')) || (!isAdmin())) {
 } // END - if
 
 // Add description as navigation point
-addMenuDescription('admin', __FILE__);
+addYouAreHereLink('admin', __FILE__);
 
 // Optimize and repair database and return the result as a multi-dimensional array
-$DATA = repairOptimizeDatabase();
+$content = repairOptimizeDatabase();
 
 // Output rows
 $gain_tabs = '0'; $OUT = '';
-foreach ($DATA['tables'] as $row_array) {
+foreach ($content['tables'] as $row_array) {
        // Init variables
        $B1 = ''; $B2 = '';
 
@@ -68,7 +68,7 @@ foreach ($DATA['tables'] as $row_array) {
        }
 
        // Prepare data for the row template
-       $content = array(
+       $row = array(
                'b1'  => $B1,
                'b2'  => $B2,
                'tpl' => $row_array[0],
@@ -79,12 +79,9 @@ foreach ($DATA['tables'] as $row_array) {
        );
 
        // Load row template and switch color
-       $OUT .= loadTemplate('admin_optimize_row', true, $content);
+       $OUT .= loadTemplate('admin_optimize_row', true, $row);
 } // END - foreach
 
-// Transfer main data
-$content = $DATA;
-
 // Remember rows
 $content['rows'] = $OUT;