Commit e1c569f0 authored by Taddes Kroes's avatar Taddes Kroes

Moved config constant inside class.

parent 4dd29e0a
...@@ -21,18 +21,18 @@ define('DEBUG', true); ...@@ -21,18 +21,18 @@ define('DEBUG', true);
*/ */
define('PQUERY_ROOT', 'D:/xampp/htdocs/pquery/'); 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 containing plugin configs.
*/ */
abstract class pQueryConfig { 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. * Config for MySQL plugin.
* *
......
...@@ -121,7 +121,7 @@ class pQuery { ...@@ -121,7 +121,7 @@ class pQuery {
//echo debug_backtrace(); //echo debug_backtrace();
} }
ERROR_IS_FATAL && exit; pQueryConfig::ERROR_IS_FATAL && exit;
} }
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment