From 18561186b0b9cf61d5f408a8e773e025b37bc461 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 21 Nov 2007 07:23:09 +0000 Subject: [PATCH] Fixed w3c errors for hooks. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7834 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/fai/class_faiHookEntry.inc | 7 ++++++- plugins/admin/fai/faiHook.tpl | 4 +--- plugins/admin/fai/faiHookEntry.tpl | 5 +++-- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/plugins/admin/fai/class_faiHookEntry.inc b/plugins/admin/fai/class_faiHookEntry.inc index 0d12d8e35..5a23ea497 100644 --- a/plugins/admin/fai/class_faiHookEntry.inc +++ b/plugins/admin/fai/class_faiHookEntry.inc @@ -115,7 +115,12 @@ class faiHookEntry extends plugin } $smarty->assign($name."ACL",$acl); } - + + if(get_magic_quotes_gpc()){ + $smarty->assign("FAIscript" , htmlentities(stripslashes($this->FAIscript))); + }else{ + $smarty->assign("FAIscript" , htmlentities($this->FAIscript)); + } $display.= $smarty->fetch(get_template_path('faiHookEntry.tpl', TRUE)); return($display); } diff --git a/plugins/admin/fai/faiHook.tpl b/plugins/admin/fai/faiHook.tpl index 95ceba6fb..6768ad92d 100644 --- a/plugins/admin/fai/faiHook.tpl +++ b/plugins/admin/fai/faiHook.tpl @@ -36,9 +36,7 @@

  - + {t}List of hook scripts{/t}

diff --git a/plugins/admin/fai/faiHookEntry.tpl b/plugins/admin/fai/faiHookEntry.tpl index 7d6bc4415..882da267d 100644 --- a/plugins/admin/fai/faiHookEntry.tpl +++ b/plugins/admin/fai/faiHookEntry.tpl @@ -38,7 +38,7 @@ {t}Task{/t}  {render acl=$FAItaskACL} - {html_options values=$tasks output=$tasks selected=$FAItask} {/render} @@ -60,7 +60,8 @@ -- 2.30.2
{render acl=$FAIscriptACL} - + {/render}