Skip to content
Snippets Groups Projects
Commit 29be7087 authored by Demian Katz's avatar Demian Katz
Browse files

Fix RSS bugs related to view helper service names.

parent 54b30a88
No related merge requests found
...@@ -108,7 +108,7 @@ class ResultFeed extends AbstractHelper implements TranslatorAwareInterface ...@@ -108,7 +108,7 @@ class ResultFeed extends AbstractHelper implements TranslatorAwareInterface
{ {
// Determine base URL if not already provided: // Determine base URL if not already provided:
if (null === $currentPath) { if (null === $currentPath) {
$currentPath = $this->getView()->plugin('currentpath')->__invoke(); $currentPath = $this->getView()->plugin('currentPath')->__invoke();
} }
$serverUrl = $this->getView()->plugin('serverurl'); $serverUrl = $this->getView()->plugin('serverurl');
$baseUrl = $serverUrl($currentPath); $baseUrl = $serverUrl($currentPath);
...@@ -238,7 +238,7 @@ class ResultFeed extends AbstractHelper implements TranslatorAwareInterface ...@@ -238,7 +238,7 @@ class ResultFeed extends AbstractHelper implements TranslatorAwareInterface
empty($title) ? $this->translate('Title not available') : $title empty($title) ? $this->translate('Title not available') : $title
); );
$serverUrl = $this->getView()->plugin('serverurl'); $serverUrl = $this->getView()->plugin('serverurl');
$recordLink = $this->getView()->plugin('recordlink'); $recordLink = $this->getView()->plugin('recordLink');
try { try {
$url = $serverUrl($recordLink->getUrl($record)); $url = $serverUrl($recordLink->getUrl($record));
} catch (\Zend\Router\Exception\RuntimeException $e) { } catch (\Zend\Router\Exception\RuntimeException $e) {
......
...@@ -81,8 +81,8 @@ class ResultFeedTest extends \VuFindTest\Unit\ViewHelperTestCase ...@@ -81,8 +81,8 @@ class ResultFeedTest extends \VuFindTest\Unit\ViewHelperTestCase
->will($this->returnValue('http://server/url')); ->will($this->returnValue('http://server/url'));
return [ return [
'currentpath' => $currentPath, 'currentPath' => $currentPath,
'recordlink' => $recordLink, 'recordLink' => $recordLink,
'serverurl' => $serverUrl 'serverurl' => $serverUrl
]; ];
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment