com web/php: Restore the old site's default search, which is to try the quickref first.: include/header.inc
| From: | Paul Dragoonis | Date: | Thu, 21 Nov 2013 01:08:42 +0000 |
| Subject: | com web/php: Restore the old site's default search, which is to try the quickref first.: include/header.inc | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-22514@lists.php.net to get a copy of this message | ||
Commit: 702da089e53f284bc888de3ee57ba48bbb35029a
Author: Adam Harvey <aharvey@php.net> Wed, 20 Nov 2013 15:51:36 -0800
Parents: 0d1a64e83246775f36b3fcaf5ea16904ccf8cbb6
Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=702da089e53f284bc888de3ee57ba48bbb35029a
Log:
Restore the old site's default search, which is to try the quickref first.
This is actually an improvement on the old site, really, because the previous
case of "all php.net sites" is handled by the last item in the dropdown. My
inclination for now is to not worry about the other search modes that were
supported in the old site's search bar: many of them are for subsites that have
their own search, such as bugs.php.net and pecl.php.net, and the others have
tabs on results..php anyway.
Changed paths:
M include/header.inc
Diff:
diff --git a/include/header.inc b/include/header.inc
index 3c28a6d..cba0198 100755
--- a/include/header.inc
+++ b/include/header.inc
@@ -86,6 +86,7 @@ if (isset($shortname) && $shortname) {
<li class="<?php echo $curr == "help" ? "active" :
""?>"><a href="/support">Help</a></li>
</ul>
<form class="navbar-search span3" id="topsearch"
action="/search.php">
+ <input type="hidden" name="show" value="quickref">
<input type="search" name="pattern"
class="search-query" placeholder="Search"/>
</form>
</div>