X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=framework%2Fmain%2Fclasses%2Ffactories%2Fhtml%2Fclass_HtmlNewsFactory.php;h=2dc1517fadbaf979bad3ac7626bdc9a1ce94cf94;hb=2218902056efcf9a2c66fe7c24995e066bd7cd11;hp=f98fe98dcb13a95448d203e0f765d721bd587534;hpb=78a010fef84895720e796842208f01dfb619c332;p=core.git diff --git a/framework/main/classes/factories/html/class_HtmlNewsFactory.php b/framework/main/classes/factories/html/class_HtmlNewsFactory.php index f98fe98d..2dc1517f 100644 --- a/framework/main/classes/factories/html/class_HtmlNewsFactory.php +++ b/framework/main/classes/factories/html/class_HtmlNewsFactory.php @@ -1,18 +1,19 @@ * @version 0.0.0 - * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2017 Core Developer Team + * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2020 Core Developer Team * @license GNU GPL 3.0 or any newer version * @link http://www.shipsimu.org * @@ -66,11 +67,11 @@ class HtmlNewsFactory extends BaseFactory { if (!empty($action)) { // Then use both for config entry $configEntry = sprintf('news_reader_%s_%s_class', $command, $action); - } // END - if - } // END - if + } + } // Get the news reader class name from config - $className = $requestInstance->getConfigInstance()->getConfigEntry($configEntry); + $className = FrameworkBootstrap::getConfigurationInstance()->getConfigEntry($configEntry); // Once we have that name, try to load initialize it $newsInstance = ObjectFactory::createObjectByName($className, array($requestInstance));