Skip to content

Commit

Permalink
Merge branch 'feature/fix-dispatch-stage' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
trq committed Jun 26, 2012
2 parents 54f7933 + f57af6b commit e839b4d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions lib/Proem/Api/Dispatch/Stage.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,9 @@ protected function processRoutes()
}
}
]);
if ($dispatched) {
break;
}
}

if (!$dispatched) {
Expand Down
2 changes: 1 addition & 1 deletion lib/Proem/Api/Dispatch/Standard.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ public function isDispatchable()
if (class_exists($this->class)) {
$this->class = new $this->class($this->assets);
if ($this->class instanceof \Proem\Controller\Template) {
if (is_callable($this->class, $this->action . 'Action')) {
if (is_callable([$this->class, $this->action . 'Action'])) {
return true;
}
}
Expand Down

0 comments on commit e839b4d

Please sign in to comment.