*
* @author Roland Haeder <webmaster@ship-simu.org>
* @version 0.0.0
- * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2011 Core Developer Team
+ * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2012 Core Developer Team
* @license GNU GPL 3.0 or any newer version
* @link http://www.ship-simu.org
*
* @param $message The optional message we shall output on exit
* @param $code Error code from exception
* @param $extraData Extra information from exceptions
- * @param $silentMode Wether not silent mode is turned on
+ * @param $silentMode Whether silent mode is turned on
* @return void
* @todo This method is old code and needs heavy rewrite and should be moved to ApplicationHelper
*/
} // END - if
// Get config instance
- $configInstance = FrameworkConfiguration::getInstance();
+ $configInstance = FrameworkConfiguration::getSelfInstance();
// Do we have debug installation?
if (($configInstance->getConfigEntry('product_install_mode') == 'productive') || ($silentMode === true)) {
} // END - if
// Get some instances
- $tpl = FrameworkConfiguration::getInstance()->getConfigEntry('web_template_class');
- $languageInstance = LanguageSystem::getInstance();
+ $tpl = FrameworkConfiguration::getSelfInstance()->getConfigEntry('web_template_class');
+ $languageInstance = LanguageSystem::getSelfInstance();
// Initialize template instance here to avoid warnings in IDE
$templateInstance = NULL;
// Get response instance
- $responseInstance = ApplicationHelper::getInstance()->getResponseInstance();
+ $responseInstance = ApplicationHelper::getSelfInstance()->getResponseInstance();
// Is the template engine loaded?
if ((class_exists($tpl)) && (is_object($languageInstance))) {
// Is the class there?
if (class_exists('ApplicationHelper')) {
// Get application instance
- $applicationInstance = ApplicationHelper::getInstance();
+ $applicationInstance = ApplicationHelper::getSelfInstance();
// Assign application data
$templateInstance->assignApplicationData($applicationInstance);
$templateInstance->assignVariable('code', $code);
$templateInstance->assignVariable('extra', $extraData);
$templateInstance->assignVariable('backtrace', $backtrace);
- $templateInstance->assignVariable('total_includes', ClassLoader::getInstance()->getTotal());
+ $templateInstance->assignVariable('total_includes', ClassLoader::getSelfInstance()->getTotal());
$templateInstance->assignVariable('total_objects', ObjectFactory::getTotal());
$templateInstance->assignVariable('title', $languageInstance->getMessage('emergency_exit_title'));