From 11402e3310b4e254558d26b71b26b22e3a174e7e Mon Sep 17 00:00:00 2001 From: RouL Date: Sat, 16 Jul 2011 17:27:01 +0200 Subject: [PATCH] Fixed a bug in MemcacheAdapter that made it unusable wcf\system\SingletonFactory::__construct can't be overriden, use init() instead --- .../files/lib/system/cache/source/MemcacheAdapter.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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.'); } -- 2.20.1