X-Git-Url: https://git.mxchange.org/?p=core.git;a=blobdiff_plain;f=inc%2Fclasses%2Fmain%2Ffactories%2Fhtml%2Fclass_HtmlNewsFactory.php;h=135409dee32a22cf884112a34f17df036a8e2435;hp=2cb7ec7882aaa72a62ae4dbf88c5e41dabf65fd0;hb=602a3281da3bcf4ab4da2d8571b921e61e167b5b;hpb=361d6012670869f819fa7ce7cebf74676815bf5d diff --git a/inc/classes/main/factories/html/class_HtmlNewsFactory.php b/inc/classes/main/factories/html/class_HtmlNewsFactory.php index 2cb7ec78..135409de 100644 --- a/inc/classes/main/factories/html/class_HtmlNewsFactory.php +++ b/inc/classes/main/factories/html/class_HtmlNewsFactory.php @@ -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