Skip to content

Commit

Permalink
RouteList: do not change name of MicroPresenter
Browse files Browse the repository at this point in the history
this allows using micro presenter in module routers. otherwise it will prepend Nette:Micro with the module name
  • Loading branch information
paranoiq authored and dg committed Dec 24, 2013
1 parent 3c98920 commit ace91b4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Application/Routers/RouteList.php
Expand Up @@ -40,7 +40,10 @@ public function match(Nette\Http\IRequest $httpRequest)
foreach ($this as $route) {
$appRequest = $route->match($httpRequest);
if ($appRequest !== NULL) {
$appRequest->setPresenterName($this->module . $appRequest->getPresenterName());
$name = $appRequest->getPresenterName();
if (strncmp($name, 'Nette:', 6)) {
$appRequest->setPresenterName($this->module . $name);
}
return $appRequest;
}
}
Expand Down

0 comments on commit ace91b4

Please sign in to comment.