diff --git a/libraries/joomla/application/web/router.php b/libraries/joomla/application/web/router.php index d70f5bb946..d81f2de47d 100644 --- a/libraries/joomla/application/web/router.php +++ b/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(); } /**