X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=gosa-core%2Finclude%2Ffunctions_helpviewer.inc;h=13a528d7d7e7df9ef51f8f2ce2e201a49c1d7a48;hb=30d939bbc772a9b8cdd9704e8034101e957ab972;hp=a44a06d0d2caf8bfcc6e2dbc4e7a111b7d95632a;hpb=f7bd29eeb2f192eaa659b0cb7799506f4c1abf68;p=gosa.git diff --git a/gosa-core/include/functions_helpviewer.inc b/gosa-core/include/functions_helpviewer.inc index a44a06d0d..13a528d7d 100644 --- a/gosa-core/include/functions_helpviewer.inc +++ b/gosa-core/include/functions_helpviewer.inc @@ -63,9 +63,9 @@ function genIndex() { global $helpobject; $str = ""; - $config = session::get('config'); - $helpobject = session::get('helpobject'); - $test = new pluglist($config,get_userinfo()); + $helpobject = session::global_get('helpobject'); + $ui= get_userinfo(); + $test = new pluglist(session::global_get('config'), $ui); $current_hl = ""; foreach($helpobject['helpconf'] as $id => $attrs){ $path = $test -> get_path($id); @@ -258,8 +258,7 @@ function remove_unwanted_tags($str,$replacements) function linkwrapper($str,$link) { $str = preg_replace("/HREF=\"http/i","target=\"_blank\" href=\"http",$str); - $str = preg_replace("/HREF=\"/","href=\"".$link."?pg=",$str); - $str=str_replace("HREF=\"","href=\"".$link."?pg=",$str); + $str = str_replace("HREF=\"","href=\"".$link."?pg=",$str); return($str); }