X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=gosa-core%2Finclude%2Ffunctions_helpviewer.inc;h=13a528d7d7e7df9ef51f8f2ce2e201a49c1d7a48;hb=30d939bbc772a9b8cdd9704e8034101e957ab972;hp=1339332ac34e5591be194bd173abd7789edcb111;hpb=951ff52238278141c5d423bda877eea92c86ce32;p=gosa.git
diff --git a/gosa-core/include/functions_helpviewer.inc b/gosa-core/include/functions_helpviewer.inc
index 1339332ac..13a528d7d 100644
--- a/gosa-core/include/functions_helpviewer.inc
+++ b/gosa-core/include/functions_helpviewer.inc
@@ -1,21 +1,23 @@
$attrs){
+ foreach($helpobject['helpconf'] as $id => $attrs){
$path = $test -> get_path($id);
$exists = true;
- $helpdir = "../doc/guide/user/".$helpobject['lang']."/html/".preg_replace("/^.*\//i","",$path)."/";
+ $helpdir = "../doc/core/".$helpobject['lang']."/html/".preg_replace("/^.*\//i","",$path)."/";
if(!is_dir($helpdir)){
$exists = false;
}
@@ -254,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);
}
@@ -271,7 +274,7 @@ function search($arr,$word)
$tryword = ""; // Temporary searchword handling
$result['global']['maxhit'] = 0;
session::un_set('lastresults');
- unset($_SESSION['parsed_search_keyword']);
+ session::un_set('parsed_search_keyword');
session::set('parsed_search_keyword',"");
error_reporting(E_ALL | E_STRICT);
@@ -289,7 +292,7 @@ function search($arr,$word)
/* Filter words smaler than 3 chars */
if(strlen($tryword)>=$minwordlength) {
- $_SESSION['parsed_search_keyword'].=$tryword." ";
+ session::set('parsed_search_keyword', session::get('parsed_search_keyword').$tryword." ");
$useablewords[]=$tryword;
}
}
@@ -384,7 +387,7 @@ function searchlist($arr,$res,$maxresults)
$ret.= "
".sprintf(_("%s results for your search with the keyword %s"),
"".count($topten)."",
- "".$_SESSION['parsed_search_keyword']."");
+ "".session::get('parsed_search_keyword')."");
$ret.="
";
return($ret);