diff options
author | Matthieu Napoli <matthieu@mnapoli.fr> | 2015-03-16 04:55:20 +0300 |
---|---|---|
committer | Matthieu Napoli <matthieu@mnapoli.fr> | 2015-03-16 04:55:20 +0300 |
commit | a7a8c7173a9bef6a67006e5e463c1cdcfbd27b23 (patch) | |
tree | cac655381b199af73bb0964b873abc82fd8c40ef /core/Plugin/Menu.php | |
parent | d3e92fa484956fd1edf853cac83e7d2c7a0f3310 (diff) |
Avoid calling the same method twice
Diffstat (limited to 'core/Plugin/Menu.php')
-rw-r--r-- | core/Plugin/Menu.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/Plugin/Menu.php b/core/Plugin/Menu.php index a95ad71c9a..e354728821 100644 --- a/core/Plugin/Menu.php +++ b/core/Plugin/Menu.php @@ -78,11 +78,12 @@ class Menu */ protected function urlForAction($controllerAction, $additionalParams = array()) { - $this->checkisValidCallable($this->getModule(), $controllerAction); + $module = $this->getModule(); + $this->checkisValidCallable($module, $controllerAction); $params = (array) $additionalParams; $params['action'] = $controllerAction; - $params['module'] = $this->getModule(); + $params['module'] = $module; return $params; } |