Skip to content

Commit 199f96f

Browse files
committed
fix bugs didn't display the faq category icon via store view
1 parent 3c376dd commit 199f96f

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

Block/Faq/Faq.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* @Author Ngo Quang Cuong <bestearnmoney87@gmail.com>
66
* @Date 2016-12-23 18:16:21
77
* @Last modified by: nquangcuong
8-
* @Last Modified time: 2017-11-11 20:11:48
8+
* @Last Modified time: 2017-11-28 17:21:05
99
*/
1010

1111
namespace PHPCuong\Faq\Block\Faq;
@@ -92,11 +92,11 @@ protected function _prepareLayout()
9292
{
9393
$this->_faqCategoriesList = $this->_categoryHelper->getCategoriesList();
9494

95-
$this->pageConfig->getTitle()->set(__('FAQ'));
95+
$this->pageConfig->getTitle()->set(__('FAQs'));
9696

97-
$this->pageConfig->setKeywords(__('FAQ'));
97+
$this->pageConfig->setKeywords(__('FAQs'));
9898

99-
$this->pageConfig->setDescription(__('FAQ'));
99+
$this->pageConfig->setDescription(__('FAQs'));
100100

101101
$breadcrumbBlock = $this->getLayout()->getBlock('breadcrumbs');
102102

@@ -112,8 +112,8 @@ protected function _prepareLayout()
112112
$breadcrumbBlock->addCrumb(
113113
'faq',
114114
[
115-
'label' => __('FAQ'),
116-
'title' => __('FAQ')
115+
'label' => __('FAQs'),
116+
'title' => __('FAQs')
117117
]
118118
);
119119

Helper/Config.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* @Author Ngo Quang Cuong <bestearnmoney87@gmail.com>
66
* @Date 2016-12-23 23:54:46
77
* @Last modified by: nquangcuong
8-
* @Last Modified time: 2017-11-11 14:20:15
8+
* @Last Modified time: 2017-11-28 17:21:02
99
*/
1010

1111
namespace PHPCuong\Faq\Helper;
@@ -60,7 +60,7 @@ public function getFaqCategoryFullPath($identifier)
6060
*/
6161
public function getFileBaseUrl($path)
6262
{
63-
return $this->_storeManager->getStore()->getBaseUrl().DirectoryList::PUB.'/'.DirectoryList::MEDIA.'/'.$path;
63+
return '/'.DirectoryList::PUB.'/'.DirectoryList::MEDIA.'/'.$path;
6464
}
6565

6666
/**

0 commit comments

Comments
 (0)