Prefix for action URLs extended with _url
authorRoland Häder <roland@mxchange.org>
Sat, 1 Aug 2009 10:05:02 +0000 (10:05 +0000)
committerRoland Häder <roland@mxchange.org>
Sat, 1 Aug 2009 10:05:02 +0000 (10:05 +0000)
inc/classes/main/discovery/payment/class_LocalPaymentDiscovery.php
inc/classes/main/helper/web/links/class_WebLinkHelper.php

index b953743..175756e 100644 (file)
@@ -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
index 6c5b578..484d2fe 100644 (file)
@@ -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)) {