Fixed a bug in MemcacheAdapter that made it unusable
authorRouL <roul@codingcorner.info>
Sat, 16 Jul 2011 15:27:01 +0000 (17:27 +0200)
committerRouL <roul@codingcorner.info>
Sat, 16 Jul 2011 15:32:08 +0000 (17:32 +0200)
wcf\system\SingletonFactory::__construct can't be overriden, use init() instead

wcfsetup/install/files/lib/system/cache/source/MemcacheAdapter.class.php

index 80261871cf82093f8a6e46caf74dcf52c41862cf..3ef59bf571b9bedffb5787ca400752bed66a6ce4 100644 (file)
@@ -23,9 +23,9 @@ class MemcacheAdapter extends SingletonFactory {
        private $memcache = null;
        
        /**
-        * Creates a new MemcacheAdapter object.
+        * @see wcf\system\SingletonFactory::init()
         */
-       protected function __construct() {
+       protected function init() {
                if (!class_exists('Memcache')) {
                        throw new SystemException('memcache support is not enabled.');
                }