openrat-cms

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

commit d1870286c5e4cd4ded027185efda77a5ba8c9951
parent 9206863d3fcfdafe3992557b32c4b34326ac08ce
Author: Jan Dankert <devnull@localhost>
Date:   Mon, 24 Sep 2018 21:45:01 +0200

Fix: init() der Elternklasse aufrufen.

Diffstat:
modules/cms-core/action/FileAction.class.php | 2++
modules/cms-core/action/FolderAction.class.php | 2++
modules/cms-core/action/ImageAction.class.php | 5++++-
modules/cms-core/action/PageAction.class.php | 6++++--
modules/cms-core/action/UrlAction.class.php | 4+++-
5 files changed, 15 insertions(+), 4 deletions(-)

diff --git a/modules/cms-core/action/FileAction.class.php b/modules/cms-core/action/FileAction.class.php @@ -55,6 +55,8 @@ class FileAction extends ObjectAction $this->file = new File( $this->getRequestId() ); $this->file->languageid = $this->getRequestVar(REQ_PARAM_LANGUAGE_ID); $this->file->load(); + + parent::init(); } diff --git a/modules/cms-core/action/FolderAction.class.php b/modules/cms-core/action/FolderAction.class.php @@ -63,6 +63,8 @@ class FolderAction extends ObjectAction $this->folder->load(); $this->lastModified( $this->folder->lastchangeDate); + + parent::init(); } diff --git a/modules/cms-core/action/ImageAction.class.php b/modules/cms-core/action/ImageAction.class.php @@ -40,7 +40,10 @@ class ImageAction extends FileAction $this->image->load(); $this->file = $this->image; - } + + parent::init(); + + } diff --git a/modules/cms-core/action/PageAction.class.php b/modules/cms-core/action/PageAction.class.php @@ -49,14 +49,16 @@ class PageAction extends ObjectAction $this->page->modelid = $this->request->getModelId(); $this->page->load(); - $this->baseObject = & $this->page; + //$this->baseObject = & $this->page; // Hier kann leider nicht das Datum der letzten Änderung verwendet werden, // da sich die Seite auch danach ändern kann, z.B. durch Includes anderer // Seiten oder Änderung einer Vorlage oder Änderung des Dateinamens einer // verlinkten Datei. $this->lastModified( time() ); - } + + parent::init(); + } /** diff --git a/modules/cms-core/action/UrlAction.class.php b/modules/cms-core/action/UrlAction.class.php @@ -56,7 +56,9 @@ class UrlAction extends ObjectAction { $this->url = new Url( $this->getRequestId() ); $this->url->load(); - } + + parent::init(); + }