-// Prepare data for the template
-define('__DB_HITS' , $_CONFIG['db_hits']);
-$HITS = str_repeat(" ", abs(strlen($_CONFIG['db_hits']) - strlen($_CONFIG['cache_hits']))).$_CONFIG['cache_hits'];
-define('__CACHE_HITS', $HITS);
-define('__TOTAL_HITS', ($_CONFIG['db_hits'] + $_CONFIG['cache_hits']));
-define('__CACHE_PERC', TRANSLATE_COMMA(($_CONFIG['cache_hits'] / __TOTAL_HITS * 100)));
+// Activated?
+if (ifStatsAreEnabled()) {
+ // Prepare data for the template
+ $content['db_hits'] = getStatsEntry('db_hits');
+ $content['cache_hits'] = getStatsEntry('cache_hits');
+ $content['total_hits'] = (getStatsEntry('db_hits') + getStatsEntry('cache_hits'));
+ $content['cache_perc'] = (getStatsEntry('cache_hits') / $content['total_hits'] * 100);