From 931621bb39d91886f94f0ed4987b3dd3ea1352a9 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 19 May 2010 09:45:11 +0000 Subject: [PATCH] Fixed PHP warning messagesFixed PHP warning messages git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18547 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../plugins/addons/propertyEditor/class_propertyEditor.inc | 6 ++++-- gosa-core/plugins/addons/propertyEditor/property-list.tpl | 6 +++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/gosa-core/plugins/addons/propertyEditor/class_propertyEditor.inc b/gosa-core/plugins/addons/propertyEditor/class_propertyEditor.inc index d8d26e043..93b605ab1 100644 --- a/gosa-core/plugins/addons/propertyEditor/class_propertyEditor.inc +++ b/gosa-core/plugins/addons/propertyEditor/class_propertyEditor.inc @@ -9,6 +9,8 @@ class propertyEditor extends management var $toBeMigrated = array(); + var $warningAccepted = FALSE; + function __construct($config,$ui) { $this->config = $config; @@ -62,7 +64,7 @@ class propertyEditor extends management // Once accepted hide the warning message if(isset($_POST['warningAccepted'])){ - $this->warningNotAccepted = TRUE; + $this->warningAccepted = TRUE; } // Execute registered management event listeners. @@ -119,7 +121,7 @@ class propertyEditor extends management } $smarty = get_smarty(); - $smarty->assign("warningNotAccepted", $this->warningNotAccepted); + $smarty->assign("warningAccepted", $this->warningAccepted); $smarty->assign("ignoreLdapProperties", $this->config->configRegistry->ignoreLdapProperties); return(management::execute()); } diff --git a/gosa-core/plugins/addons/propertyEditor/property-list.tpl b/gosa-core/plugins/addons/propertyEditor/property-list.tpl index e22885feb..44bd4c074 100644 --- a/gosa-core/plugins/addons/propertyEditor/property-list.tpl +++ b/gosa-core/plugins/addons/propertyEditor/property-list.tpl @@ -1,4 +1,4 @@ -{if !$warningNotAccepted} +{if !$warningAccepted} @@ -18,8 +18,8 @@

- - {t}I know the risks and want to modify properties!{/t} + +
-- 2.30.2