Skip to content
This repository was archived by the owner on Oct 19, 2022. It is now read-only.

Commit 0b2abbd

Browse files
authored
Merge pull request #4 from stormbyte/master
Fallback to site default as stated in the module
2 parents 3d7e52d + 98a66c9 commit 0b2abbd

File tree

1 file changed

+9
-2
lines changed
  • app/code/local/Emico/AttributeLanding/Model

1 file changed

+9
-2
lines changed

app/code/local/Emico/AttributeLanding/Model/Page.php

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
* @method $this setOverviewImage(string $filename);
3232
* @method string getOverviewDescription();
3333
* @method $this setOverviewDescription(string $description);
34-
* @method string getRobots();
3534
* @method $this setRobots(string $robots);
3635
* @method $this setCanonicalUrl(string $canonicalUrl)
3736
*
@@ -153,4 +152,12 @@ public function getUrlPath()
153152
}
154153
return $urlPath;
155154
}
156-
}
155+
156+
/**
157+
* @return string|null
158+
*/
159+
public function getRobots()
160+
{
161+
return this->getData('robots')?? Mage::getStoreConfig('design/head/default_robots');
162+
}
163+
}

0 commit comments

Comments
 (0)