openrat-cms

OpenRat Content Management System
git clone http://git.code.weiherhei.de/openrat-cms.git
Log | Files | Refs | README

commit c02729b862bf1697450c211b1f0e7b797e2ce978
parent e49867a5e449befdeeeb5a28b2643ca320694427
Author: Jan Dankert <develop@jandankert.de>
Date:   Sun, 14 Mar 2021 00:18:57 +0100

Fix: Use getPage() in all Macros.

Diffstat:
Mmodules/cms/macros/macro/SearchIndex.class.php | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/cms/macros/macro/SearchIndex.class.php b/modules/cms/macros/macro/SearchIndex.class.php @@ -34,7 +34,7 @@ class SearchIndex extends Macro { $searchIndex = array(); - $project = new Project( $this->page->projectid ); + $project = new Project( $this->getPage()->projectid ); $f = new Folder( $project->getRootObjectId() ); $f->load();