if (!isSqlLinkUp()) return FALSE;
// Empty the table first
- sqlQueryEscaped("TRUNCATE `{?_MYSQL_PREFIX?}_stats_%s`",
+ sqlQueryEscaped('TRUNCATE `{?_MYSQL_PREFIX?}_stats_%s`',
array(generateDateTime(time(), '6')), __FUNCTION__, __LINE__);
// Begin the SQL command
- $sql = sprintf("REPLACE INTO `{?_MYSQL_PREFIX?}_stats_%s` (`stats_entry`, `stats_value`) VALUES ",
+ $sql = sprintf('REPLACE INTO `{?_MYSQL_PREFIX?}_stats_%s` (`stats_entry`, `stats_value`) VALUES ',
generateDateTime(time(), '6'));
// Add all entries to the final query
// Filter for flushing statistics
function FILTER_FLUSH_STATS () {
// Now do we have stats?
- if ((isset($GLOBALS['stats'])) && (!isInstallationPhase()) && (ifInternalStatsEnabled())) {
+ if ((isset($GLOBALS['stats'])) && (!isInstaller()) && (ifInternalStatsEnabled())) {
// Write statistics to temporary table
writeStatsTable();