mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-16 14:41:39 +00:00
fix html_link(), link attributes can't be added
This commit is contained in:
parent
8d8f3e51fb
commit
4590a14de1
|
@ -229,7 +229,8 @@ class SeedDMS_View_Common {
|
||||||
$url = $this->html_url($view, $urlparams);
|
$url = $this->html_url($view, $urlparams);
|
||||||
$tag = "<a href=\"".$url."\"";
|
$tag = "<a href=\"".$url."\"";
|
||||||
if($linkparams)
|
if($linkparams)
|
||||||
array_walk($linkparams, function($v, $k) {$tag .= " ".$k."=\"".$v."\"";});
|
foreach($linkparams as $k=>$v)
|
||||||
|
$tag .= " ".$k."=\"".$v."\"";
|
||||||
$tag .= ">".($hsc ? htmlspecialchars($link) : $link)."</a>";
|
$tag .= ">".($hsc ? htmlspecialchars($link) : $link)."</a>";
|
||||||
return $tag;
|
return $tag;
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user