From: Tim Düsterhus Date: Mon, 9 Jul 2012 15:40:25 +0000 (+0200) Subject: Fixed detection of CacheSource X-Git-Tag: 2.0.0_Beta_1~1022 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c673cb7ec0e3085ceab2229554056d8cab373e2d;p=GitHub%2FWoltLab%2FWCF.git Fixed detection of CacheSource --- diff --git a/wcfsetup/install/files/lib/acp/page/IndexPage.class.php b/wcfsetup/install/files/lib/acp/page/IndexPage.class.php index 51597e8481..f9588cf186 100755 --- a/wcfsetup/install/files/lib/acp/page/IndexPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/IndexPage.class.php @@ -92,7 +92,7 @@ class IndexPage extends AbstractPage { if (CacheHandler::getInstance()->getCacheSource() instanceof NoCacheSource) { $this->healthDetails['warning'][] = WCF::getLanguage()->get('wcf.acp.index.health.noCacheSource'); } - else if (!ClassUtil::isInstanceOf(CacheHandler::getInstance()->getCacheSource(), 'wcf\system\cache\source'.ucfirst(CACHE_SOURCE_TYPE).'CacheSource')) { + else if (get_class(CacheHandler::getInstance()->getCacheSource()) != 'wcf\system\cache\source\\'.ucfirst(CACHE_SOURCE_TYPE).'CacheSource') { $this->healthDetails['error'][] = WCF::getLanguage()->getDynamicVariable('wcf.acp.index.health.cacheFallback', array( 'shouldBe' => WCF::getLanguage()->get('wcf.acp.option.cache_source_type.'.CACHE_SOURCE_TYPE) ));