Commit e4bf5f5f authored by Taddeus Kroes's avatar Taddeus Kroes

Made static function actually static.

parent c0ec3f3b
...@@ -144,7 +144,7 @@ class pQuery { ...@@ -144,7 +144,7 @@ class pQuery {
* *
* @param Exception $e The exception to handle. * @param Exception $e The exception to handle.
*/ */
function exception_handler($e) { static function exception_handler($e) {
if( $e instanceof pQueryException ) if( $e instanceof pQueryException )
die(nl2br($e->getMessage())); die(nl2br($e->getMessage()));
...@@ -335,5 +335,5 @@ class_alias('pQuery', '__p'); ...@@ -335,5 +335,5 @@ class_alias('pQuery', '__p');
set_exception_handler('__p::exception_handler'); set_exception_handler('__p::exception_handler');
__p::assert_defined('PQUERY_DEBUG', 'PQUERY_ROOT', 'SITE_ROOT'); __p::assert_defined('PQUERY_DEBUG', 'PQUERY_ROOT', 'SITE_ROOT');
?> ?>
\ No newline at end of file
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