From af4e3997c20b66510f2a95bde0e62c4dcddebfa0 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 8 May 2007 08:00:40 +0000 Subject: [PATCH] Added "Feedback send info" git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6289 594d385d-05f5-0310-b6e9-bd551577e9d8 --- setup/class_setupStep_Feedback.inc | 5 +++++ setup/setup_feedback.tpl | 2 ++ 2 files changed, 7 insertions(+) diff --git a/setup/class_setupStep_Feedback.inc b/setup/class_setupStep_Feedback.inc index 59849117f..bd2580b44 100644 --- a/setup/class_setupStep_Feedback.inc +++ b/setup/class_setupStep_Feedback.inc @@ -121,6 +121,8 @@ class Step_Feedback extends setup_step $this->init(); } + $additional_info =""; + if(isset($_POST['send_feedback'])){ $msgs = $this->check(); @@ -143,6 +145,8 @@ class Step_Feedback extends setup_step } if(!preg_match("/successfully/i",$ret_value)){ print_red(sprintf(_("Could not send feedback. Script said '%s'."),$ret_value)); + }else{ + $additional_info = ""._("Feedback sucessfully send").""; } } @fclose($ret); @@ -162,6 +166,7 @@ class Step_Feedback extends setup_step } $smarty->assign("years",$years); $smarty->assign("features_used",$this->features_used); + $smarty->assign("additional_info",$additional_info); $smarty->assign ("must", "*"); return($smarty->fetch(get_template_path("setup_feedback.tpl",TRUE,dirname(__FILE__)))); } diff --git a/setup/setup_feedback.tpl b/setup/setup_feedback.tpl index 319f46a47..20fae54e6 100644 --- a/setup/setup_feedback.tpl +++ b/setup/setup_feedback.tpl @@ -1,5 +1,7 @@
+

{$additional_info}

+

 {t}Subscribe to the gosa-announce mailinglist{/t}

-- 2.30.2