-// Prepare data for the template
-define('__DB_HITS' , TRANSLATE_COMMA(getConfig('db_hits')));
-define('__CACHE_HITS', TRANSLATE_COMMA(getConfig('cache_hits')));
-define('__TOTAL_HITS', TRANSLATE_COMMA($totalHits));
-define('__CACHE_PERC', TRANSLATE_COMMA((getConfig('cache_hits') / $totalHits * 100)));
+// Activated?
+if (ifInternalStatsEnabled()) {
+ // 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);