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 */