]> git.mxchange.org Git - core.git/blobdiff - inc/classes/main/reader/class_ConsoleNewsReader.php
Fix for method in FrameworkConfiguration, removal of unneccessary code
[core.git] / inc / classes / main / reader / class_ConsoleNewsReader.php
index e954686adb4eab0fad7c1e3a599204c67e969dff..54150ca71e1d6194b73b709037203a917fb05dae 100644 (file)
@@ -30,10 +30,6 @@ class ConsoleNewsReader extends BaseFrameworkSystem implements ReadableNews, Reg
        protected function __construct () {
                // Call parent constructor
                parent::__construct(__CLASS__);
-
-               // Clean up a little
-               $this->removeNumberFormaters();
-               $this->removeSystemArray();
        }
 
        /**
@@ -73,7 +69,7 @@ class ConsoleNewsReader extends BaseFrameworkSystem implements ReadableNews, Reg
                $criteriaInstance->addCriteria('page', $command);
 
                // Add limitation from config
-               $criteriaInstance->setLimit($this->getConfigInstance()->readConfig('news_' . $command . '_limit'));
+               $criteriaInstance->setLimit($this->getConfigInstance()->getConfigEntry('news_' . $command . '_limit'));
 
                // Get a resultInstance back from the database
                $resultInstance = $wrapperInstance->doSelectByCriteria($criteriaInstance);