parameter $urlparams of html_url() can be a string

This commit is contained in:
Uwe Steinmann 2021-07-21 08:10:42 +02:00
parent 23f05a4eb6
commit 09a60988fb

View File

@ -290,8 +290,10 @@ class SeedDMS_View_Common {
*/
protected function html_url($view, $urlparams=array()) { /* {{{ */
$url = $this->params['settings']->_httpRoot."out/out.".$view.".php";
if($urlparams)
if(is_array($urlparams))
$url .= "?".http_build_query($urlparams);
elseif(is_string($urlparams))
$url .= "?".$urlparams;
return $url;
} /* }}} */