mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-11 20:21:16 +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);
|
||||
$tag = "<a href=\"".$url."\"";
|
||||
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>";
|
||||
return $tag;
|
||||
} /* }}} */
|
||||
|
|
Loading…
Reference in New Issue
Block a user