diff --git a/lizmap/modules/lizmap/lib/App/AppContextInterface.php b/lizmap/modules/lizmap/lib/App/AppContextInterface.php index 4a3fd57802..e16a003c5e 100644 --- a/lizmap/modules/lizmap/lib/App/AppContextInterface.php +++ b/lizmap/modules/lizmap/lib/App/AppContextInterface.php @@ -269,8 +269,9 @@ public function createJelixForm($formSel, $formId = null); * Returns the URL corresponding to the Jelix Selector. * * @param string $selector The Jelix selector + * @param mixed $params action params */ - public function getUrl($selector); + public function getUrl($selector, $params = array()); /** * Returns the absolute Url. diff --git a/lizmap/modules/lizmap/lib/App/JelixContext.php b/lizmap/modules/lizmap/lib/App/JelixContext.php index 195cff1749..386946795c 100644 --- a/lizmap/modules/lizmap/lib/App/JelixContext.php +++ b/lizmap/modules/lizmap/lib/App/JelixContext.php @@ -329,9 +329,9 @@ public function createJelixForm($formSel, $formId = null) return \jForms::create($formSel, $formId); } - public function getUrl($selector) + public function getUrl($selector, $params = array()) { - return \jUrl::get($selector); + return \jUrl::get($selector, $params); } public function getFullUrl($selector, $params = array())