-// Prepare data for the template
-define('__DB_HITS' , TRANSLATE_COMMA($_CONFIG['db_hits']));
-define('__CACHE_HITS', TRANSLATE_COMMA($_CONFIG['cache_hits']));
-define('__TOTAL_HITS', TRANSLATE_COMMA($totalHits));
-define('__CACHE_PERC', TRANSLATE_COMMA(($_CONFIG['cache_hits'] / $totalHits * 100)));
+ // Prepare data for the template
+ $content['db_hits'] = translateComma(getStatsEntry('db_hits'));
+ $content['cache_hits'] = translateComma(getStatsEntry('cache_hits'));
+ $content['total_hits'] = translateComma($totalHits);
+ $content['cache_perc'] = translateComma((getStatsEntry('cache_hits') / $totalHits * 100));