Skip to content

Commit f63d2c0

Browse files
committed
Fixed getting category name
1 parent c061c03 commit f63d2c0

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"magento/magento-composer-installer": "*"
77
},
88
"type": "magento2-module",
9-
"version": "0.2.4",
9+
"version": "0.2.5",
1010
"autoload": {
1111
"files": [
1212
"src/registration.php"

src/Block/Category.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function __construct(
3838
*/
3939
protected function _prepareLayout()
4040
{
41-
$title = $this->getCategory()->getTitle()->getRendered();
41+
$title = $this->getCategory()->getName();
4242
if ($breadcrumbsBlock = $this->getLayout()->getBlock('breadcrumbs')) {
4343
$breadcrumbsBlock->addCrumb(
4444
'home',

src/etc/module.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0"?>
22
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
3-
<module name="Skywire_WordpressApi" setup_version="0.2.4">
3+
<module name="Skywire_WordpressApi" setup_version="0.2.5">
44
</module>
55
</config>

0 commit comments

Comments
 (0)