From: Roland Häder Date: Sat, 1 Aug 2009 10:05:02 +0000 (+0000) Subject: Prefix for action URLs extended with _url X-Git-Url: https://git.mxchange.org/?p=core.git;a=commitdiff_plain;h=0e2b1c7c179e07369e49ebea93f7939c4ddb5a5e Prefix for action URLs extended with _url --- diff --git a/inc/classes/main/discovery/payment/class_LocalPaymentDiscovery.php b/inc/classes/main/discovery/payment/class_LocalPaymentDiscovery.php index b9537431..175756ea 100644 --- a/inc/classes/main/discovery/payment/class_LocalPaymentDiscovery.php +++ b/inc/classes/main/discovery/payment/class_LocalPaymentDiscovery.php @@ -64,8 +64,8 @@ class LocalPaymentDiscovery extends BaseDiscovery implements Discoverable, Regis public function discover (Requestable $requestInstance) { // Now get a search criteria and set app name and payment action as search critera $criteriaInstance = ObjectFactory::createObjectByConfiguredName('search_criteria_class'); - $criteriaInstance->addCriteria("app_name", $requestInstance->getRequestElement('app')); - $criteriaInstance->addCriteria("payment_action", $this->getActionName().'_action'); + $criteriaInstance->addCriteria('app_name', $requestInstance->getRequestElement('app')); + $criteriaInstance->addCriteria('payment_action', $this->getActionName() . '_action'); $criteriaInstance->setLimit(1); // Get a wrapper instance diff --git a/inc/classes/main/helper/web/links/class_WebLinkHelper.php b/inc/classes/main/helper/web/links/class_WebLinkHelper.php index 6c5b578f..484d2fe6 100644 --- a/inc/classes/main/helper/web/links/class_WebLinkHelper.php +++ b/inc/classes/main/helper/web/links/class_WebLinkHelper.php @@ -94,7 +94,7 @@ class WebLinkHelper extends BaseWebHelper implements HelpableTemplate { $page = $helperInstance->convertDashesToUnderscores($requestInstance->getRequestElement('page')); // Construct config entry - $configEntry = $page . '_' . $linkName . '_action'; + $configEntry = $page . '_' . $linkName . '_action_url'; // Is the deprecated parameter set? if (!is_null($linkBase)) {