]> git.mxchange.org Git - core.git/blobdiff - inc/classes/main/factories/cache/class_CacheFactory.php
Registry rewritten, exception added #2
[core.git] / inc / classes / main / factories / cache / class_CacheFactory.php
index 931babf3157b888e3991dae48b895ed504535383..4fe661318a285d8de70beffab48bacc3b492778d 100644 (file)
@@ -4,7 +4,7 @@
  *
  * @author             Roland Haeder <webmaster@ship-simu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2007 - 2009 Roland Haeder, this is free software
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009, 2010 Core Developer Team
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.ship-simu.org
  *
@@ -60,7 +60,7 @@ class CacheFactory extends BaseFactory {
         */
        public function createConfiguredCache () {
                // Read the config entry
-               $cacheType = $this->getConfigInstance()->readConfig('cache_class');
+               $cacheType = $this->getConfigInstance()->getConfigEntry('cache_class');
 
                // And get a new instance
                $cacheInstance = ObjectFactory::createObjectByName($cacheType);