commit 5afefa52a84542eeea5e82fb2ebec40ef7633801
parent 591c81a60feb5c05cea6552780e56e80b775d59a
Author: Jan Dankert <devnull@localhost>
Date: Wed, 20 Dec 2017 01:10:44 +0100
Fix: Konstanten für neuen Typ 'image'.
Diffstat:
2 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/dispatcher.php b/dispatcher.php
@@ -190,10 +190,12 @@ try
{
Http::serverError("no method (subaction) supplied");
}
-
- require( OR_ACTIONCLASSES_DIR.'Action.class.php' );
- require( OR_ACTIONCLASSES_DIR.'ObjectAction.class.php' );
-
+
+ // Elternklassen einbinden
+ require_once( OR_ACTIONCLASSES_DIR.'Action.class.php' );
+ require_once( OR_ACTIONCLASSES_DIR.'ObjectAction.class.php' );
+ require_once( OR_ACTIONCLASSES_DIR.'FileAction.class.php' );
+
$actionClassName = ucfirst($action).'Action';
$actionClassNameWithNamespace = 'cms\\action\\'.$actionClassName;
diff --git a/init.php b/init.php
@@ -30,6 +30,8 @@ define('OR_TITLE' ,'OpenRat CMS');
define('OR_TYPE_FOLDER','folder');
define('OR_TYPE_PAGE' ,'page' );
define('OR_TYPE_FILE' ,'file' );
+define('OR_TYPE_IMAGE' ,'image' );
+define('OR_TYPE_TEXT' ,'text' );
define('OR_TYPE_LINK' ,'link' );
define('OR_TYPE_URL' ,'url' );