$data = array(
'matches' => $matches,
'key' => $key,
- 'mode' => getScriptOutputMode(),
+ 'output_mode' => getScriptOutputMode(),
'code' => $filterData,
'callback' => $callback,
'extra_func' => $extraFunction,
// Get more daily reset scripts
setIncludePool('reset', getArrayFromDirectory('inc/daily/', 'daily_'));
- // Update database
- if ((!isConfigEntrySet('DEBUG_RESET')) || (!isDebugResetEnabled())) {
+ // Update configuration if this reset is not being debugged
+ if (!isDebugResetEnabled()) {
updateConfiguration('last_update', 'UNIX_TIMESTAMP()');
} // END - if
// Include weekly reset scripts
mergeIncludePool('reset', getArrayFromDirectory('inc/weekly/', 'weekly_'));
- // Update config if not in debug mode
+ // Update configuration if this reset is not being debugged
if (!isWeeklyResetDebugEnabled()) {
updateConfiguration('last_week', getWeek());
} // END - if
// Include monthly reset scripts
mergeIncludePool('reset', getArrayFromDirectory('inc/monthly/', 'monthly_'));
- // Update config
+ // Update configuration if this reset is not being debugged
if (!isMonthlyResetDebugEnabled()) {
updateConfiguration('last_month', $currMonth);
} // END - if
outputHtml('');
}
-// Prepares an SQL statement part for HTML mail and/or holiday depency
+// Prepares an SQL statement part for HTML mail and/or holiday dependency
function FILTER_HTML_INCLUDE_USERS ($mode) {
// Exclude no users by default
$MORE = '';
// HTML mail?
- if ($mode == 'html') $MORE = " AND `html`='Y'";
+ if ($mode == 'html') {
+ $MORE = " AND `html`='Y'";
+ } // END - if
+
if (isExtensionInstalledAndNewer('holiday', '0.1.3')) {
// Add something for the holiday extension
$MORE .= " AND `holiday_active`='N'";