Bläddra i källkod

Moved config constant inside class.

Taddes Kroes 14 år sedan
förälder
incheckning
e1c569f05c
2 ändrade filer med 9 tillägg och 9 borttagningar
  1. 8 8
      pquery.config.php
  2. 1 1
      pquery.php

+ 8 - 8
pquery.config.php

@@ -21,18 +21,18 @@ define('DEBUG', true);
  */
 define('PQUERY_ROOT', 'D:/xampp/htdocs/pquery/');
 
-/**
- * Indicates whether errors occuring in the framework will
- * terminate the script.
- * 
- * @var bool
- */
-define('ERROR_IS_FATAL', true);
-
 /**
  * Abstract class containing plugin configs.
  */
 abstract class pQueryConfig {
+	/**
+	 * Indicates whether errors occuring in the framework will
+	 * terminate the script.
+	 * 
+	 * @var bool
+	 */
+	const ERROR_IS_FATAL = true;
+	
 	/**
 	 * Config for MySQL plugin.
 	 * 

+ 1 - 1
pquery.php

@@ -121,7 +121,7 @@ class pQuery {
 			//echo debug_backtrace();
 		}
 		
-		ERROR_IS_FATAL && exit;
+		pQueryConfig::ERROR_IS_FATAL && exit;
 	}
 	
 	/**