Sometimes 'page' is wanted, sometimes 'command' but basicly both want a command
[core.git] / inc / classes / main / reader / class_ConsoleNewsReader.php
index 5d23a680b81d9eee94853dec1ed99f5ac6b8d456..9f5cc8e5a1088ce40397a35b06413510f59a9a06 100644 (file)
@@ -66,7 +66,7 @@ class ConsoleNewsReader extends BaseFrameworkSystem implements ReadableNews, Reg
                $criteriaInstance = ObjectFactory::createObjectByConfiguredName('search_criteria_class');
 
                // Add the command as criteria to it at lease
                $criteriaInstance = ObjectFactory::createObjectByConfiguredName('search_criteria_class');
 
                // Add the command as criteria to it at lease
-               $criteriaInstance->addCriteria('page', $command);
+               $criteriaInstance->addCriteria('command', $command);
 
                // Add limitation from config
                $criteriaInstance->setConfiguredLimit('news_' . $command . '_limit');
 
                // Add limitation from config
                $criteriaInstance->setConfiguredLimit('news_' . $command . '_limit');