Introduce setConfiguredLimit() to SearchCriteria class, this is much better than...
[core.git] / inc / classes / main / reader / class_ConsoleNewsReader.php
index c7714874871459c4cb7d171bbdb7d75547ae2fb0..ee5040dcb852355e21f1922a892b76dd34381aaf 100644 (file)
@@ -69,7 +69,7 @@ class ConsoleNewsReader extends BaseFrameworkSystem implements ReadableNews, Reg
                $criteriaInstance->addCriteria('page', $command);
 
                // Add limitation from config
-               $criteriaInstance->setLimit($this->getConfigInstance()->getConfigEntry('news_' . $command . '_limit'));
+               $criteriaInstance->setConfiguredLimit('news_' . $command . '_limit');
 
                // Get a resultInstance back from the database
                $resultInstance = $wrapperInstance->doSelectByCriteria($criteriaInstance);