commit 3e1526768a73a35283c051b1dc05808b36679bbc parent edc9424c6deb4c41a9b5aec4819b1f549d9f0d57 Author: markseu <mark2011@mayberg.se> Date: Tue, 11 Jul 2017 14:14:50 +0200 System update (API) Diffstat:
| M | system/plugins/core.php | | | 6 | ++++++ |
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/system/plugins/core.php b/system/plugins/core.php @@ -801,6 +801,12 @@ class YellowPage return !is_null($this->pageRelations[$key]) ? $this->pageRelations[$key] : $this; } + // Return page base + function getBase($multiLanguage = false) + { + return $multiLanguage ? rtrim($this->base.$this->yellow->pages->getHomeLocation($this->location), '/') : $this->base; + } + // Return page location function getLocation($absoluteLocation = false) {