Commit graph

179 commits

Author SHA1 Message Date
Aryeh Gregor
a6aac77d16 Revert r70960 "AjaxDispatcher, now ~30 lines shorter and not using $_GET or $_POST"
Broke CategoryTree, see code review for the error message.
2010-08-13 21:39:51 +00:00
Chad Horohoe
5806e63383 AjaxDispatcher, now ~30 lines shorter and not using $_GET or $_POST 2010-08-12 14:34:54 +00:00
Chad Horohoe
c9b31e0216 Remove unnecessary require(). Autoloader already handles this 2010-08-09 18:55:09 +00:00
Chad Horohoe
c3ca2c3632 Remove extra linebreak 2010-03-21 14:56:44 +00:00
Aryeh Gregor
f2d8c17bc1 Annual copyright year update 2010-01-01 21:09:14 +00:00
Chad Horohoe
a4e5e935b6 Mass convert NULL -> null. Left strings and comments alone, obviously. 2009-12-11 21:07:27 +00:00
Tim Starling
bd8fffe24d Reverted r58646 as per my comments on bug 20554. 2009-12-01 01:55:04 +00:00
Roan Kattouw
1b89cd274a API: (bug 20554) Expose average slave lag (avglag) as well as maxlag. Patch by Sam Reed. 2009-11-06 14:38:55 +00:00
Aaron Schulz
9025f9dc54 reverted r55161 - not needed 2009-08-17 02:25:02 +00:00
Aaron Schulz
7ead47486d Fixed html filecache handling of ?curid urls 2009-08-17 01:54:31 +00:00
Chad Horohoe
0e50b04b03 Handle todo: Mediawiki::initialize() is now called Mediawiki::performRequestForTitle() 2009-07-31 00:56:50 +00:00
Tim Starling
b02dd9c492 Reverted r50065, restInPeace does this since r49684. 2009-05-27 05:32:32 +00:00
Tim Starling
c2433e3be2 Commit master changes on all ajax requests. There's no reason that this should be the responsibility of the callee. Causes annoying bugs when omitted. 2009-04-30 05:28:02 +00:00
Alexandre Emsenhuber
0bf494a1f6 * Added "@file" so that doxygen doesn't attribute the comment to the first instruction
* whitespaces fixes
2009-03-20 12:00:38 +00:00
Aryeh Gregor
ffa193fcb4 Increment years 2009-01-08 01:29:11 +00:00
Aaron Schulz
43c6f33ddb Fix doc comment, sigh 2008-12-28 15:17:21 +00:00
Aaron Schulz
ba77d25db2 FileCache - Leave raw page cache control alone to avoid hits 2008-12-28 15:14:15 +00:00
Aaron Schulz
0dd5d00e67 FileCache tweaks:
* Fix typo self -> MediaWiki
* View updates run on client cache hits
* Removed unneeded $wgOut->disable() call
* Disabled unused output on rawpage cache hits
* Removed redundant checkLastModified()
2008-12-28 15:03:57 +00:00
Aaron Schulz
9b206552ac Opps, forgot to commit this 2008-12-28 14:32:49 +00:00
Aaron Schulz
a7e6cd9d5d * Move filecache hits to faster lower level index.php code
* Disable outputpage after file cache hit, since output was streamed already.
2008-12-27 07:07:16 +00:00
Brion Vibber
a4e2060e45 Revert r44801 "Tweaks from profiling"
Mostly seems to be formatting tweaks, loss of useful debug log output, and mysterious unexplained changes.
If some of these tweaks actually are based on profiling data, please provide details, such as "rearranging this call reduces service time from 80ms to 50ms for client cache hits on my machine" or whatever.
2008-12-23 19:39:00 +00:00
Aaron Schulz
eef9a8cdd7 Tweaks from profiling 2008-12-19 09:21:20 +00:00
Aaron Schulz
b3d0a9767e Whitespace/style consistency 2008-12-09 23:00:28 +00:00
Alexandre Emsenhuber
11a9a8dac4 * (bug 12568) configuration script now produce valid XHTML
* Updated copyright (taken from SpecialVersion.php)
2008-07-20 14:29:04 +00:00
Alexandre Emsenhuber
c44fc31ac7 tweaks:
* group master queries with other queries in "SQL Queries" in profileinfo.php
* end 'main-misc-setup' section before executing ajax requests so that they don't get closed by the profiler for ajax requests.
2008-04-29 16:35:11 +00:00
Tim Starling
fbfb509df5 * Introduced LBFactory -- an abstract class for configuring database load balancers and connecting to foreign DBs.
* Wrote two concrete implementations. LBFactory_Simple is for general installations. LBFactory_Multi will replace the runtime configuration used on Wikimedia and allow load-balanced connections to any DB. 
* Ported Special:Userrights, CentralAuth and OAI audit to the LBFactory system. 
* Added ForeignDBViaLBRepo, a file repository which uses LBFactory.
* Removed $wgLoadBalancer and $wgAlternateMaster
* Improved the query group concept to allow failover and lag control
* Improved getReaderIndex(), it will now try all servers before waiting, instead of waiting after each.
* Removed the $fail parameter to getConnection(), obsolete. 
* Removed the useless force() function. 
* Abstracted the replication position interface to allow for future non-MySQL support.
* Rearranged Database.php. Added a few debugging features. 
* Removed ancient benet-specific hack from waitForSlave.php
2008-03-30 09:48:15 +00:00
Brion Vibber
c893cdddd6 Drop some useless parameters to silly methods on the pretty much broken MediaWiki object.
These are just globals, and will never be anything other than the globals, so just use them...
Works around mysterious segfault we started having on some wikis, for no apparent reason, and simplifies ugly code. Sigh.
2008-03-26 18:18:24 +00:00
Alexandre Emsenhuber
e59670fa15 * Document Exception.php
* Pass $wgArticle by reference in MediaWiki::initialize() so that it can be set before executing an action and can be used when throwing an exception.
2008-03-21 16:56:44 +00:00
Alexandre Emsenhuber
88a0e17557 Rewrite a bit the MediaWiki class:
* Document function parameter and undocumented functions
* Move use of global settings to localized one setted in index.php
* fix whitespaces
* Use __METHOD__ instead of hardcoded method names
* Call MediaWiki::articleFromTitle() staticly
2008-03-19 19:55:26 +00:00
Aaron Schulz
e3a39d4803 Whitespace tweak 2008-02-19 21:19:55 +00:00
Niklas Laxström
9021990c13 * Use full path (for example for apc.filters) 2008-02-09 16:24:09 +00:00
Victor Vasiliev
30a45db7c9 Update some copyright dates to 2008 2008-02-04 04:50:55 +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
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
1ed58139f6 * (bug 9256) Add a quick note to index.php header comments
References documentation and main site, explains that web server is misconfigured if you're reading it, and lists copyright/license info.
2007-03-12 15:57:17 +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
Antoine Musso
f7dfe35d1e Load the ajax stuff once we have a title or we will not be able to parse
wikitext. The parser requires a $wgTitle object or it throws an exception.
2007-01-09 21:00:14 +00:00
Tim Starling
c822e80e8f Exit from AJAX requests properly. Calling exit after doing something is really bad. 2006-08-24 17:01:45 +00:00
Daniel Kinzler
acd1c91af1 fixed include path of AjaxDispatcher.php in index.php 2006-07-26 23:35:49 +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
Domas Mituzas
9aa7ac0d2c microtime(true) instead of slow php4 hacks 2006-05-28 21:25:03 +00:00
Jens Frank
cf256a36bf Fix wrong path 2006-03-27 20:15:24 +00:00
Jens Frank
97666d062d OOP'ed Ajax functions, embedded in index.php for better compatibility with wikipedia.org setup 2006-03-27 18:53:15 +00:00
Antoine Musso
0cb608f2da * additional comments
* line wrap at 80 columns
2006-01-15 23:12:27 +00:00
Antoine Musso
313c45d5ae funny quotes 2006-01-15 23:07:19 +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
Magnus Manske
ae035e1d27 Moving more stuff to Wiki.php 2006-01-11 19:33:15 +00:00