diff --git a/system/libs/pot/OTS_HousesList.php b/system/libs/pot/OTS_HousesList.php index 54dbbcca..eda74f45 100644 --- a/system/libs/pot/OTS_HousesList.php +++ b/system/libs/pot/OTS_HousesList.php @@ -57,7 +57,7 @@ class OTS_HousesList implements IteratorAggregate, Countable, ArrayAccess * @param array $properties List of object properties. * @throws DOMException On DOM operation error. */ - public function __set_state($properties) + public static function __set_state($properties) { $object = new self(); diff --git a/system/libs/pot/OTS_VocationsList.php b/system/libs/pot/OTS_VocationsList.php index ad307c67..7dc0e32e 100644 --- a/system/libs/pot/OTS_VocationsList.php +++ b/system/libs/pot/OTS_VocationsList.php @@ -59,7 +59,7 @@ class OTS_VocationsList implements IteratorAggregate, Countable, ArrayAccess * @param array $properties List of object properties. * @throws DOMException On DOM operation error. */ - public function __set_state($properties) + public static function __set_state($properties) { $object = new self(); diff --git a/system/libs/pot/compat.php b/system/libs/pot/compat.php deleted file mode 100644 index 59a27503..00000000 --- a/system/libs/pot/compat.php +++ /dev/null @@ -1,85 +0,0 @@ - - * @copyright 2007 - 2008 (C) by Wrzasq - * @license http://www.gnu.org/licenses/lgpl-3.0.txt GNU Lesser General Public License, Version 3 - * @tutorial POT/PHP_5.0.pkg - */ - -// OutOfBoundsException class for 5.0.x -if( !class_exists('OutOfBoundsException') ) -{ -/** - * @ignore - * @version 0.1.0 - * @since 0.1.0 - */ - class OutOfBoundsException extends Exception - { - } -} - -// LogicException class for 5.0.x -if( !class_exists('LogicException') ) -{ -/** - * @ignore - * @version 0.1.2 - * @since 0.1.2 - */ - class LogicException extends Exception - { - } -} - -// Countable for PHP 5.0.x -if( !interface_exists('Countable') ) -{ -/** - * @ignore - */ - interface Countable - { - public function count(); - } -} - -// spl_autoload_register() walkaround -if( !function_exists('spl_autoload_register') ) -{ -/** - * @ignore - */ - function spl_autoload_register($callback) - { - if( !function_exists('__autoload') ) - { -/** - * @ignore - */ - function __autoload($class) - { - POT::getInstance()->loadClass($class); - } - } - } -} - -/**#@-*/ - -?>