openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 51c9814d6917fd270ffd2b984eac53b37ba2b475
parent 728759d750fc8867a75714e69a99efab815fc732
Author: Jan Dankert <devnull@localhost>
Date:   Wed,  5 Sep 2018 00:05:10 +0200

Fix für PHP < 5.5: Eine Methode darf nicht 'include' heißen.

Diffstat:
modules/template-engine/components/html/Component.class.php | 2+-
modules/template-engine/components/html/date/Date.class.php | 2+-
modules/template-engine/components/html/radiobox/Radiobox.class.php | 2+-
modules/template-engine/components/html/selectbox/Selectbox.class.php | 2+-
modules/template-engine/components/html/tree/Tree.class.php | 2+-
modules/template-engine/components/html/user/User.class.php | 2+-
6 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/modules/template-engine/components/html/Component.class.php b/modules/template-engine/components/html/Component.class.php @@ -87,7 +87,7 @@ abstract class Component } - protected function include( $file ) + protected function includeResource($file ) { echo "<?php include_once( 'modules/template-engine/components/html/".$file."') ?>"; } diff --git a/modules/template-engine/components/html/date/Date.class.php b/modules/template-engine/components/html/date/Date.class.php @@ -10,7 +10,7 @@ class DateComponent extends Component { $date = $this->date; - $this->include( 'date/component-date.php'); + $this->includeResource( 'date/component-date.php'); echo '<?php component_date('.$this->value($this->date).') ?>'; } } diff --git a/modules/template-engine/components/html/radiobox/Radiobox.class.php b/modules/template-engine/components/html/radiobox/Radiobox.class.php @@ -19,7 +19,7 @@ class RadioboxComponent extends Component public function begin() { - $this->include( 'radiobox/component-radio-box.php'); + $this->includeResource( 'radiobox/component-radio-box.php'); if ( isset($this->default)) $value = $this->value($this->default); diff --git a/modules/template-engine/components/html/selectbox/Selectbox.class.php b/modules/template-engine/components/html/selectbox/Selectbox.class.php @@ -71,7 +71,7 @@ class SelectboxComponent extends Component else $value = '$'.$this->varname($this->name); - $this->include( 'selectbox/component-select-box.php'); + $this->includeResource( 'selectbox/component-select-box.php'); echo '<?php component_select_option_list($'.$this->varname($this->list).','.$value.','.intval(boolval($this->addempty)).','.intval(boolval($this->lang)).') ?>'; // Keine Einträge in der Liste, wir benötigen ein verstecktes Feld. diff --git a/modules/template-engine/components/html/tree/Tree.class.php b/modules/template-engine/components/html/tree/Tree.class.php @@ -8,7 +8,7 @@ class TreeComponent extends Component public function begin() { - parent::include('tree/component-tree.php'); + parent::includeResource('tree/component-tree.php'); echo '<?php component_tree('.$this->value($this->tree).') ?>'; } diff --git a/modules/template-engine/components/html/user/User.class.php b/modules/template-engine/components/html/user/User.class.php @@ -9,7 +9,7 @@ class UserComponent extends Component protected function begin() { - parent::include('user/component-user.php'); + parent::includeResource('user/component-user.php'); echo '<?php component_user('.$this->value($this->user).') ?>'; }