This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Merge pull request #1826 from piotr-cz/patch_JApplicationWebRouter

Allow Web application router to return controller output.
  • Loading branch information...
eddieajau committed Mar 27, 2013
2 parents 1be5596 + cccb9f6 commit e1c265ea9b1512b879633bc7a7af23f985279ff1
Showing with 2 additions and 2 deletions.
  1. +2 −2 libraries/joomla/application/web/router.php
@@ -62,7 +62,7 @@ public function __construct(JApplicationWeb $app, JInput $input = null)
*
* @param string $route The route string for which to find and execute a controller.
*
- * @return void
+ * @return mixed The return value of the controller executed
*
* @since 12.2
* @throws InvalidArgumentException
@@ -77,7 +77,7 @@ public function execute($route)
$controller = $this->fetchController($name);
// Execute the controller.
- $controller->execute();
+ return $controller->execute();
}
/**

0 comments on commit e1c265e

Please sign in to comment.