summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 493edf8)
raw | patch | inline | side by side (parent: 493edf8)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 5 Nov 2008 09:23:45 +0000 (09:23 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 5 Nov 2008 09:23:45 +0000 (09:23 +0000) |
-basename and dirname don't work with paths only like '/etc/gosa/', basename returns 'gosa' and dirname returns '/etc' ..
Replaced
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12918 594d385d-05f5-0310-b6e9-bd551577e9d8
Replaced
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12918 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/fai/admin/fai/class_faiTemplateEntry.inc | patch | blob | history |
diff --git a/gosa-plugins/fai/admin/fai/class_faiTemplateEntry.inc b/gosa-plugins/fai/admin/fai/class_faiTemplateEntry.inc
index 0fea63c2ce83a235be5e6ece026aacf47e79e1f0..7ecd486cf7a9cafb30475adef6e83450ea19503b 100644 (file)
}
/* We now split cn/FAItemplatePath to make things more clear... */
- $smarty->assign("templateFile", basename($this->FAItemplatePath));
- $smarty->assign("templatePath", dirname($this->FAItemplatePath));
+ $smarty->assign("templateFile", preg_replace("/^.*\//","",$this->FAItemplatePath));
+ $smarty->assign("templatePath", preg_replace("/[^\/]*$/","",$this->FAItemplatePath));
$smarty->assign("freeze", preg_match("/freeze/i",$this->FAIstate));;
$display.= $smarty->fetch(get_template_path('faiTemplateEntry.tpl', TRUE));