[Fusionforge-commits] r10784 - trunk/src/common/reporting

Alain Peyrat aljeux at libremir.placard.fr.eu.org
Fri Oct 1 20:23:28 CEST 2010


Author: aljeux
Date: 2010-10-01 20:23:28 +0200 (Fri, 01 Oct 2010)
New Revision: 10784

Modified:
   trunk/src/common/reporting/report_utils.php
Log:
Factorise code, use site_header()

Modified: trunk/src/common/reporting/report_utils.php
===================================================================
--- trunk/src/common/reporting/report_utils.php	2010-10-01 18:23:23 UTC (rev 10783)
+++ trunk/src/common/reporting/report_utils.php	2010-10-01 18:23:28 UTC (rev 10784)
@@ -24,17 +24,8 @@
  */
 
 function report_header($title) {
-	global $HTML ;
-	echo $HTML->header(array('title'=>" "._('Reporting').": " . $title));
-	if (isset($GLOBALS['error_msg'])) {
-		echo html_error_top($GLOBALS['error_msg']);
-	}
-	if (isset($GLOBALS['warning_msg'])) {
-		echo html_warning_top($GLOBALS['warning_msg']);
-	}
-	if (isset($GLOBALS['feedback'])) {
-		echo html_feedback_top($GLOBALS['feedback']);
-	}
+	site_header(array('title'=>" "._('Reporting').": " . $title));
+
 	echo "<h1>".sprintf(_('%1$s Reporting'), forge_get_config ('forge_name'))."</h1>\n";
 }
 




More information about the Fusionforge-commits mailing list