aboutsummaryrefslogtreecommitdiffstats
path: root/index.php
Commit message (Collapse)AuthorAgeFilesLines
...
* Update index.php and Wiki.php to make better use of the context.Daniel Friesen2011-04-041-5/+6
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/85301
* Follow-up r85278, r85240:Happy-melon2011-04-031-2/+2
| | | | | | | | | * Internalise $title in MediaWiki base class * Fix access fatal in SpecialPage by getting the context from the MediaWiki base class rather than the OutputPage * Fix a couple of typos in RequestContext which would have thrown errors/fatals if anyone had ever called them. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/85285
* Expand wfShowMaxLagError() into index.php. It was only being called from ↵Happy-melon2011-04-031-5/+15
| | | | | | | here and it's pretty non-portable. Doing so reveals that it's safe to move the declaration of $mediaWiki below the maxlag test, which will fractionally improve performance in that instance (partly compensating for having to parse OutputPage as introduced in r85278). Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/85280
* Store the WebRequest and OutputPage in the MediaWiki class, don't pass the ↵Happy-melon2011-04-031-5/+5
| | | | | | | global variables in to each function separately. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/85271
* Cleanup in Wiki.php and index.php:Happy-melon2011-04-031-7/+11
| | | | | | | | | | * Add visibility to MediaWiki::*() methods. * Refactor out MediaWiki::preliminaryChecks(), was actually just one preliminary check :D * maxlag is a property of the database, not the wiki, so MediaWiki::checkMaxLag() doesn't belong. Since it was only called in index.php I just expanded it there, it's only a trivial wrapper anyway. * Run stylize.php over code. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/85259
* Made index.php's profiling cosistent with other entry scriptsAlexandre Emsenhuber2011-04-021-10/+14
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/85204
* Fix for r78512: set the default value to "view" for the action parameterAlexandre Emsenhuber2011-03-061-1/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/83388
* Update copyright yearAlexandre Emsenhuber2011-01-011-1/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/79418
* Add main contributors in SpecialVersion to README and index.php as wellBryan Tong Minh2010-12-291-1/+2
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/79166
* Per ^demon, follow-up r78260: introduced MediaWiki::getAction() to get the ↵Alexandre Emsenhuber2010-12-161-7/+3
| | | | | | | action that will be executed Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/78512
* Call finalCleanup() after outputting a cached page to run the deferred ↵Alexandre Emsenhuber2010-12-091-2/+3
| | | | | | | update list since Article::viewUpdates() adds a SiteStatsUpdate object to that list Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/78124
* Use the AutoLoader to load the AjaxDispatcher classAlexandre Emsenhuber2010-12-081-3/+0
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/78065
* Removed OutputPage::setEncodings(); its current implementation just converts ↵Alexandre Emsenhuber2010-12-081-1/+0
| | | | | | | | | $wgInputEncoding and $wgOutputEncoding to lowercase but the inclusion of Language.php will set them back to uppercase. So instead of playing with these variables, let's just remove that function. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/78054
* * Don't unset $wgTitle if it's null, just let it as is so that the variable ↵Alexandre Emsenhuber2010-12-071-6/+1
| | | | | | | | | is always defined (it is already set to null in in Setup.php). It was added in r12612 when all the code that set $wgTitle was moved in MediaWiki::checkInitialQueries() * Removed comment that documented a line removed in r45126 Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/77975
* Merged wfDoUpdates() and MediaWiki::doUpdates() in wfDoUpdates(); avoids ↵Alexandre Emsenhuber2010-12-071-1/+1
| | | | | | | code duplication Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/77972
* Rm two unused varsChad Horohoe2010-12-061-2/+0
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/77919
* * (bug 26253) Removed $wgPostCommitUpdateListAlexandre Emsenhuber2010-12-061-3/+0
| | | | | | | As I said on the bug, this variable is not used since ages Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/77888
* Revert r70960 "AjaxDispatcher, now ~30 lines shorter and not using $_GET or ↵Aryeh Gregor2010-08-131-1/+1
| | | | | | | | | $_POST" Broke CategoryTree, see code review for the error message. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/71050
* AjaxDispatcher, now ~30 lines shorter and not using $_GET or $_POSTChad Horohoe2010-08-121-1/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/70960
* Remove unnecessary require(). Autoloader already handles thisChad Horohoe2010-08-091-1/+0
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/70772
* Remove extra linebreakChad Horohoe2010-03-211-1/+0
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/64000
* Annual copyright year updateAryeh Gregor2010-01-011-1/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/60548
* Mass convert NULL -> null. Left strings and comments alone, obviously.Chad Horohoe2009-12-111-1/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/59969
* Reverted r58646 as per my comments on bug 20554.Tim Starling2009-12-011-5/+0
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/59613
* API: (bug 20554) Expose average slave lag (avglag) as well as maxlag. Patch ↵Roan Kattouw2009-11-061-0/+5
| | | | | | | by Sam Reed. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/58646
* reverted r55161 - not neededAaron Schulz2009-08-171-19/+14
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/55162
* Fixed html filecache handling of ?curid urlsAaron Schulz2009-08-171-13/+19
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/55161
* Handle todo: Mediawiki::initialize() is now called ↵Chad Horohoe2009-07-311-1/+1
| | | | | | | Mediawiki::performRequestForTitle() Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/54062
* Reverted r50065, restInPeace does this since r49684.Tim Starling2009-05-271-1/+0
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/51046
* Commit master changes on all ajax requests. There's no reason that this ↵Tim Starling2009-04-301-0/+1
| | | | | | | should be the responsibility of the callee. Causes annoying bugs when omitted. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/50065
* * Added "@file" so that doxygen doesn't attribute the comment to the first ↵Alexandre Emsenhuber2009-03-201-2/+4
| | | | | | | | | instruction * whitespaces fixes Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/48631
* Increment yearsAryeh Gregor2009-01-081-1/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/45539
* Fix doc comment, sighAaron Schulz2008-12-281-2/+2
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/45129
* FileCache - Leave raw page cache control alone to avoid hitsAaron Schulz2008-12-281-1/+3
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/45128
* FileCache tweaks:Aaron Schulz2008-12-281-4/+3
| | | | | | | | | | | * 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() Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/45126
* Opps, forgot to commit thisAaron Schulz2008-12-281-1/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/45125
* * Move filecache hits to faster lower level index.php codeAaron Schulz2008-12-271-2/+24
| | | | | | | * Disable outputpage after file cache hit, since output was streamed already. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/45068
* Revert r44801 "Tweaks from profiling"Brion Vibber2008-12-231-1/+1
| | | | | | | | 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. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/44963
* Tweaks from profilingAaron Schulz2008-12-191-1/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/44801
* Whitespace/style consistencyAaron Schulz2008-12-091-6/+4
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/44369
* * (bug 12568) configuration script now produce valid XHTMLAlexandre Emsenhuber2008-07-201-1/+2
| | | | | | | * Updated copyright (taken from SpecialVersion.php) Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/37870
* tweaks:Alexandre Emsenhuber2008-04-291-2/+2
| | | | | | | | * 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. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/34021
* * Introduced LBFactory -- an abstract class for configuring database load ↵Tim Starling2008-03-301-3/+3
| | | | | | | | | | | | | | | | | | | 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 Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/32578
* Drop some useless parameters to silly methods on the pretty much broken ↵Brion Vibber2008-03-261-1/+1
| | | | | | | | | | 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. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/32477
* * Document Exception.phpAlexandre Emsenhuber2008-03-211-1/+1
| | | | | | | * 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. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/32291
* Rewrite a bit the MediaWiki class:Alexandre Emsenhuber2008-03-191-11/+13
| | | | | | | | | | | * 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 Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/32185
* Whitespace tweakAaron Schulz2008-02-191-1/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/31098
* * Use full path (for example for apc.filters)Niklas Laxström2008-02-091-2/+3
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/30751
* Update some copyright dates to 2008Victor Vasiliev2008-02-041-1/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/30502
* Remove ?>'s from files. They're pointless, and just asking for people to ↵Aryeh Gregor2007-06-291-1/+1
| | | | | | | 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.) Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/23531