Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomáš Voslař committed Jan 6, 2014
1 parent abd52a2 commit 79b728c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libs/helpers/SystemRouter.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ public function __construct($em){
function match(\Nette\Http\IRequest $httpRequest){

$path = $httpRequest->getUrl()->getPath();
$query = str_replace($httpRequest->getUrl()->getScriptPath(), '', $path);

if($httpRequest->getUrl()->getScriptPath() !== '/') $query = str_replace($httpRequest->getUrl()->getScriptPath(), '', $path);
else $query = substr($path, 1, strlen($path));

$path = explode('/', $query);

Expand Down

0 comments on commit 79b728c

Please sign in to comment.