From 0e2b1c7c179e07369e49ebea93f7939c4ddb5a5e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sat, 1 Aug 2009 10:05:02 +0000 Subject: [PATCH] Prefix for action URLs extended with _url --- .../main/discovery/payment/class_LocalPaymentDiscovery.php | 4 ++-- inc/classes/main/helper/web/links/class_WebLinkHelper.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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)) { -- 2.39.5