]> git.mxchange.org Git - core.git/commitdiff
Missing config entries added, constant LOG_EXCEPTIONS needed to log all exceptions
authorRoland Häder <roland@mxchange.org>
Sun, 23 Aug 2009 22:13:14 +0000 (22:13 +0000)
committerRoland Häder <roland@mxchange.org>
Sun, 23 Aug 2009 22:13:14 +0000 (22:13 +0000)
inc/classes/exceptions/class_FrameworkException.php
inc/config.php

index b3d3f42b04bb0d851df87aad67002664fe818758..50c86ada684b3306e080021bcbc09fd333ab6b3f 100644 (file)
@@ -42,6 +42,9 @@ abstract class FrameworkException extends ReflectionException {
         * @return      void
         */
        public function __construct ($message, $code = 0) {
+               // Make sure everything is assigned properly
+               parent::__construct($message, $code);
+
                // Extract backtrace
                $this->saveBackTrace();
 
@@ -61,11 +64,9 @@ abstract class FrameworkException extends ReflectionException {
                        // End here
                        exit();
                } // END - if
-               // Make sure everything is assigned properly
-               parent::__construct($message, $code);
 
-               // Log it away if DEBUG_ALL is set
-               if (defined('DEBUG_ALL')) {
+               // Should we log exceptions? (bad implementation)
+               if (defined('LOG_EXCEPTIONS')) {
                        // Log the error
                        error_log(sprintf("[%s:] %s (%s)",
                                $this->__toString(),
index 43401a44eb54b816b7f32026a03fe38ed343d804..84cb5681b27dce31d31d911081e936fa2c07f1a0 100644 (file)
@@ -233,9 +233,15 @@ $cfg->setConfigEntry('news_db_wrapper_class', 'NewsDatabaseWrapper');
 // CFG: WEB-CMD-RESOLVER-CLASS
 $cfg->setConfigEntry('web_cmd_resolver_class', 'WebCommandResolver');
 
+// CFG: WEB-CMD-LOGIN-RESOLVER-CLASS
+$cfg->setConfigEntry('web_cmd_login_resolver_class', 'WebCommandResolver');
+
 // CFG: IMAGE-CMD-RESOLVER-CLASS
 $cfg->setConfigEntry('image_cmd_resolver_class', 'ImageCommandResolver');
 
+// CFG: IMAGE-CMD-CODE-CAPTCHA-RESOLVER-CLASS
+$cfg->setConfigEntry('image_cmd_code_captcha_resolver_class', 'ImageCommandResolver');
+
 // CFG: MAILER-CLASS
 $cfg->setConfigEntry('mailer_class', 'DebugMailer');