// Init stats system
function initStatsSystem () {
// Is stats cache loaded?
- if ((!isset($GLOBALS['stats_loaded'])) && (ifStatsAreEnabled())) {
+ if ((!isset($GLOBALS['stats_loaded'])) && (ifInternalStatsEnabled())) {
// Init statistics array
$GLOBALS['stats'] = array();
// Increments a statistics entry
function incrementStatsEntry ($entry, $amount=1) {
// Do we have stats enabled?
- if (!ifStatsAreEnabled()) return;
+ if (!ifInternalStatsEnabled()) {
+ return;
+ } // END - if
// Is it there?
if (isStatsEntrySet($entry)) {
// Filter for flushing statistics
function FILTER_FLUSH_STATS () {
// Now do we have stats?
- if ((isset($GLOBALS['stats'])) && (!isInstallationPhase()) && (ifStatsAreEnabled())) {
+ if ((isset($GLOBALS['stats'])) && (!isInstallationPhase()) && (ifInternalStatsEnabled())) {
// Write statistics to temporary table
writeStatsTable();
} // END - if