} // END - if
// Add main title
- $TITLE .= constant('MAIN_TITLE');
+ $TITLE .= getConfig('MAIN_TITLE');
// Add title of module? (middle decoration will also be added!)
if ((getConfig('enable_mod_title') == 'Y') || ((!isWhatSet()) && (!isActionSet())) || (getModule() == 'admin')) {
define('__PAGE_TITLE', $TITLE);
} elseif ((isInstalled()) && (!isAdminRegistered())) {
// Installed but no admin registered
- define('__PAGE_TITLE', sprintf(getMessage('SETUP_OF_MXCHANGE'), constant('MAIN_TITLE')));
+ define('__PAGE_TITLE', sprintf(getMessage('SETUP_OF_MXCHANGE'), getConfig('MAIN_TITLE')));
} elseif ((!isInstalled()) || (!isAdminRegistered())) {
// Installation mode
define('__PAGE_TITLE', getMessage('INSTALLATION_OF_MXCHANGE'));