Code

Updated remove template
[gosa.git] / gosa-core / html / helpviewer.php
index bb1300725bc630371611d334ba9213aa5d0af998..4a4f39982a20872ccbd4f2bddd5585388e72939b 100644 (file)
@@ -116,7 +116,7 @@ if(session::global_is_set('current_class_for_help')){
   if($helpdir == ""){
     
     $smarty->assign("help_contents","<br><h2>"._("There is no helpfile specified for this class"))."</h2>";
-    $smarty->assign("iePngWorkaround", $config->get_cfg_value("iePngWorkaround", FALSE));
+    $smarty->assign("iePngWorkaround", $config->get_cfg_value("iePngWorkaround","false" ) == "true");
     $header= "<!-- headers.tpl-->".$smarty->fetch(get_template_path('headers.tpl'));
     $display= (  $header.$smarty->fetch(get_template_path('help.tpl')));
     echo $display;
@@ -151,7 +151,7 @@ if(session::global_is_set('current_class_for_help')){
 if(isset($_GET['pg'])){
  
   if(preg_match("/\//",$_GET['pg'])){
-    $arr = split("\/",$_GET['pg']);
+    $arr = explode("/", $_GET['pg']);
     $helpobject['currentplug'] = "../doc/core/".$helpobject['lang']."/html/".$arr[0];
     $helpdir = $helpobject['currentplug'];
     $helpobject['file']= $arr[1];