Code

Updated dhcp plugin to be loaded
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 1 Feb 2008 14:16:36 +0000 (14:16 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 1 Feb 2008 14:16:36 +0000 (14:16 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8724 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/dhcp/admin/systems/services/dhcp/class_dhcpService.inc
gosa-plugins/dhcp/admin/systems/services/dhcp/class_servDHCP.inc

index 4989c43fcb8c9737710c6514c12ebae0ab4f602e..d2dae5ee18dffff73a4528359dd6cd3225a11d95 100644 (file)
@@ -74,7 +74,7 @@ class dhcpService extends dhcpPlugin
     }
 
     /* Show main page */
-    $display= $smarty->fetch(get_template_path('dhcp_service.tpl', TRUE)).$this->network->execute();
+    $display= $smarty->fetch(get_template_path('dhcp_service.tpl', TRUE, dirname(__FILE__))).$this->network->execute();
 
     /* Merge arrays for advanced view */
     $this->fix_options();
index c804ec2bc17a013aa45265ac27f7c736ff4608be..e9f28da6e9aad62b5de325b4abe124d4aa315777 100644 (file)
@@ -108,7 +108,7 @@ class servdhcp extends goService
         print_red($warning);
         $this->display_warning = FALSE;
       }
-      return($smarty->fetch(get_template_path('servdhcp.tpl', TRUE)));
+      return($smarty->fetch(get_template_path('servdhcp.tpl', TRUE, dirname(__FILE__))));
     }
 
     
@@ -253,7 +253,7 @@ class servdhcp extends goService
           $this->current_object= $dn;
           $this->dialog= 1;
           $smarty->assign("warning", sprintf(_("You're about to delete the DHCP section '%s'."), $dn));
-          return($smarty->fetch(get_template_path('remove_dhcp.tpl', TRUE)));
+          return($smarty->fetch(get_template_path('remove_dhcp.tpl', TRUE, dirname(__FILE__))));
         }
       }
 
@@ -362,7 +362,7 @@ class servdhcp extends goService
 
     /* Display tempalte */
     $smarty->assign("DhcpList",$DhcpList->DrawList());
-    $display.= $smarty->fetch(get_template_path('servdhcp.tpl', TRUE));
+    $display.= $smarty->fetch(get_template_path('servdhcp.tpl', TRUE, dirname(__FILE__)));
     return($display);
   }