}
// Is the header already sent?
-if (($GLOBALS['header_sent'] != '1') && ($GLOBALS['header_sent'] != '2')) {
+if (($GLOBALS['header_sent'] != 1) && ($GLOBALS['header_sent'] != 2)) {
// If not in CSS mode generate the header
if (getOutputMode() != 1) {
// Config and database connection valid?
- if ((isConfigLocalLoaded()) && (isConfigLoaded()) && (SQL_IS_LINK_UP()) && (isExtensionActive('sql_patches'))) {
+ if ((isConfigLocalLoaded()) && (isConfigurationLoaded()) && (SQL_IS_LINK_UP()) && (isExtensionInstalledAndNewer('sql_patches', '0.1.6'))) {
// Init title
$TITLE = '';
$content['header_title'] = getMessage('NO_CONFIG_FOUND_TITLE');
// Do not add the fatal message in installation mode
- if ((!isInstalling()) && (!isConfigLoaded())) addFatalMessage(__FILE__, __LINE__, getMessage('NO_CONFIG_FOUND'));
+ if ((!isInstalling()) && (!isConfigurationLoaded())) addFatalMessage(__FILE__, __LINE__, getMessage('NO_CONFIG_FOUND'));
}
// Save some little memory
} // END - if
// Closing HEAD tag
- if (getOutputMode() != '1') outputHtml('</head>');
+ if (getOutputMode() != 1) outputHtml('</head>');
if ($GLOBALS['header_sent'] == 0) $GLOBALS['header_sent'] = 1;
} // END - if