From 29be7087508b92e139fd81230ff76d31e89eed91 Mon Sep 17 00:00:00 2001 From: Demian Katz <demian.katz@villanova.edu> Date: Tue, 20 Feb 2018 09:48:36 -0500 Subject: [PATCH] Fix RSS bugs related to view helper service names. --- module/VuFind/src/VuFind/View/Helper/Root/ResultFeed.php | 4 ++-- .../src/VuFindTest/View/Helper/Root/ResultFeedTest.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/module/VuFind/src/VuFind/View/Helper/Root/ResultFeed.php b/module/VuFind/src/VuFind/View/Helper/Root/ResultFeed.php index 5015133aa84..919a293d0ef 100644 --- a/module/VuFind/src/VuFind/View/Helper/Root/ResultFeed.php +++ b/module/VuFind/src/VuFind/View/Helper/Root/ResultFeed.php @@ -108,7 +108,7 @@ class ResultFeed extends AbstractHelper implements TranslatorAwareInterface { // Determine base URL if not already provided: if (null === $currentPath) { - $currentPath = $this->getView()->plugin('currentpath')->__invoke(); + $currentPath = $this->getView()->plugin('currentPath')->__invoke(); } $serverUrl = $this->getView()->plugin('serverurl'); $baseUrl = $serverUrl($currentPath); @@ -238,7 +238,7 @@ class ResultFeed extends AbstractHelper implements TranslatorAwareInterface empty($title) ? $this->translate('Title not available') : $title ); $serverUrl = $this->getView()->plugin('serverurl'); - $recordLink = $this->getView()->plugin('recordlink'); + $recordLink = $this->getView()->plugin('recordLink'); try { $url = $serverUrl($recordLink->getUrl($record)); } catch (\Zend\Router\Exception\RuntimeException $e) { diff --git a/module/VuFind/tests/integration-tests/src/VuFindTest/View/Helper/Root/ResultFeedTest.php b/module/VuFind/tests/integration-tests/src/VuFindTest/View/Helper/Root/ResultFeedTest.php index a4f5872b6cc..6f1e2ea0bff 100644 --- a/module/VuFind/tests/integration-tests/src/VuFindTest/View/Helper/Root/ResultFeedTest.php +++ b/module/VuFind/tests/integration-tests/src/VuFindTest/View/Helper/Root/ResultFeedTest.php @@ -81,8 +81,8 @@ class ResultFeedTest extends \VuFindTest\Unit\ViewHelperTestCase ->will($this->returnValue('http://server/url')); return [ - 'currentpath' => $currentPath, - 'recordlink' => $recordLink, + 'currentPath' => $currentPath, + 'recordLink' => $recordLink, 'serverurl' => $serverUrl ]; } -- GitLab