Commit graph

37 commits

Author SHA1 Message Date
Alexandre Emsenhuber
56de6f1b62 doc tweaks: link to http://www.php.net instead of mirrors. 2008-03-27 18:52:08 +00:00
Brion Vibber
0da8555d89 * (bug 12801) Fix link in subtitle message in AJAX search 2008-03-19 00:03:56 +00:00
Brion Vibber
7a3227596e * Merged backends for OpenSearch suggestions and AJAX search.
Both now accept namespace prefixes, handle 'Media:' and 'Special:' pages,
  and reject interwiki prefixes. PrefixSearch class centralizes this code,
  and the backend part can be overridden by the PrefixSearchBackend hook.
2008-01-30 01:07:49 +00:00
Victor Vasiliev
26e9af5c27 Introduce SajaxSearch hook 2008-01-26 19:27:19 +00:00
Victor Vasiliev
71a05b82ba Fix AJAX search caching on invalid titles 2008-01-20 06:50:53 +00:00
Victor Vasiliev
a56b74a950 * Add caching to the AJAX search 2008-01-14 18:44:29 +00:00
Huji
2d8a62941c (bug 12608) Unifying the spelling of getDBkey() in the code. 2008-01-14 09:13:04 +00:00
Brion Vibber
c8e0c4f78f * (bug 12451) AJAX title normalization tweaks 2007-12-31 22:42:47 +00:00
Victor Vasiliev
9bf44efcd8 wfSajaxSearch cleanup:
* Normalize titles
* Support namespaces (including special pages)
* Hide empty results
* Other fixes
2007-12-16 13:32:10 +00:00
Victor Vasiliev
58d8a1bf61 Fix output of wfSajaxSearch:
* Escape all messages
* Use pretty output for terms instead of urlencoded one
2007-12-16 10:06:42 +00:00
Aryeh Gregor
a15c419b3d Remove ?>'s from files. They're pointless, and just asking for people to mess with the files and add trailing whitespace. (Yes, I looked over every one and reverted those that were bogus. Slash-enter a million times in less worked well enough, although it was a bit mind-numbing.) 2007-06-29 01:19:14 +00:00
Aryeh Gregor
faa7a6a8c8 Fix up AJAX watch and enable it by default.
* Allow it to work for nonexistent articles (pass title instead of ID)
* Use event handlers, not javascript: URLs
* Fix bug preventing akeytt from setting tooltips for a single element
* Add jsMsg() function to wikibits to allow messages to be displayed dynamically at the top of the screen (could use dismiss button?)

Some test-cases I've thrown at it worked fine (nonexistent pages, namespaced pages, pages with funny characters), but I haven't spent seven weeks in a cave meditating on what could possibly go wrong, so there may be some kind of omission somewhere.
2007-06-22 17:36:59 +00:00
Antoine Musso
343420d0ad Convert whitespaces to tabulations 2007-04-21 14:44:56 +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
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
Brion Vibber
0b06a4fffc Revert r19529 ('ajax editors list'); per chat w/ hashar I recommend working on this as an extension for now. It seems pretty modular, and should be an ideal candidate for that. 2007-01-21 03:14:06 +00:00
Antoine Musso
ed8e8e5833 Optional feature : 'Ajax show editors' based on an idea by Tim Starling
Merge from hashar's branch.
2007-01-20 21:05:36 +00:00
Andrew Garrett
8da1713151 - $term = htmlspecialchars( $term );
+	$term = urlencode( $term );

($terms is used in a URL, and hence should be url-encoded rather than html-encoded)
2007-01-17 12:19:53 +00:00
Antoine Musso
1d84c78096 whitespaces killing 2007-01-09 20:25:28 +00:00
Nick Jenkins
b74d985232 Testing AJAX watch/unwatch, with E_STRICT error_reporting:
Prevent :
* Strict Standards: Non-static method Title::newFromID() should not be called statically in includes/AjaxFunctions.php on line 147
[stopped AJAX watch/unwatch working for me, as I have errors being logged to the page output]

E_STRICT warnings on truncated GET input (e.g. http://192.168.0.64/wiki/index.php?action=ajax&rs=wfAjaxWatch&rsargs[]=1 , rather than http://192.168.0.64/wiki/index.php?action=ajax&rs=wfAjaxWatch&rsargs[]=1&rsargs[]=u ), prevent by specifying default $watch value of "" (which should result in an error '<err#>' response, which is probably fine).
* Strict Standards: Missing argument 2 for wfAjaxWatch() in includes/AjaxFunctions.php on line 138
* Strict Standards: Undefined variable: watch in includes/AjaxFunctions.php on line 142

E_STRICT warnings on another truncated GET input ( http://192.168.0.64/wiki/index.php?action=ajax&rs=wfAjaxWatch&rsargs= ), prevent by specifying default $pageID value of "" (which again should result in an error '<err#>' response because it's not numeric, which is probably fine).
* Strict Standards: Missing argument 1 for wfAjaxWatch() in includes/AjaxFunctions.php on line 138

E_STRICT warning on bad GET input - "rs" as array, not as a string - (e.g. http://192.168.0.64/wiki/index.php?action=ajax&rs[]= ), adding explicit cast to string:
* Strict Standards: htmlspecialchars() expects parameter 1 to be string, array given in includes/AjaxDispatcher.php on line 58
2007-01-09 07:05:34 +00:00
Aryeh Gregor
69ea9bcf9b (bug 7169) Use Ajax to watch/unwatch articles. Patch by Dan Li with some modification by me. 2006-12-26 23:53:34 +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
3005679b0e * Removed lots of explicit require_once statements. The autoloader should theoretically be faster, because it always uses an absolute path, eliminating the need for a search, and it is never called unnecessarily. Absolute paths are also more robust in the face of odd configurations or usage patterns. Moved a few constants around to support this, they always have to be available before the method call.
* Deleted DatabaseMysql.php, no longer necessary, database classes are autoloaded. 
* Moved wfGetMimeMagic() to MimeMagic::singleton()
* Fixed a couple of __CLASS__.'::'.__FUNCTION__ things.
2006-10-03 13:00:52 +00:00
Daniel Kinzler
6584cef207 Revamped ajax interface, see release notes.
Note: wfSajaxSearch is broken (unrelated to these changes)
2006-08-29 15:43:34 +00:00
Daniel Kinzler
f9be15fd13 Added squid cache control to AjaxCachePolicy, similar to what OutputPage does.
Experimental.
2006-08-15 21:37:06 +00:00
Daniel Kinzler
ee88c38f1f Added logic for setting Vary header in AjaxCachePolicy 2006-08-15 20:47:16 +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
Tim Starling
0a0e28e82b Valid exit status codes range from 0 to 254. 2006-06-07 04:15:58 +00:00
Brion Vibber
0a26267688 Revert to r14512; domas introduced massive breakage with incomplete experimental changes. They will be recommitted when they work. :) 2006-06-01 08:19:02 +00:00
Domas Mituzas
bda0b8e104 Use AutoLoader to load classes:
* remove require_once() throughout whole code, yet left in few places
* move global functions in HttpUtils, ProxyTools, Credits to class methods
* php5 only: __autoload() now used, combined with class->file map and require()
* move initialization of $wgValidSkinNames to Skin::getSkinNames()
* few more changes that will surely break stuff.
2006-06-01 07:22:49 +00:00
Antoine Musso
698d8d66a7 some unused globals as per #3692 2006-04-30 16:23:01 +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
a418b4ae41 Live fix: cache header tweak 2006-04-02 03:55:24 +00:00
Jens Frank
86c655d7ab Ajax based suggest feature for the search box 2006-03-26 19:03:14 +00:00