summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3859ccf)
raw | patch | inline | side by side (parent: 3859ccf)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 15 Oct 2010 08:56:01 +0000 (08:56 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 15 Oct 2010 08:56:01 +0000 (08:56 +0000) |
-Allow to have different title values than the 'dn';
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20054 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20054 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/class_listing.inc | patch | blob | history |
index 95a7290193c27c2b787e481ebb6c889bdeb51ba0..456b3cb8d087bffbe022c7cdf10c81c74de4d57d 100644 (file)
$row= func_get_arg(0);
$pid= $this->pid;
- $dn= LDAP::fix(func_get_arg(1));
+
+ // Prepare title attribute
+ $titleAttr = func_get_arg(1);
+ if(is_array($titleAttr) && isset($titleAttr[0])){
+ $titleAttr = $titleAttr[0];
+ }
+ $titleAttr = LDAP::fix($titleAttr);
+
$params= array(func_get_arg(2));
// Collect sprintf params
$result= " ";
$trans= call_user_func_array("sprintf", $params);
if ($trans != "") {
- return("<a href='?plug=".$_GET['plug']."&PID=$pid&act=listing_edit_$row' title='$dn'>".set_post($trans)."</a>");
+ return("<a href='?plug=".$_GET['plug']."&PID=$pid&act=listing_edit_$row' title='{$titleAttr}'>".set_post($trans)."</a>");
}
return $result;