Code

Updated phone hardware classes.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 21 Feb 2008 14:39:00 +0000 (14:39 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 21 Feb 2008 14:39:00 +0000 (14:39 +0000)
-Use correct template path

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9026 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/gofon/admin/systems/gofon/class_phoneGeneric.inc

index 444e3f6f349679a386d350408c51c11b6ef09529..be2f95de9e88458cbe50423d06f3eda0e3a80a02 100644 (file)
@@ -257,8 +257,8 @@ class phoneGeneric extends plugin
       return($str);
     }
     $smarty->assign("netconfig", $str);
-    $smarty->assign("phonesettings", dirname(__FILE__)."/phonesettings.tpl");
-    return($smarty->fetch (get_template_path('phone.tpl', TRUE)));
+    $smarty->assign("phonesettings", get_template_path("phonesettings.tpl",TRUE,dirname(__FILE__)));
+    return($smarty->fetch (get_template_path('phone.tpl', TRUE,dirname(__FILE__))));
   }
 
   function remove_from_parent()
@@ -451,7 +451,7 @@ class phoneGeneric extends plugin
     $smarty = get_smarty();
     $smarty->assign("cn" ,$this->cn);
     $smarty->assign("object","phone");
-    $str = $smarty->fetch(get_template_path("paste_generic.tpl",TRUE));
+    $str = $smarty->fetch(get_template_path("paste_generic.tpl",TRUE,dirname(__FILE__)));
     $ret = array();
     $ret['string'] = $str;
     $ret['status'] = "";