Commit graph

35340 commits

Author SHA1 Message Date
Sam Reed
e8e63594de Make a method static per the comment, update the only non static usage (in Parser) itself 2011-05-01 23:59:41 +00:00
Sam Reed
018a22d827 Documentation tweaks, additions and updates 2011-05-01 23:54:41 +00:00
Platonides
fe7ee51f3c Follow up r87210 2011-05-01 23:02:27 +00:00
Sam Reed
6f9897cffe * (bug 28265) allow outputting of comments for action=expandtemplates 2011-05-01 22:11:05 +00:00
Sam Reed
c8079f0b81 * (bug 27185) API: Add Special:ComparePages 2011-05-01 21:56:02 +00:00
Chad Horohoe
cdb32fe37b When we failed to detect a DB driver, put the help info in the failure box, rather than hiding it in a little help box nobody's going to find 2011-05-01 21:48:15 +00:00
Platonides
e5a26f3460 Convert r86795 tests into a dataProvider 2011-05-01 21:33:16 +00:00
Sam Reed
f8fb526ea6 Refactor out common code 2011-05-01 21:28:00 +00:00
Max Semenik
2f3a13e3a4 Use HTML5 for formatted API output 2011-05-01 21:19:40 +00:00
Chad Horohoe
9502fbb44d (bug 28343) Kill unused contextlines/contextchars 2011-05-01 21:14:32 +00:00
Raimond Spekking
2c0452aa20 Localisation updates for core and extension messages from translatewiki.net (2011-05-01 20:01:00 UTC) 2011-05-01 20:17:55 +00:00
Krinkle
351ad488fd Added wgIsMainPage (Title->isMainPage) to mw.config
* Instead of ugly javascript construction to compare href-attributes or re-constructing proper pagenames, let's use Title->isMainPage which does this much better
* Kept function for compatibility. mw.util.isMainPage() was never released, should probably be removed before 1.18 branch point.
2011-05-01 19:46:09 +00:00
Platonides
10cd6f1b6a Fix the old XmlTest.php test bug in the dateMenu() when the wiki is configured for a languange other than English
Other tests were running before and messing with the Language objects.
2011-05-01 19:32:49 +00:00
Platonides
f10c7a0b93 Cosmetic change 2011-05-01 19:31:18 +00:00
Krinkle
970a7ac8a8 (bug 27916) Don't prefix wgServer in mw.util.wikiGetlink
The check is not needed, if wgArticlePath is undefined there's probably a much bigger issue.

The wgServer doesn't need to be prefixed to the link (if someone really needs it (ie. external tools using the script and somehow defining wgServer in mw.config) they can surely prefix wgServer themselfs.

In most if not all cases this is used to create anchor tags, which are interprated by browsers relatively to the current window location and in some browsers it even auto-prefixes the current environment when setting the href/src attribute.

I did a grep search for "wikiGetlink" in /trunk (including ./extensions), there was one usage that assumed the wgServer prefix. Turned out that was actually a workaround untill this bug was fixed. I remove that workaround ( in mw.util.isMainPage).
2011-05-01 19:20:31 +00:00
Roan Kattouw
f56afa36a6 (bug 28738) Implement request splitting in mw.loader so ResourceLoader requests with query strings longer than a certain value are split up. The maximum query string length is configurable, and this behavior is disabled by default. It's needed in rare cases where there is a query string length or GET variable length limit in place that the wiki admin can't raise. 2011-05-01 18:41:42 +00:00
Sam Reed
0b96c67a9e Remove unneeded manual quoting from r87180 2011-05-01 11:20:14 +00:00
Sam Reed
5283490bdd * (bug 28225) Allow hiding of user groups in list=allusers
Yay, a LEFT OUTER JOIN
2011-05-01 00:24:39 +00:00
Sam Reed
c3b1500161 $db is already defined, don't use $this->getDB() again 2011-05-01 00:17:39 +00:00
Sam Reed
ab28af877c Followup r85884
Fixup the APIs strange way of doing table aliases on a join....

Only used in very few places
2011-04-30 23:18:34 +00:00
Bryan Tong Minh
128b544632 Fix bug in Status::getItemXML 2011-04-30 22:12:51 +00:00
Bryan Tong Minh
99385c945d Add --include-files option to dumpBackup.php to include the uploaded files in the XML stream. Uses new backend features from r85911. 2011-04-30 21:35:09 +00:00
Raimond Spekking
d79681edd9 Localisation updates for core and extension messages from translatewiki.net (2011-04-30 20:50:00 UTC) 2011-04-30 21:21:47 +00:00
Leo Koppelkamm
82e24a9c51 Bug 27047: Nicer design for pre elements in Vector 2011-04-30 19:49:57 +00:00
Bryan Tong Minh
ceb435837c (bug 28076) Thumbnail height limited to 360 pixels on Special:Listfiles 2011-04-30 18:50:37 +00:00
Sam Reed
6d7f0c510d Followup r87150
Reuse SpecialVersions arrayToString (made it explicitly public!) in an array_amp for the formatting of arrays/objects (Yay for all the different ways we accept things ;P)
2011-04-30 16:52:28 +00:00
Sam Reed
272a146f46 Followup r87147, let the formatters do teh escaping 2011-04-30 16:38:59 +00:00
Alexandre Emsenhuber
6c439f8d34 Per Siebrand: fix typo in RELEASE-NOTES 2011-04-30 15:50:05 +00:00
Alexandre Emsenhuber
b345db080f I have no idea where that count() pass in r87165 2011-04-30 15:14:12 +00:00
Alexandre Emsenhuber
1679309cb5 Properly escape the ouput in action=credits (and in page footer), using wfMessage() to be able to replace some parameters before and some after 2011-04-30 15:12:33 +00:00
Alexandre Emsenhuber
ca7bcb1fac Recommit r87129 and follow-ups but with a fix for the bug Brion found (sorry) 2011-04-30 14:08:12 +00:00
Daniel Friesen
8ae8bd5a98 Use a reversed magnify image for framed image thumbnails when on a RTL wiki. 2011-04-30 12:04:00 +00:00
Brion Vibber
85d99c4c52 Revert r87129 "(bug 21196) Article::getContributors() no longer fail on PostgreSQL" -- breaks stuff under MySQL like this:
SkinTemplate::makeTalkUrlDetails given invalid pagename User:

Backtrace:

#0 /var/www/trunk/includes/SkinTemplate.php(691): SkinTemplate->makeTalkUrlDetails('User:')
#1 /var/www/trunk/includes/SkinTemplate.php(495): SkinTemplate->buildPersonalUrls(Object(OutputPage))
#2 /var/www/trunk/includes/OutputPage.php(1906): SkinTemplate->outputPage(Object(OutputPage))
#3 /var/www/trunk/includes/Wiki.php(402): OutputPage->output()
#4 /var/www/trunk/index.php(146): MediaWiki->finalCleanup()
#5 {main}


Seen trivially by going to login page while not logged in; some user check is failing and ending up with an improperly initialized object.
2011-04-29 23:57:28 +00:00
Sam Reed
ef6afb5d9e Tweak documentation
Add braces
2011-04-29 23:34:37 +00:00
Sam Reed
dc0d483992 * Get a list of all subscribed hooks, and those subscribers
Essentially what SpecialVersion will give you if wgSpecialVersionShowHooks is true
2011-04-29 23:33:38 +00:00
Sam Reed
8c30f284a7 * (bug 27179) API: List of extension tags
* Get a list of function hooks through meta=siteinfo
2011-04-29 23:02:10 +00:00
Chad Horohoe
8ae2840afb Make this private since nothing outside here calls it 2011-04-29 22:40:31 +00:00
Chad Horohoe
2323830a03 (bug 28752) XCache doesn't work in CLI mode 2011-04-29 22:40:12 +00:00
OverlordQ
676e772a4f Fix group by for Special:MostLinkedTemplates 2011-04-29 22:38:30 +00:00
OverlordQ
245e6b067a Followup to r85907, correctly quote table names.
Followup to r87129, add handling of arrayed GROUP BY/ORDER BY options to match core class so that this will indeed work.
2011-04-29 22:27:34 +00:00
Chad Horohoe
474282e508 Add cdb.php for inspecting cdb cache files. Format is stolen from mcc.php 2011-04-29 22:08:58 +00:00
Jeroen De Dauw
f266b1ca15 small doc fix 2011-04-29 22:05:36 +00:00
Sam Reed
4d18298e86 Followup r87132, per Bryan, still return the "limit" to be the current users limit, but return high/low limit 2011-04-29 21:46:17 +00:00
Jeroen De Dauw
0b54ec0e80 added since tag for people that care about compat 2011-04-29 21:29:20 +00:00
Sam Reed
32f8443064 * (bug 28238) paraminfo: output both limits for multi param 2011-04-29 20:52:57 +00:00
Raimond Spekking
1e4ba66bf2 Localisation updates for core and extension messages from translatewiki.net (2011-04-29 19:47:00 UTC) 2011-04-29 20:09:54 +00:00
Alexandre Emsenhuber
4fdddc9292 * (bug 21196) Article::getContributors() no longer fail on PostgreSQL
Changed User::loadFromRow() to allow partial row (user_id, user_name, user_real_name can be set independently from other fields) userand removed User::$mDataLoaded, replaced by User::$mLoadedItems (marked as private) that can be an array with already loaded items or true when all data has been loaded. Changed GlobalFunctions.php and Database.php accordingly, no use of User::$mDataLoaded in extensions.
2011-04-29 18:27:44 +00:00
Sam Reed
c720f313a8 Followup r86800, add missing () 2011-04-29 17:51:50 +00:00
Platonides
f80b75a6aa The $wgLocalisationCacheConf was being overwritten by the default value.
Restores the ability to run databaseless tests broken by r86775
2011-04-29 16:26:20 +00:00
Jeroen De Dauw
22cd74d272 fix return type descriptions 2011-04-29 15:41:57 +00:00