mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +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()) { /* {{{ */
|
||||
$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;
|
||||
} /* }}} */
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user