openrat-cms

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

commit c9da06a467dbdf3d699f120f45a809c18f83065b
parent 86feb9d73fc44573580f349ddc7de531349ca588
Author: Jan Dankert <develop@jandankert.de>
Date:   Wed, 21 Oct 2020 23:14:01 +0200

Fix: Every Component must implement createElement()

Diffstat:
Mmodules/template_engine/components/html/component_include/IncludeComponent.class.php | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/modules/template_engine/components/html/component_include/IncludeComponent.class.php b/modules/template_engine/components/html/component_include/IncludeComponent.class.php @@ -13,5 +13,10 @@ class IncludeComponent extends Component public $file; + public function createElement() + { + // no elements required. The template compiler will do the work. + return null; + } }