Skip to content
This repository has been archived by the owner on Nov 26, 2017. It is now read-only.

Commit

Permalink
Merge pull request #1826 from piotr-cz/patch_JApplicationWebRouter
Browse files Browse the repository at this point in the history
Allow Web application router to return controller output.
  • Loading branch information
eddieajau committed Mar 27, 2013
2 parents 1be5596 + cccb9f6 commit e1c265e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/joomla/application/web/router.php
Expand Up @@ -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
Expand All @@ -77,7 +77,7 @@ public function execute($route)
$controller = $this->fetchController($name);

// Execute the controller.
$controller->execute();
return $controller->execute();
}

/**
Expand Down

0 comments on commit e1c265e

Please sign in to comment.