openrat-cms

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

commit b9e8045cb5d37e5ff0c350fd2faa387c71b33d88
parent 749735b459fbcc3d9a28b6a212a27288ab79c5f3
Author: Jan Dankert <develop@jandankert.de>
Date:   Thu,  1 Oct 2020 20:55:07 +0200

Fix: Import RequestParams (for using their constants)

Diffstat:
modules/cms/model/File.class.php | 2+-
modules/template_engine/components/html/form/Form.class.php | 1+
modules/template_engine/components/html/group/group.js | 6++++--
modules/template_engine/components/html/link/Link.class.php | 1+
4 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/modules/cms/model/File.class.php b/modules/cms/model/File.class.php @@ -144,7 +144,7 @@ class File extends BaseObject $this->mime_type = $mime_types[$ext]; else // Wenn kein Mime-Type gefunden, dann Standartwert setzen - $this->mime_type = self::OR_FILE_DEFAULT_MIMETYPE; + $this->mime_type = self::DEFAULT_MIMETYPE; return( $this->mime_type ); } diff --git a/modules/template_engine/components/html/form/Form.class.php b/modules/template_engine/components/html/form/Form.class.php @@ -2,6 +2,7 @@ namespace template_engine\components; +use cms\action\RequestParams; use template_engine\components\html\Component; use template_engine\element\CMSElement; use template_engine\element\HtmlElement; diff --git a/modules/template_engine/components/html/group/group.js b/modules/template_engine/components/html/group/group.js @@ -1,5 +1,7 @@ +/** + * open/close handler for groups. + */ Openrat.Workbench.afterViewLoadedHandler.add( function(element ) { - registerOpenClose( $(element).find('.or-group.toggle-open-close') ); - + Openrat.Workbench.registerOpenClose( $(element).find('.or-group.toggle-open-close') ); }); diff --git a/modules/template_engine/components/html/link/Link.class.php b/modules/template_engine/components/html/link/Link.class.php @@ -2,6 +2,7 @@ namespace template_engine\components; +use cms\action\RequestParams; use template_engine\components\html\Component; use template_engine\element\CMSElement; use util\json\JSON;