[Fusionforge-commits] FusionForge branch master updated. 53940a599f945475b55133a0d083a3fb3e874611

Franck VILLAUME nerville at fusionforge.org
Fri Feb 21 09:36:26 CET 2014


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".

The branch, master has been updated
       via  53940a599f945475b55133a0d083a3fb3e874611 (commit)
      from  372fc83cde5fa384dcc125dfbd6fd3e6ad9caece (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 53940a599f945475b55133a0d083a3fb3e874611
Author: Franck Villaume <franck.villaume at trivialdev.com>
Date:   Fri Feb 21 09:36:08 2014 +0100

    use html_ap rather than hardcoded reference

diff --git a/src/common/docman/views/search.php b/src/common/docman/views/search.php
index aa32052..23e53c8 100644
--- a/src/common/docman/views/search.php
+++ b/src/common/docman/views/search.php
@@ -57,7 +57,7 @@ echo html_ao('div', array('id' => 'docman_search_query_words'));
 echo html_e('span', array('id' => 'docman_search_query_label'), _('Query').utils_requiredField()._(': '));
 echo html_e('input', array('type' => 'text', 'name' => 'textsearch', 'id' => 'textsearch', 'size' => 48, 'value' => $searchString, 'required' => 'required', 'placeholder' => _('Searched words')));
 echo html_e('input', array('type' => 'submit', 'value' => _('Search')));
-echo html_ac(1);
+echo html_ac(html_ap() - 2);
 echo html_ao('div', array('id' => 'docman_search_query_ckeckbox'));
 echo html_e('input', $attrsInputSearchAll)._('With all the words');
 echo html_e('input', $attrsInputSearchOne)._('With at least one of words');
@@ -78,7 +78,7 @@ if (isset($projectIDsArray) && is_array($projectIDsArray)) {
 	echo html_e('input', $attrsInputIncludeSubprojects)._('Include child projects');
 }
 
-echo html_ac(1);
+echo html_ac(html_ap() - 1);
 echo html_ao('div', array('id' => 'docman_search_query_result'));
 if ($searchString) {
 	$mots = preg_split("/[\s,]+/",$searchString);
@@ -159,11 +159,11 @@ if ($searchString) {
 				echo util_make_link($browselink, $localProject->getPublicName(), array('title' => _('Browse document manager for this project.'), 'class' => 'tabtitle-nw')).'::';
 			}
 			echo '<i>'.$docGroupObject->getPath(true, true).'</i></p>';
-			echo html_ac(3);
+			echo html_ac(html_ap() - 2);
 		}
-		echo html_ac(2);
+		echo html_ac(html_ap() - 1);
 	}
 } elseif (getStringFromServer('REQUEST_METHOD') === 'POST') {
 	echo html_e('p', array('class' => 'warning_msg'), _('Your search is empty.'));
 }
-echo html_ac(0);
+echo html_ac(html_ap() -2);

-----------------------------------------------------------------------

Summary of changes:
 src/common/docman/views/search.php |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list