Skip to content

Commit

Permalink
add 'param' methode parameter for AppContext Interface and JelixContext
Browse files Browse the repository at this point in the history
  • Loading branch information
nworr authored and github-actions[bot] committed Dec 2, 2024
1 parent 57070a4 commit ff1800a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion lizmap/modules/lizmap/lib/App/AppContextInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions lizmap/modules/lizmap/lib/App/JelixContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit ff1800a

Please sign in to comment.