Ver Fonte

Made static function actually static.

Taddeus Kroes há 13 anos atrás
pai
commit
e4bf5f5ff8
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      pquery.php

+ 2 - 2
pquery.php

@@ -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');
 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');
- 
+
 ?>
 ?>