River Tarnell
e59f873bef
- Http::request(), Http::post()
...
- don't redirect page views on POST
- Special:Export shouldn't do POST special case when page name provided
- Special:Import should use POST for interwiki fetches
2007-05-10 19:13:02 +00:00
Tim Starling
c14ee392eb
X-Database-Lag header
2007-04-25 09:05:09 +00:00
Tim Starling
568ec10605
syntax error
2007-04-22 22:03:02 +00:00
Tim Starling
58a41965bf
503 response code on lag error
2007-04-22 22:01:41 +00:00
Tim Starling
916997d6f6
maxlag hidden parameter. Allows client-side bots to throttle under slave lag conditions, just like server-side maintenance scripts.
2007-04-22 21:17:10 +00:00
Brion Vibber
738b967b7c
* (bug 8992) Fix a remaining raw use of REQUEST_URI in history
2007-02-15 23:40:05 +00:00
Brion Vibber
6038f9ed00
* Clean up session checks to better handle the case where the session was
...
opened during the current request. May help with some caching corner
cases.
2007-02-05 21:42:48 +00:00
Nick Jenkins
61678d8a5d
* Removing a handful of unused globals.
...
* $stack is not modified in Profiler::calltreeCount(), no need to pass-by-ref.
* Add FIXME marker to non-cross-platform line.
* A freshly created string does not need to be returned by reference. [Xml::namespaceSelector() and HTMLnamespaceselector() ].
2007-01-23 07:29:58 +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
Rob Church
e7bf509eab
Introduce 'CustomEditor' hook; see docs/hooks.txt for more information
2007-01-20 19:51:21 +00:00
Antoine Musso
b144fcb85d
Rename constructors to __constructor
2007-01-20 13:34:31 +00:00
Antoine Musso
1fc273e40a
whitespaces killing
2007-01-20 12:59:34 +00:00
Brion Vibber
de72df4032
* (bug 3000) Fall back to SCRIPT_NAME plus QUERY_STRING when REQUEST_URI is
...
not available, as on IIS with PHP-CGI
2007-01-16 01:45:51 +00:00
Brion Vibber
b62d4ed32d
* Attempt to detect redirect loops for the canonical title redirect, and
...
give some hints to the poor confused administrator.
2007-01-03 09:15:11 +00:00
Ilmari Karonen
e0b9a317ed
Use Title::newMainPage() in various places instead of calling
...
wfMsgForContent( 'mainpage' ) directly. Also add release notes
for previous commit.
2006-12-03 00:22:14 +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
bf63ffaa2c
Committed a bunch of live hacks from Wikimedia servers
...
A few left, but these don't look too evil
2006-10-02 17:04:13 +00:00
Tim Starling
b4e8a8a187
Added hook to allow Article subclassing in extensions
2006-08-24 17:04:24 +00:00
Tim Starling
49dedbcd8f
Don't run jobs in read only mode.
2006-08-02 03:27:08 +00:00
Tim Starling
3ea576aa25
Consolidated web initialisation code into includes/WebStart.php. Moved profiling setup to a hook file "StartProfiler.php", following Brion's suggestion to merge Wikimedia's early profiling patch into subversion. Renamed Profiling.php and logProfilingData(), removed unnecessary wfProfileClose() calls.
2006-07-14 05:35:31 +00:00
Tim Starling
1cf360cb76
Use wfDebugLog() for the job queue log.
2006-07-04 14:26:14 +00:00
Tim Starling
242f024d1b
Log job execution time
2006-07-03 16:41:07 +00:00
Brion Vibber
581eea8b13
* (bug 502) Avoid silly tabs on bad title by using virtual special page
...
patch by Ilmari Karonen
http://bugzilla.wikimedia.org/attachment.cgi?id=2034
2006-07-01 17:08:51 +00:00
Rob Church
7c3ee724bb
TYPOS IN COMMENTS MAKE BABY JESUS CRY
...
a.k.a keeping the anal-retentives quiet
2006-06-08 18:03:48 +00:00
Tim Starling
02547dac72
Removed most exit() calls from the MediaWiki core, by replacing them with either a throw or by classic error checking. OutputPage::fatalError() and similar functions are deprecated, use either OutputPage::showFatalError() to return control or throw new FatalError() to relinquish it. Backwards compatibility of all interfaces has been maintained, thus extensions should continue to work and can be ported at a later date.
2006-06-07 06:40:24 +00:00
Domas Mituzas
93623ad2d7
AutoLoad RawPage, EditPage, ExternalEdit, PageHistory, move DIR_NEXT and DIR_PREV constants into PageHistory::
2006-06-06 12:28:44 +00:00
Domas Mituzas
3fdf040feb
AutoLoad JobQueue
2006-06-06 11:48:05 +00:00
Domas Mituzas
df5ad143c6
AutoLoad ImagePage and CategoryPage
2006-06-06 10:23:27 +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
Brion Vibber
a75f16b262
* (bug 6086) Remove vestigial attempt to call Article::validate()
2006-05-25 22:13:41 +00:00
Antoine Musso
7ebdb6de89
Revert to r14165 . Did too many changes, didnt even run parserTests (i am bad)
2006-05-11 22:40:38 +00:00
Antoine Musso
bc14eb8045
Replacing var keyword with private / public as we now require PHP5.
2006-05-11 19:10:41 +00:00
Antoine Musso
f10a20e33f
Revert trunk@r13993
...
See branches/hashar@14000 for a proper fix for bug #218 .
2006-05-01 17:51:10 +00:00
Antoine Musso
780c02b32c
Fix #218 : Redirects do not support named anchors
...
Probably need backporting in REL1_6 for 1.6.4 release.
2006-05-01 13:03:58 +00:00
Tim Starling
814f8a80c2
Don't require an existence check before calling loadPageData(). Added an accessor for page_latest, faster than getRevIdFetched() when it's needed for the permalink in the sidebar. Added shortcut calling convention for loadPageData().
2006-03-16 02:32:30 +00:00
Lupin
c7408b9223
trailing whitespace removal
2006-03-11 17:13:49 +00:00
Tim Starling
8aa182976c
bug
2006-02-24 07:49:36 +00:00
Tim Starling
eeb84cce20
Added job table, for deferred processing of jobs. The immediate application is to complete the link table refresh operation when templates are changed.
2006-02-24 01:56:31 +00:00
Antoine Musso
d61e187083
some basic quotes
2006-01-15 23:14:48 +00:00
Ævar Arnfjörð Bjarmason
bba0069640
* Fixed regression in last commit: If we don't check for existance we'll get
...
"Trying to get property of non-object" E_NOTICE in Article::loadPageData()
when viewing a page that does not exist
2006-01-15 03:28:36 +00:00
Domas Mituzas
9e706b583b
oh right right right!!! we have different Article subclasses!!!!!!
...
"Learn, learn and again..learn (c) Lenin"
2006-01-14 21:19:17 +00:00
Brion Vibber
53539af755
revert more of dammit's broken code
...
PLEASE TEST THIS FOR GOD'S SAKE
2006-01-14 20:27:47 +00:00
Domas Mituzas
a2f8d2ac74
Revert brion's revert. And learning a lesson about rebinding references. Ergh, I need to read php docs again :)
...
Removing several & in previous code would have fixed everything, bwah.
2006-01-14 09:58:29 +00:00
Brion Vibber
14d561739d
Reverted Domas's last checkin. Broken! Please test more thoroughly before checkin.
...
Tabs had the wrong page info (redirect source instead of target)
2006-01-14 04:34:06 +00:00
Domas Mituzas
47f599dd82
Handle redirects correctly, saves queries (no revision text loading for cached documents, etc)
2006-01-14 03:11:24 +00:00
Brion Vibber
59b62d1eb7
revert to Wiki.php 1.28 and index.php 1.130
...
this broke wikipedia. please DO NOT COMMIT BROKEN CODE ON HEAD EVER AGAIN
2006-01-13 17:33:37 +00:00
Magnus Manske
b71834bdec
index.php now fits on a single screen :-)
2006-01-13 12:52:04 +00:00
Magnus Manske
3ccace42c0
Further cleanup of index.php
2006-01-13 12:10:59 +00:00
Brion Vibber
04a7e6291e
* (bug 1103) Fix up redirect handling for images, categories
...
Redirects are now followed from the top-level, outside of the Article
content loading and viewing, for clarity and consistency.
2006-01-13 00:29:20 +00:00