Sometimes 'page' is wanted, sometimes 'command' but basicly both want a command
[core.git] / inc / classes / main / factories / html / class_HtmlNewsFactory.php
index 2cb7ec7..135409d 100644 (file)
@@ -49,12 +49,12 @@ class HtmlNewsFactory extends BaseFactory {
                $configEntry = 'news_reader_class';
 
                // Get "page"
-               $page = $requestInstance->getRequestElement('page');
+               $command = $requestInstance->getRequestElement('command');
 
-               // Is 'page' used?
-               if (!empty($page)) {
+               // Is 'command' used?
+               if (!empty($command)) {
                        // Then add it
-                       $configEntry = sprintf('news_reader_%s_class', $page);
+                       $configEntry = sprintf('news_reader_%s_class', $command);
 
                        // Get 'action'
                        $action = $requestInstance->getRequestElement('action');
@@ -62,7 +62,7 @@ class HtmlNewsFactory extends BaseFactory {
                        // Is it also there?
                        if (!empty($action)) {
                                // Then use both for config entry
-                               $configEntry = sprintf('news_reader_%s_%s_class', $page, $action);
+                               $configEntry = sprintf('news_reader_%s_%s_class', $command, $action);
                        } // END - if
                } // END - if