[Fusionforge-commits] r11314 - in trunk/src/www: search/include/renderers snippet tracker/admin

Alain Peyrat aljeux at libremir.placard.fr.eu.org
Tue Nov 2 12:00:31 CET 2010


Author: aljeux
Date: 2010-11-02 12:00:31 +0100 (Tue, 02 Nov 2010)
New Revision: 11314

Modified:
   trunk/src/www/search/include/renderers/HtmlSearchRenderer.class.php
   trunk/src/www/snippet/snippet_utils.php
   trunk/src/www/tracker/admin/form-workflow_roles.php
Log:
Minor changes: layout, indent.

Modified: trunk/src/www/search/include/renderers/HtmlSearchRenderer.class.php
===================================================================
--- trunk/src/www/search/include/renderers/HtmlSearchRenderer.class.php	2010-11-02 11:00:24 UTC (rev 11313)
+++ trunk/src/www/search/include/renderers/HtmlSearchRenderer.class.php	2010-11-02 11:00:31 UTC (rev 11314)
@@ -99,7 +99,7 @@
 		
 		$html = '<h1>'.sprintf(_('Search results for <em>%1$s</em>'), $query['words']).'</h1>';
 		if(!$searchQuery->getResult() || $searchQuery->getRowsCount() < 1) {
-			$html .= '<p><strong>'.sprintf(_('No matches found for <em>%s</em>'), $query['words']).'</strong></p>';
+			$html .= '<p><strong>'.sprintf(_('No matches found for <em>%1$s</em>'), $query['words']).'</strong></p>';
 			$html .= db_error();
 		} else {
 			$html .= $GLOBALS['HTML']->listTableTop($this->tableHeaders);

Modified: trunk/src/www/snippet/snippet_utils.php
===================================================================
--- trunk/src/www/snippet/snippet_utils.php	2010-11-02 11:00:24 UTC (rev 11313)
+++ trunk/src/www/snippet/snippet_utils.php	2010-11-02 11:00:31 UTC (rev 11314)
@@ -101,13 +101,15 @@
 $SCRIPT_EXTENSION[16] = '.cs';
 
 function snippet_header($params) {
-	if (!forge_get_config('use_snippet')) {
-		exit_disabled();
-	}
 	global $HTML;
 	global $feedback;
 	global $warning_msg;
 	global $error_msg;
+
+	if (!forge_get_config('use_snippet')) {
+		exit_disabled();
+	}
+
 	$HTML->header($params);
 	if (!empty($error_msg)) {
 		html_feedback_top($error_msg);

Modified: trunk/src/www/tracker/admin/form-workflow_roles.php
===================================================================
--- trunk/src/www/tracker/admin/form-workflow_roles.php	2010-11-02 11:00:24 UTC (rev 11313)
+++ trunk/src/www/tracker/admin/form-workflow_roles.php	2010-11-02 11:00:31 UTC (rev 11314)
@@ -29,9 +29,7 @@
 		$from = getIntFromRequest('from');
 		$next = getIntFromRequest('next');
 		
-		//
 //	FORM TO UPDATE ARTIFACT TYPES
-//
 		$ath->adminHeader(array ('title'=> _('Configure allowed roles'),'pagename'=>'tracker_admin_customize_liste','titlevals'=>array($ath->getName())));
 
 		/*




More information about the Fusionforge-commits mailing list