mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-09 13:06:14 +00:00
parameter $urlparams of html_url() can be a string
This commit is contained in:
parent
23f05a4eb6
commit
09a60988fb
|
@ -290,8 +290,10 @@ class SeedDMS_View_Common {
|
||||||
*/
|
*/
|
||||||
protected function html_url($view, $urlparams=array()) { /* {{{ */
|
protected function html_url($view, $urlparams=array()) { /* {{{ */
|
||||||
$url = $this->params['settings']->_httpRoot."out/out.".$view.".php";
|
$url = $this->params['settings']->_httpRoot."out/out.".$view.".php";
|
||||||
if($urlparams)
|
if(is_array($urlparams))
|
||||||
$url .= "?".http_build_query($urlparams);
|
$url .= "?".http_build_query($urlparams);
|
||||||
|
elseif(is_string($urlparams))
|
||||||
|
$url .= "?".$urlparams;
|
||||||
return $url;
|
return $url;
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user