Skip to content

Commit

Permalink
refs #1431 : add - can load custom dispatcher now
Browse files Browse the repository at this point in the history
  • Loading branch information
inureyes committed Jun 15, 2016
1 parent f10c003 commit 909152d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion rewrite.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 909152d

Please sign in to comment.