X-Git-Url: https://git.mxchange.org/?p=core.git;a=blobdiff_plain;f=inc%2Fclasses%2Fmain%2Fhelper%2Fweb%2Flinks%2Fclass_WebLinkHelper.php;h=6c5b578f6021b31d4accb0ce7288ad4d82c2778b;hp=7b2706871df3877218f52acf48babe7194a69a90;hb=d8ec35e39c3def6c60c7379cb805372f37e80faa;hpb=c1d88e5878553a4d812569c22f0b46ef28674e2f diff --git a/inc/classes/main/helper/web/links/class_WebLinkHelper.php b/inc/classes/main/helper/web/links/class_WebLinkHelper.php index 7b270687..6c5b578f 100644 --- a/inc/classes/main/helper/web/links/class_WebLinkHelper.php +++ b/inc/classes/main/helper/web/links/class_WebLinkHelper.php @@ -4,7 +4,7 @@ * * @author Roland Haeder * @version 0.0.0 - * @copyright Copyright (c) 2007 - 2009 Roland Haeder, this is free software + * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 Core Developer Team * @license GNU GPL 3.0 or any newer version * @link http://www.ship-simu.org * @@ -94,7 +94,7 @@ class WebLinkHelper extends BaseWebHelper implements HelpableTemplate { $page = $helperInstance->convertDashesToUnderscores($requestInstance->getRequestElement('page')); // Construct config entry - $configEntry = $page . '_' . $linkName; + $configEntry = $page . '_' . $linkName . '_action'; // Is the deprecated parameter set? if (!is_null($linkBase)) { @@ -104,13 +104,13 @@ class WebLinkHelper extends BaseWebHelper implements HelpableTemplate { // Determine link base from config now and 'page' request try { - $newLinkBase = $helperInstance->getConfigInstance()->readConfig($configEntry); + $newLinkBase = $helperInstance->getConfigInstance()->getConfigEntry($configEntry); $linkBase = $newLinkBase; } catch (ConfigEntryNotFoundException $e) { // Is the deprecated linkBase not set? if (is_null($linkBase)) { // Then throw again the exception - throw new ConfigEntryNotFoundException(array(__CLASS__, ($configEntry)), self::EXCEPTION_CONFIG_ENTRY_WAS_NOT_FOUND); + throw new ConfigEntryNotFoundException(array(__CLASS__, ($configEntry)), FrameworkConfiguration::EXCEPTION_CONFIG_ENTRY_WAS_NOT_FOUND); } // END - if }