Fixed detection of CacheSource
authorTim Düsterhus <timwolla@arcor.de>
Mon, 9 Jul 2012 15:40:25 +0000 (17:40 +0200)
committerTim Düsterhus <timwolla@arcor.de>
Mon, 9 Jul 2012 15:40:25 +0000 (17:40 +0200)
wcfsetup/install/files/lib/acp/page/IndexPage.class.php

index 51597e8481f14bc6ff5b3c2302b0cadd3c315a8d..f9588cf186f1a380c9a97ce1001a6aa207e3460c 100755 (executable)
@@ -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)
                                ));