Sometimes 'page' is wanted, sometimes 'command' but basicly both want a command
[core.git] / inc / classes / main / reader / class_ConsoleNewsReader.php
index 2c1cd6dc11433dc2298b257f4801ec63461c9315..9f5cc8e5a1088ce40397a35b06413510f59a9a06 100644 (file)
@@ -4,7 +4,7 @@
  *
  * @author             Roland Haeder <webmaster@shipsimu.org>
  * @version            0.0.0
  *
  * @author             Roland Haeder <webmaster@shipsimu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2014 Core Developer Team
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2015 Core Developer Team
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.shipsimu.org
  *
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.shipsimu.org
  *
@@ -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');