]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/guest/what-stats.php
Some minor rewrites
[mailer.git] / inc / modules / guest / what-stats.php
index a9fa152534df32a2ee3597876dd0b44aeed8936b..8ee7333e604cc737409e723cdbe260035dcba170 100644 (file)
@@ -41,7 +41,7 @@ if (!defined('__SECURITY')) {
 } // END - if
 
 // Add description as navigation point
-addMenuDescription('guest', __FILE__);
+addYouAreHereLink('guest', __FILE__);
 
 // Derterminate which stats we want and set mode and title for the link below stats block
 if (!isGetRequestParameterSet('mode')) setGetRequestParameter('mode', strtolower(getConfig('guest_stats')));
@@ -123,7 +123,7 @@ switch (getConfig('guest_stats')) {
 
                // Generate monthly stats
                $SW = 2; $r2 = ' right'; $l = 'll'; $r = 'lr'; $OUT = '';
-               foreach ($months as $month => $cnt) {
+               foreach ($months as $month => $count) {
                        if ($SW == 2) $OUT .= '<tr>';
 
                        // Prepare data for template
@@ -132,7 +132,7 @@ switch (getConfig('guest_stats')) {
                                'm_descr'  => $GLOBALS['month_descr'][$month],
                                'r_class'  => $r,
                                'r2_class' => $r2,
-                               'cnt'      => $cnt
+                               'cnt'      => $count
                        );
 
                        // Load row template
@@ -152,11 +152,11 @@ switch (getConfig('guest_stats')) {
 
                // Generate category stats
                $OUT = '';
-               foreach ($cat_cnt as $id => $cnt) {
+               foreach ($cat_cnt as $id => $count) {
                        // Prepare data for the template
                        $data = array(
                                'cat' => $cats[$id],
-                               'cnt' => $cnt,
+                               'cnt' => $count,
                        );
 
                        // Load row template and switch colors