Skip to content

Commit

Permalink
refs #1431 : bugfix - default dispatcher is absent
Browse files Browse the repository at this point in the history
  • Loading branch information
inureyes committed Jun 20, 2016
1 parent 01767b2 commit c0e3911
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rewrite.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit c0e3911

Please sign in to comment.