From 909152d7f771d906e770afbd02199f3a49fbb365 Mon Sep 17 00:00:00 2001 From: Jeongkyu Shin Date: Wed, 15 Jun 2016 15:26:01 +0900 Subject: [PATCH] refs #1431 : add - can load custom dispatcher now --- rewrite.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rewrite.php b/rewrite.php index fbcb4fce6..a77aea84d 100644 --- a/rewrite.php +++ b/rewrite.php @@ -3,7 +3,10 @@ /// All rights reserved. Licensed under the GPL. /// See the GNU General Public License for more details. (/documents/LICENSE, /documents/COPYRIGHT) define('ROOT',dirname(__FILE__)); -require_once(ROOT.'/framework/id/textcube/Dispatcher.php'); +if (file_exists(ROOT . '/framework/id/load')) { + $app_id = trim(file_get_contents(ROOT . '/framework/id/load')); +} +require_once(ROOT.'/framework/id/'+$app_id+'/Dispatcher.php'); /** Dispatching Interface request via URI */ $dispatcher = Dispatcher::getInstance(); /** Interface Loading */