From: RouL Date: Sat, 16 Jul 2011 15:27:01 +0000 (+0200) Subject: Fixed a bug in MemcacheAdapter that made it unusable X-Git-Tag: 2.0.0_Beta_1~2011^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=11402e3310b4e254558d26b71b26b22e3a174e7e;p=GitHub%2FWoltLab%2FWCF.git Fixed a bug in MemcacheAdapter that made it unusable wcf\system\SingletonFactory::__construct can't be overriden, use init() instead --- diff --git a/wcfsetup/install/files/lib/system/cache/source/MemcacheAdapter.class.php b/wcfsetup/install/files/lib/system/cache/source/MemcacheAdapter.class.php index 80261871cf..3ef59bf571 100644 --- a/wcfsetup/install/files/lib/system/cache/source/MemcacheAdapter.class.php +++ b/wcfsetup/install/files/lib/system/cache/source/MemcacheAdapter.class.php @@ -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.'); }