From c0e39118b5c0e3e0e4f1b7ea38808283a115f4c8 Mon Sep 17 00:00:00 2001 From: Jeongkyu Shin Date: Mon, 20 Jun 2016 15:07:31 +0900 Subject: [PATCH] refs #1431 : bugfix - default dispatcher is absent --- rewrite.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rewrite.php b/rewrite.php index a77aea84d..e7ee4ed0f 100644 --- a/rewrite.php +++ b/rewrite.php @@ -5,8 +5,10 @@ define('ROOT',dirname(__FILE__)); if (file_exists(ROOT . '/framework/id/load')) { $app_id = trim(file_get_contents(ROOT . '/framework/id/load')); +} else { + $app_id = 'textcube'; } -require_once(ROOT.'/framework/id/'+$app_id+'/Dispatcher.php'); +require_once(ROOT.'/framework/id/'.$app_id.'/Dispatcher.php'); /** Dispatching Interface request via URI */ $dispatcher = Dispatcher::getInstance(); /** Interface Loading */