From: hickert Date: Tue, 27 Jul 2010 12:41:56 +0000 (+0000) Subject: Updated smarty html-object factory X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=bae768d77d68c72577b04d56a32b907f686cf45d;p=gosa.git Updated smarty html-object factory -Added ability to disable generated fields git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19167 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/smarty/plugins/function.factory.php b/gosa-core/include/smarty/plugins/function.factory.php index 7de9c138a..10b15ffc5 100644 --- a/gosa-core/include/smarty/plugins/function.factory.php +++ b/gosa-core/include/smarty/plugins/function.factory.php @@ -11,6 +11,9 @@ function smarty_function_factory($params, &$smarty) $$tmp = (isset($params[$var]))? "{$var}=\"{$params[$var]}\"" : ""; } + $disabled = (isset($params['disabled']))? 'disabled' : ""; + + $str = ""; switch($type){ @@ -20,7 +23,7 @@ function smarty_function_factory($params, &$smarty) // Maxlength has a default of 40 characters $maxlengthReady = (empty($maxlength))?'maxlength="40"': $maxlengthReady; $str .= "