diff --git a/module/VuFind/src/VuFind/Theme/Root/Helper/ResultFeed.php b/module/VuFind/src/VuFind/Theme/Root/Helper/ResultFeed.php index 6e05433108095c45ce8c357ac574843fa930ef65..50ec36c89a8af69a091af4adcc8338f2e90d0331 100644 --- a/module/VuFind/src/VuFind/Theme/Root/Helper/ResultFeed.php +++ b/module/VuFind/src/VuFind/Theme/Root/Helper/ResultFeed.php @@ -47,7 +47,7 @@ class ResultFeed extends AbstractHelper * * @return object */ - public function getTranslator() + public function getTranslatorHelper() { if (!$this->translator) { $this->translator = $this->getView()->plugin('translate'); @@ -62,7 +62,7 @@ class ResultFeed extends AbstractHelper * * @return void */ - public function setTranslator($translator) + public function setTranslatorHelper($translator) { $this->translator = $translator; } @@ -107,7 +107,7 @@ class ResultFeed extends AbstractHelper // Create the parent feed $feed = new Feed(); - $translator = $this->getTranslator(); + $translator = $this->getTranslatorHelper(); $feed->setTitle( $translator('Results for') . ' ' . $results->getParams()->getDisplayQuery() diff --git a/module/VuFind/tests/unit-tests/src/Theme/Root/Helper/ResultFeedTest.php b/module/VuFind/tests/unit-tests/src/Theme/Root/Helper/ResultFeedTest.php index 2621075043095533fe5ed1709e1817fbe4a78a8d..e0bdfda05180e5ef7e6d9c3c7b86ef57fea8e238 100644 --- a/module/VuFind/tests/unit-tests/src/Theme/Root/Helper/ResultFeedTest.php +++ b/module/VuFind/tests/unit-tests/src/Theme/Root/Helper/ResultFeedTest.php @@ -80,7 +80,7 @@ class ResultFeedTest extends \VuFindTest\Unit\ViewHelperTestCase $mockTranslator = function ($str) { return $str; }; - $helper->setTranslator($mockTranslator); + $helper->setTranslatorHelper($mockTranslator); $feed = $helper->__invoke($results, '/test/path'); $this->assertTrue(is_object($feed)); $rss = $feed->export('rss');