Brion Vibber
b08f93c1db
Add a free() function on SearchResultSet class, so the underlying result set can be freed
2007-06-06 18:36:11 +00:00
Antoine Musso
3a974cd851
Fix #3431 : dont show next link when there is no more additional results.
...
NOTE: Mysqlsearch do not give us the number of total results, so we are
not really sure if the show results are really the last ones.
2007-05-04 20:07:52 +00:00
Daniel Kinzler
57f30e2d89
don't show excerpts from non-readable articles
2007-05-03 12:44:05 +00:00
Nick Jenkins
f9619da3f0
Yet more doc tweaks:
...
* Add @addtogroup tags to various classes, to try and group conceptually-related classes together.
* Add brief descriptions to various Special pages, thanks to Phil Boswell.
* Moving some docs to be right above the classes they represent, so that they are picked up.
2007-04-20 08:55:14 +00:00
Raimond Spekking
899967e703
* (bug 8919) Suppress paging links and related messages where there are no
...
rows to list for query pages
Based on patch by Sui Min
2007-02-21 10:42:04 +00:00
Nick Jenkins
f88c771756
The war on redundant ampersand usage!
...
* Convert "$dbw =& wfGetDB( DB_MASTER );" --> "$dbw = wfGetDB( DB_MASTER );"
* convert "$skin =& $wgUser->getSkin();" --> "$skin = $wgUser->getSkin();"
For the time being have not changed the function definitions of wfGetDB() or User::getSkin() [i.e. they are still both return-by-ref], so as to ensure the interface does not change for extensions [some of which may still be trying to run on PHP4 environments]. However presumably at some point this can be changed too.
Also includes tiny tweak to newlines in parserTests - will show 1 rather than 2 newlines between the "Reading tests from" strings when in quiet mode.
2007-01-22 23:50:42 +00:00
Antoine Musso
c771fc9c96
Use Doxygen @addtogroup instead of phpdoc @package && @subpackage
2007-01-20 15:09:52 +00:00
Antoine Musso
171945efed
User::getOption now accept a default value to override default user values
...
this makes it consistent with WebRequest::get* methods. Corrected code in
various places accordingly.
2006-12-14 20:28:38 +00:00
Nick Jenkins
ae8554c45b
Completing code housekeeping stuff for rest of includes/ directory: removing unused local vars, removing unused globals, replacing extract() where simple to do, declaring output arrays before calling preg_match(), and so forth.
2006-11-29 11:43:58 +00:00
Nick Jenkins
14c53b728f
Code housekeeping stuff (and barring any stuff-ups on my behalf, there should be no changes in behaviour whatsoever after this) -
...
* removing some unused global declarations.
* removing or commenting out or adding comments for unused local vars.
* Adding one or two local var declarations.
* Declaring $matches array passed to preg_match() / preg_match_all() as array() before using [not required, just have a slight preference for the explicitness].
* remove one or two pass-by-reference function declarations where the value is not modified.
* Adding some braces to if-else blocks.
* In Parser.php, stripstrate is now an object rather than an array as per r17820, so we no longer need ask for a reference to it (as in "$x =& $this->mStripState;"), and in fact it's probably just simpler to get rid of $x altogether.
* Moving some preg regexes from "" quoting to '' quoting to stop static analyzer whinging about bad escape sequences.
... up to "LinksUpdate.php" in the includes/ directory.
2006-11-23 08:25:56 +00:00
Tim Starling
36ed0cd96c
Reverting 17479/17480, breaks subclassing of Linker methods by skins. See my comment on bug 7405.
2006-11-08 07:12:03 +00:00
Nick Jenkins
fa239349f2
* (bug 7405) Make Linker methods static. Patch by Dan Li.
2006-11-08 05:21:15 +00:00
Tim Starling
a3b490d2c4
* Made special page names case-insensitive and localisable. Care has been taken to maintain backwards compatibility.
...
* Used special page subpages in a few more places, instead of query parameters
2006-10-30 06:25:31 +00:00
Brion Vibber
85b6e95bea
merge r16576 from SerbianVariants branch; should fix 'go' variant search on non-default search (Lucene)
2006-09-20 14:38:32 +00:00
Brion Vibber
fb4ed49503
remove stray wfProfileOut()
2006-09-20 11:19:59 +00:00
Brion Vibber
61b04a3e95
* Updates to language variant code for Serbian et al
2006-09-20 10:22:12 +00:00
Brion Vibber
a38c8add84
reverting SerbianVariants check-in, not ready to go live yet on Wikimedia
2006-09-15 21:02:35 +00:00
Brion Vibber
1657774656
Merge from SerbianVariants branch, trunk 16500 vs SerbianVariants 16523
2006-09-15 20:08:21 +00:00
Jimmy Collins
fea9c9f129
* (bug 5456) Separate MediaWiki:Search into messages for both noun and
...
verb, introduced MediaWiki:Searchbutton
2006-07-22 20:22:50 +00:00
Brion Vibber
ba78b052b0
Revert 15733 and 15719 for the moment; I see some eval'd string code and other thinsg which make me nervous and I don't think anybody's reviewed this
2006-07-19 20:13:39 +00:00
Robert Stojnić
83da52c540
Enable UTF-8 lower/upper case operations in SearchEngine,
...
search in different variants (if needed).
Minor bug fixes for LanguageConverter: do no convert
roman numbers and text between <code></code> into
variants (e.g. cyrillic).
2006-07-19 19:17:36 +00:00
Niklas Laxström
3b454333ef
* More escaping
2006-07-08 13:53:50 +00:00
Ilmari Karonen
f3d4d5ed5b
capitalization, spacing (thanks robchurch)
2006-07-02 23:07:02 +00:00
Ilmari Karonen
50359b0f48
"searchsubtitleinvalid" message for searches that are not valid titles
2006-07-02 22:50:52 +00:00
Rob Church
94c9383fd7
* Rename "searchquery" to "searchsubtitle" and support wiki text in it
2006-07-02 19:36:11 +00:00
Rob Church
86fae18df3
Replace "nogomatch" with "noexactmatch" and place the magic colon in the messages themselves. Some minor tweaks to the actual message content.
2006-06-12 11:10:07 +00:00
Domas Mituzas
e6085d6e36
AutoLoad Revision
2006-06-06 10:56:46 +00:00
Domas Mituzas
ca5f647c09
AutoLoad search classes
2006-06-06 10:33:23 +00:00
Rob Church
f880038136
Pass a second parameter to "nogomatch" containing the search terms minus the preceding colon, allowing prettied-up messages
2006-05-28 21:45:53 +00:00
Niklas Laxström
8b403ede36
* (bug 5805) message nbytes can now use {{plural:}}
...
* Cleaned up Special:Imagelist a bit
2006-05-05 12:21:12 +00:00
Antoine Musso
69689725c1
Switching from phpdoc to doxygen (use less than 32MB of memory).
...
Run maintenance/mwdocgen.php to generate doc in ./docs/html/ .
2006-04-19 15:46:24 +00:00
Brion Vibber
f2c29baf9f
Update the FSF's address in all these GPL stub headers
2006-04-05 07:43:17 +00:00
Lupin
11337038b3
removing unused globals and some whitespace cleaning
2006-03-07 01:10:39 +00:00
Ævar Arnfjörð Bjarmason
a26d5a49d7
* s~\t+$~~
2006-01-07 13:31:29 +00:00
Ævar Arnfjörð Bjarmason
7bbe971aec
* s~ +$~~
2006-01-07 13:09:30 +00:00
Antoine Musso
e4145dda57
killing double quotes. width attribute is invalid for input element, using size instead (the value is the number of character)
2005-10-22 21:33:53 +00:00
Ævar Arnfjörð Bjarmason
2f4230678a
* Adding a SpecialSearchNogomatch hook to catch pages searched for with the go
...
button that don't exist.
2005-09-19 13:06:09 +00:00
Brion Vibber
64343fe186
Corrected fix for injection
2005-08-25 04:15:16 +00:00
Antoine Musso
31f9baa742
XSS issue : now sanitize search query input
2005-08-25 03:42:18 +00:00
Brion Vibber
af2177edfd
Code cleanup: normalize case for intval(), strval(), floatval() calls.
2005-08-16 23:36:16 +00:00
Antoine Musso
b3ab52afc5
Fix bug 145: finish 'exclude redirect' implementation
2005-08-10 21:12:00 +00:00
Niklas Laxström
630df86929
Make the Mysql search work
2005-08-02 21:07:47 +00:00
Antoine Musso
ede303724a
FIX #655 : when user enter an empty search query:
...
* show an empty search form
* hide subtitle
2005-07-12 14:57:04 +00:00
Ævar Arnfjörð Bjarmason
7d2a81f4df
* Removed htmlspecialchars(), everything given to setSubtitle() now goes
...
through the parser so this is redundant.
2005-06-24 23:02:36 +00:00
Brion Vibber
aa99b80d7f
Change the SearchEngine interface around:
...
* Reduce some duplicated code between MySQL 3 and 4 classes
* Generalize some things to better support Lucene search plugin
2005-05-23 08:42:20 +00:00
Brion Vibber
493c8dce7f
* (bug 2041) prepend : to thingy and floo boo boo wigwam. this commit message isn't very good. something about searching.
2005-05-02 02:13:25 +00:00
Ævar Arnfjörð Bjarmason
4910a35ed8
* Now passing msg:search as the third paramater to googlesearch
2005-04-29 18:44:24 +00:00
Ævar Arnfjörð Bjarmason
774967012b
* addWikitext instead of addHTML
2005-04-25 09:05:18 +00:00
Antoine Musso
2104f62734
fix phpdoc comment
2005-01-27 19:51:47 +00:00
Brion Vibber
cbf9973aaf
* Fix missing search box contents in MonoBook skin
...
* Add option to forward search directly to an external URL (eg google)
* Add parser test for bug 1219 URL next to image
2005-01-07 03:25:49 +00:00