lhc/web/wiklou.git
13 years agoRevert r84805: broke CentralAuth by removing base UsersPager class used in other...
Brion Vibber [Tue, 12 Apr 2011 17:04:56 +0000 (17:04 +0000)]
Revert r84805: broke CentralAuth by removing base UsersPager class used in other special pages

13 years agoAdd parameter to tableName() to get the bare table name.
Platonides [Tue, 12 Apr 2011 17:00:08 +0000 (17:00 +0000)]
Add parameter to tableName() to get the bare table name.

13 years agoUpdate wording for messages added in r85976.
Siebrand Mazeland [Tue, 12 Apr 2011 16:58:50 +0000 (16:58 +0000)]
Update wording for messages added in r85976.

13 years agoNo need to quote just to avoid the prefixes.
Platonides [Tue, 12 Apr 2011 16:57:44 +0000 (16:57 +0000)]
No need to quote just to avoid the prefixes.

13 years agoFixes to DB2 support. DB2 support integration with 1.17 Installer and Updater. Develo...
Leons Petrazickis [Tue, 12 Apr 2011 16:35:41 +0000 (16:35 +0000)]
Fixes to DB2 support. DB2 support integration with 1.17 Installer and Updater. Developed by Andre, Tiago, Diego, and Cesar as described in wikitech-l message. Reviewed by me.

13 years agoAbstract tableName() by adding new function isQuotedIdentifier() to databases.
Platonides [Tue, 12 Apr 2011 16:34:12 +0000 (16:34 +0000)]
Abstract tableName() by adding new function isQuotedIdentifier() to databases.
This fixes bug in DatabaseOracle.php tableName() on line 671 and allows it to call
the parent implementation instead of copying it with different quotes.
Adapt Mssql addIdentifierQuotes(). Replace its addIdentifierQuotes calls with addQuotes
as it's what it really is. The serialize() is probably unneeded, since I don't think it will
ever be called with objects but I kept it anyway.

13 years agofollow-up to r85876: fix some coding style issues (some of which were not introduced...
Jack Phoenix [Tue, 12 Apr 2011 15:46:00 +0000 (15:46 +0000)]
follow-up to r85876: fix some coding style issues (some of which were not introduced in r85876) + tweak docs (we don't usually mark author(s)/copyright holder(s) on individual functions, only on whole files)

13 years agoMade install.php fail gracefully on PHP4
Max Semenik [Tue, 12 Apr 2011 15:37:51 +0000 (15:37 +0000)]
Made install.php fail gracefully on PHP4

13 years agoAdd new message of r85876 to messge maintenance list.
Purodha B Blissenbach [Tue, 12 Apr 2011 13:01:14 +0000 (13:01 +0000)]
Add new message of r85876 to messge maintenance list.

13 years ago(bug 13879) Special:Emailuser now asks for suitable target user if called without.
Purodha B Blissenbach [Tue, 12 Apr 2011 12:49:56 +0000 (12:49 +0000)]
(bug 13879) Special:Emailuser now asks for suitable target user if called without.

13 years agoClean up some direct $db->query($sql) calls. Remove limit/offset parameters from...
Happy-melon [Tue, 12 Apr 2011 12:09:11 +0000 (12:09 +0000)]
Clean up some direct $db->query($sql) calls.  Remove limit/offset parameters from Article::getContributors() as they weren't being used anywhere and probably didn't work properly anyway.

13 years agoAdd new message key from r85844 to maintenance file
Raimond Spekking [Tue, 12 Apr 2011 12:05:21 +0000 (12:05 +0000)]
Add new message key from r85844 to maintenance file

13 years agoIn SQLBagOStuff: make it possible to change the purge period, or disable purging...
Tim Starling [Tue, 12 Apr 2011 03:59:47 +0000 (03:59 +0000)]
In SQLBagOStuff: make it possible to change the purge period, or disable purging altogether. At Domas's suggestion, for deployment to Wikimedia very soon.

13 years agoFix for bug 28450: escaped CSS comments
Tim Starling [Tue, 12 Apr 2011 02:10:16 +0000 (02:10 +0000)]
Fix for bug 28450: escaped CSS comments

13 years agofollow up to r85847 - tokipona projects are long dead and gone
Ryan Kaldari [Tue, 12 Apr 2011 01:33:57 +0000 (01:33 +0000)]
follow up to r85847 - tokipona projects are long dead and gone

13 years agofollow up to r85847 - tokipona projects long dead and gone
Ryan Kaldari [Tue, 12 Apr 2011 01:27:10 +0000 (01:27 +0000)]
follow up to r85847 - tokipona projects long dead and gone

13 years agoCheck all MSIE requests since we also want to protect IE 3-5 etc.
Tim Starling [Tue, 12 Apr 2011 01:26:17 +0000 (01:26 +0000)]
Check all MSIE requests since we also want to protect IE 3-5 etc.

13 years agotokipona projects are long dead and gone, no need for abbreviated (incorrect) languag...
Ryan Kaldari [Tue, 12 Apr 2011 01:22:25 +0000 (01:22 +0000)]
tokipona projects are long dead and gone, no need for abbreviated (incorrect) language code any more

13 years agoFix for bug 28235: IE6 looks for the file extension in the query string
Tim Starling [Tue, 12 Apr 2011 00:55:10 +0000 (00:55 +0000)]
Fix for bug 28235: IE6 looks for the file extension in the query string

13 years agoWhitespace, braces, documentation
Sam Reed [Tue, 12 Apr 2011 00:16:04 +0000 (00:16 +0000)]
Whitespace, braces, documentation

13 years agoSpaces, braces and trailing whitespace
Sam Reed [Mon, 11 Apr 2011 20:43:04 +0000 (20:43 +0000)]
Spaces, braces and trailing whitespace

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Mon, 11 Apr 2011 19:18:59 +0000 (19:18 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-04-11 18:35:00 UTC)

13 years agoRevert r85785
Sam Reed [Mon, 11 Apr 2011 18:46:35 +0000 (18:46 +0000)]
Revert r85785

13 years agoRevert r85799
Sam Reed [Mon, 11 Apr 2011 18:37:29 +0000 (18:37 +0000)]
Revert r85799

13 years agoRevert r85783, it seems to brake random stuff in random places #fail
Sam Reed [Mon, 11 Apr 2011 18:29:18 +0000 (18:29 +0000)]
Revert r85783, it seems to brake random stuff in random places #fail

13 years agoAdd MWInit to AutoLoader, see if we unbreak doxygen
Sam Reed [Mon, 11 Apr 2011 17:37:09 +0000 (17:37 +0000)]
Add MWInit to AutoLoader, see if we unbreak doxygen

13 years agoBug 28478: database error in DatabaseSqlite::getFulltextSearchModule().
Max Semenik [Mon, 11 Apr 2011 17:16:41 +0000 (17:16 +0000)]
Bug 28478: database error in DatabaseSqlite::getFulltextSearchModule().

It was caused by a weird bug in SQLite: virtual table using a non-existent module still gets created somehow, and it is completely undeletable.

13 years agoNo need to call wfSuppressWarnings() and wfRestoreWarnings(); wfDl() already does...
Alexandre Emsenhuber [Mon, 11 Apr 2011 16:52:51 +0000 (16:52 +0000)]
No need to call wfSuppressWarnings() and wfRestoreWarnings(); wfDl() already does this

13 years agoFix some Notices:
Paul Copperman [Mon, 11 Apr 2011 16:49:36 +0000 (16:49 +0000)]
Fix some Notices:
* LanguageKaa.php: Fix ucfirst and lcfirst for empty strings.
* SkinTemplate.php: Fix undefined array access.
* ProxyTools.php: When running hiphop in cli mode, apache_request_headers() returns null. Fix wfGetForwardedFor() to account for that.

13 years agocommons.wikimedia: (SQL Query hidden) from within function "LinksUpdate::incrTableUpd...
Sam Reed [Mon, 11 Apr 2011 16:42:23 +0000 (16:42 +0000)]
commons.wikimedia: (SQL Query hidden) from within function "LinksUpdate::incrTableUpdate". Database returned error "1205: Lock wait timeout exceeded; try restarting transaction (10.0.6.41)".

Per Krinkle on IRC

13 years agoFollow-Up r85618:
Paul Copperman [Mon, 11 Apr 2011 16:41:23 +0000 (16:41 +0000)]
Follow-Up r85618:
* UploadFromUrlTest.php: Remove another instance of stray ini_set statements.
* Makefile: Also exclude group Stub from tests when running 'make noparser' etc.

13 years agoRemove unused globals
Sam Reed [Mon, 11 Apr 2011 13:53:57 +0000 (13:53 +0000)]
Remove unused globals

13 years ago* fix as per brion's comment on r85669
Jure Kajzer [Mon, 11 Apr 2011 13:50:21 +0000 (13:50 +0000)]
* fix as per brion's comment on r85669

13 years ago* (bug 13921) deadlocks mass-deleting media files in categories
Sam Reed [Mon, 11 Apr 2011 13:07:55 +0000 (13:07 +0000)]
* (bug 13921) deadlocks mass-deleting media files in categories

13 years ago* (bug 27639) Transaction timeout when trying to OldLocalFile::upgradeRow()
Sam Reed [Mon, 11 Apr 2011 13:02:55 +0000 (13:02 +0000)]
* (bug 27639) Transaction timeout when trying to OldLocalFile::upgradeRow()

13 years ago* (bug 20468) User::invalidateCache throws 1205: Lock wait timeout exceeded
Sam Reed [Mon, 11 Apr 2011 12:56:23 +0000 (12:56 +0000)]
* (bug 20468) User::invalidateCache throws 1205: Lock wait timeout exceeded

13 years agoFollowup r85776, per Aaron, add documentation showing reason why explicit creation...
Sam Reed [Mon, 11 Apr 2011 12:48:59 +0000 (12:48 +0000)]
Followup r85776, per Aaron, add documentation showing reason why explicit creation of a new LB was added

13 years agoCode comments, few braces
Sam Reed [Mon, 11 Apr 2011 12:47:55 +0000 (12:47 +0000)]
Code comments, few braces

13 years ago* (bug 28485) Block::purgeExpired Database returned error "1205: Lock wait timeout...
Sam Reed [Mon, 11 Apr 2011 00:29:42 +0000 (00:29 +0000)]
* (bug 28485) Block::purgeExpired Database returned error "1205: Lock wait timeout exceeded;"

Commit changes per Tims suggestion on the ubg

13 years agofollowup to r85654, move global declarations
Neil Kandalgaonkar [Sun, 10 Apr 2011 22:27:52 +0000 (22:27 +0000)]
followup to r85654, move global declarations

13 years ago* (bug 26873) API: Add 'toponly' filter in usercontribs module
Sam Reed [Sun, 10 Apr 2011 21:52:34 +0000 (21:52 +0000)]
* (bug 26873) API: Add 'toponly' filter in usercontribs module

13 years ago* (bug 28455) Add 'toponly' to recentchanges API module
Sam Reed [Sun, 10 Apr 2011 21:42:20 +0000 (21:42 +0000)]
* (bug 28455) Add 'toponly' to recentchanges API module

13 years ago* (bug 27712) add parent_id to list=deletedrevs
Sam Reed [Sun, 10 Apr 2011 21:11:39 +0000 (21:11 +0000)]
* (bug 27712) add parent_id to list=deletedrevs

13 years agoFollow up r85566. Add the helper classes to test autoloader.
Platonides [Sun, 10 Apr 2011 16:42:29 +0000 (16:42 +0000)]
Follow up r85566. Add the helper classes to test autoloader.

13 years agoRemove double ; from r84971
Platonides [Sun, 10 Apr 2011 15:54:11 +0000 (15:54 +0000)]
Remove double ; from r84971
Make explicit that the previous values of $wgAutoloadClasses are not preserved and make happy the 'unused global' detector.

13 years agodl() -> wfDl()
Alexandre Emsenhuber [Sun, 10 Apr 2011 14:21:37 +0000 (14:21 +0000)]
dl() -> wfDl()

13 years ago* (bug 28254) action=paraminfo: Extract type from PARAM_DFLT if PARAM_TYPE is not set
Sam Reed [Sun, 10 Apr 2011 13:01:47 +0000 (13:01 +0000)]
* (bug 28254) action=paraminfo: Extract type from PARAM_DFLT if PARAM_TYPE is not set

Patch by Umherirrender

13 years ago* (bug 28364) add registration date to meta=userinfo
Sam Reed [Sun, 10 Apr 2011 12:27:32 +0000 (12:27 +0000)]
* (bug 28364) add registration date to meta=userinfo

13 years ago* (bug 28368) add hint for multipart/form-data to api information of action=import...
Sam Reed [Sun, 10 Apr 2011 12:15:03 +0000 (12:15 +0000)]
* (bug 28368) add hint for multipart/form-data to api information of action=import&xml=

Add RELEASE-NOTES for r85585 too

13 years agoSQLite is picky about the position of AUTOINCREMENT in field definition, handle it...
Max Semenik [Sun, 10 Apr 2011 08:44:06 +0000 (08:44 +0000)]
SQLite is picky about the position of AUTOINCREMENT in field definition, handle it when converting from MySQL syntax

13 years agoQuick fix to categoriesHtml() given new skin changes
Aaron Schulz [Sun, 10 Apr 2011 06:46:02 +0000 (06:46 +0000)]
Quick fix to categoriesHtml() given new skin changes

13 years ago* Removed some of the duplicated latest revision attribute fields (using mLastRevisio...
Aaron Schulz [Sun, 10 Apr 2011 06:32:50 +0000 (06:32 +0000)]
* Removed some of the duplicated latest revision attribute fields (using mLastRevision instead)
* Added access level (raw/public/user) options to user, text, and comment accessors for latest revision
* Fixed minor related FIXME in FlaggedArticleView

13 years agoMade revText() give deprecated notice
Aaron Schulz [Sun, 10 Apr 2011 06:07:34 +0000 (06:07 +0000)]
Made revText() give deprecated notice

13 years agoFollowup to r85706 and friends: now that Math messages have been moved to extension...
Brion Vibber [Sat, 9 Apr 2011 19:57:35 +0000 (19:57 +0000)]
Followup to r85706 and friends: now that Math messages have been moved to extension, move out the settings list and constants.

* MW_MATH_* constants are now defined in Math extension
* Language::getMathNames() is removed
* mathNames section in message files is removed
* A hardcoded preference override in refreshLinks moved to MaintenanceRefreshLinksInit hook

13 years agoFollow-up r85724: update messages.inc and rebuild all language files.
Siebrand Mazeland [Sat, 9 Apr 2011 17:21:31 +0000 (17:21 +0000)]
Follow-up r85724: update messages.inc and rebuild all language files.

13 years ago...and remove the math-related messages from MessagesEn.php; follow-up to r85723
Jack Phoenix [Sat, 9 Apr 2011 15:18:15 +0000 (15:18 +0000)]
...and remove the math-related messages from MessagesEn.php; follow-up to r85723

13 years agoRevert r85644. Multipart sucks because it is hard to parse and because you need to...
Bryan Tong Minh [Sat, 9 Apr 2011 14:43:12 +0000 (14:43 +0000)]
Revert r85644. Multipart sucks because it is hard to parse and because you need to seek into the stream. I'll follow up with a solution that allows embeding data in the stream.

13 years agoInitial stab at breaking math/texvc out to Math extension.
Brion Vibber [Sat, 9 Apr 2011 00:39:40 +0000 (00:39 +0000)]
Initial stab at breaking math/texvc out to Math extension.

* (bug 14202) $wgUseTeX has been superseded by the Math extension. To re-enable
  math conversion after upgrading, obtain the Math extension from SVN or from
  http://www.mediawiki.org/wiki/Extension:Math and add to LocalSettings.php:
  require_once "$IP/extensions/Math/Math.php";

This is an initial stab, and a few things remain to be cleaned up:
* messages need to be moved from core to extension
* MW_MATH_* constants should be moved to the extension from core
* old back-compat math names interfaces using those constants should be removed from message files
* classic edit toolbar's math button should be added from the extension (or else dropped) -- currently there's not a clean hook, but could do it by JS
* couple of things like the 'armourMath' function on Language & LanguageConverter may want to be redone just as an unconditional, if that's simpler.

Setting $wgUseTeX alone will no longer have any affect. The var's still there for the moment as a few bits still need to be fully moved out from core.

13 years agoCleaning up my w/c again. Add documentation
Sam Reed [Fri, 8 Apr 2011 23:53:59 +0000 (23:53 +0000)]
Cleaning up my w/c again. Add documentation

13 years agoQuick fix for bug 15892: intermittent SQL-based cache failures during parser test...
Brion Vibber [Fri, 8 Apr 2011 23:06:56 +0000 (23:06 +0000)]
Quick fix for bug 15892: intermittent SQL-based cache failures during parser test runs.

13 years agoMFB (or MTT?) 1.17wmf1 r85698, r85700
Sam Reed [Fri, 8 Apr 2011 22:07:19 +0000 (22:07 +0000)]
MFB (or MTT?) 1.17wmf1 r85698, r85700

13 years agoMove api RELEASE-NOTES to api section
Sam Reed [Fri, 8 Apr 2011 21:59:47 +0000 (21:59 +0000)]
Move api RELEASE-NOTES to api section

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Fri, 8 Apr 2011 19:53:47 +0000 (19:53 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-04-08 19:35:00 UTC)

13 years agoFollowup to r85464, correct parser test
OverlordQ [Fri, 8 Apr 2011 16:17:54 +0000 (16:17 +0000)]
Followup to r85464, correct parser test

13 years ago* r81084 added prefix to index name and as this index gets synced directly it has...
Jure Kajzer [Fri, 8 Apr 2011 12:45:19 +0000 (12:45 +0000)]
* r81084 added prefix to index name and as this index gets synced directly it has to use the same prefix

13 years agoNo need to force inclusion of Namespace.php since r85327
Alexandre Emsenhuber [Fri, 8 Apr 2011 07:19:26 +0000 (07:19 +0000)]
No need to force inclusion of Namespace.php since r85327

13 years agoUse MWNamespace::getCanonicalNamespaces() instead of $wgCanonicalNamespaceNames
Alexandre Emsenhuber [Fri, 8 Apr 2011 07:14:42 +0000 (07:14 +0000)]
Use MWNamespace::getCanonicalNamespaces() instead of $wgCanonicalNamespaceNames

13 years agoDont allow $procs to be 0
Chad Horohoe [Fri, 8 Apr 2011 05:50:05 +0000 (05:50 +0000)]
Dont allow $procs to be 0

13 years agoAdd quick sanity check before before trying to use the $outDir
Chad Horohoe [Fri, 8 Apr 2011 05:28:44 +0000 (05:28 +0000)]
Add quick sanity check before before trying to use the $outDir

13 years agoalso generate random SVG files
Neil Kandalgaonkar [Thu, 7 Apr 2011 23:32:36 +0000 (23:32 +0000)]
also generate random SVG files

13 years agoSecond part of bug bug 22881: Allow exporting files along with the XML as mimepart...
Bryan Tong Minh [Thu, 7 Apr 2011 21:44:44 +0000 (21:44 +0000)]
Second part of bug bug 22881: Allow exporting files along with the XML as mimepart/related file. The patch attached to that bug was unfortunately not up to coding standards, so I rewrote this part myself.

13 years agoStylize Export.php
Bryan Tong Minh [Thu, 7 Apr 2011 21:04:16 +0000 (21:04 +0000)]
Stylize Export.php

13 years agoFirst part of bug 22881: Allow uploading directly into the archive to support importi...
Bryan Tong Minh [Thu, 7 Apr 2011 20:19:44 +0000 (20:19 +0000)]
First part of bug 22881: Allow uploading directly into the archive to support importing files. Based on a patch by Vitaliy Filippov with some major rewrites by me.
* LocalFile::publish() supports an extra parameter to support publishing into the archive
* Added OldLocalFile::uploadOld(), which is the OldImage equivalent to LocalFile::upload(), but does not override it because it has an entirely different function signature.

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Thu, 7 Apr 2011 20:18:13 +0000 (20:18 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-04-07 19:58:00 UTC)

13 years agoMoved rateLimited() and showLagWarning() near other similar functions
Alexandre Emsenhuber [Thu, 7 Apr 2011 16:04:08 +0000 (16:04 +0000)]
Moved rateLimited() and showLagWarning() near other similar functions

13 years agoVarious fixes for PHPUnit tests:
Paul Copperman [Thu, 7 Apr 2011 14:54:38 +0000 (14:54 +0000)]
Various fixes for PHPUnit tests:

* Block.php: Set mExpiry to the value we store in the database, so that Block::equals() returns true. Fixes BlockTest::testInitializerFunctionsReturnCorrectBlock.
* In Title::checkUserBlock(): Convert message parameters to plain strings to make strict comparisons work. Fixes TitlePermissionTest::testUserBlock().
* ApiBlock.php: Follow-Up r85166, add 'Confirm' parameter to data array. Fixes ApiBlockTest::testMakeNormalBlock().
* ApiQueryTest.php: Use $wgMetaNamespace instead of $wgSitename to account for customizations.
* RandomImageGenerator.php: Use default value for constructor param to prevent fatals.
* ApiTestCaseUpload.php:
** Fix undefined variable $fileName.
** Remove stray ini_set statements, they don't belong there. Especially ini_set( 'error_reporting', 1 ) will effectively disable all reporting, which makes errors hard to track.
* ArticleTablesTest.php: Put testbug14404() in group Broken, as the fix for the bug has been reverted in r83868.

13 years agoFix copypaste fail in r85616
Roan Kattouw [Thu, 7 Apr 2011 13:14:33 +0000 (13:14 +0000)]
Fix copypaste fail in r85616

13 years agoFor bug 27488: move the startup script, jquery+mediawiki and the mw.config.set()...
Roan Kattouw [Thu, 7 Apr 2011 12:07:25 +0000 (12:07 +0000)]
For bug 27488: move the startup script, jquery+mediawiki and the mw.config.set() call for configuration variables back to the <head> . Let modules control whether they're loaded in the <head> ('top') or at the bottom of the <body> ('bottom') through the position parameter/property

Also rearranges the loading order a little bit such that only=messages comes before only=scripts, and config comes before everything except startup and jquery+mediawiki

13 years agojoin() appears to be inadequate for some production errors
Neil Kandalgaonkar [Thu, 7 Apr 2011 08:58:16 +0000 (08:58 +0000)]
join() appears to be inadequate for some production errors

13 years ago* (bug 28368) add hint for multipart/form-data to api information of action=import...
Brion Vibber [Wed, 6 Apr 2011 22:16:38 +0000 (22:16 +0000)]
* (bug 28368) add hint for multipart/form-data to api information of action=import&xml=

13 years agoFollow-up r85302: new MediaWiki() constructor format in phpunit test declaration.
Happy-melon [Wed, 6 Apr 2011 21:59:49 +0000 (21:59 +0000)]
Follow-up r85302: new MediaWiki() constructor format in phpunit test declaration.

13 years ago* (bug 28444) Fix regression: edit-on-doubleclick retains revision id again
Brion Vibber [Wed, 6 Apr 2011 21:58:10 +0000 (21:58 +0000)]
* (bug 28444) Fix regression: edit-on-doubleclick retains revision id again

Regression in 61071 caused by dropping $title->getLocalUrl($skin->getEditUrlOptions())
for the less informational $title->getEditUrl(), thus losing oldid view information.
Switching back nicely resolves it.

13 years agoRevert unintended change to this parserTest in r85481
Platonides [Wed, 6 Apr 2011 21:46:47 +0000 (21:46 +0000)]
Revert unintended change to this parserTest in r85481

13 years agor85553 fixup. When there are variants involved, the line
Platonides [Wed, 6 Apr 2011 21:36:07 +0000 (21:36 +0000)]
r85553 fixup. When there are variants involved, the line
$GLOBALS['wgContLang'] = $context->lang;
is not assigning $wgContLang the same $langObj instantiated a couple of lines above, but a different object obtained from the user code, breaking variant parsertestsw..

13 years ago* (bug 27473) Fix regression: bold, italic no longer interfere with linktrail for...
Brion Vibber [Wed, 6 Apr 2011 21:11:49 +0000 (21:11 +0000)]
* (bug 27473) Fix regression: bold, italic no longer interfere with linktrail for ca, kaa

Patch to ca, kaa linktrails to exclude multiple apostrophes by Platonides: https://bugzilla.wikimedia.org/attachment.cgi?id=8337

Added parser test cases to confirm that the linktrail apostrophe works on those languages, and to confirm that the bug where a link is surrounded by bold or italics is resolved.

Tweaked Linker::splitTrail() to keep it from permanently caching $wgContLang's linktrail; when we change content languages during a script run as we do with parser tests, that was leaving us stuck forever on English's linktrail.
This may slightly slow down that path, since it'll have to make a couple brief function calls into the Language object and its data cache.

13 years agoApply modification of mdale's patch from Bug #28420: “Re-factor upload tests to suppo...
Mark A. Hershberger [Wed, 6 Apr 2011 19:50:54 +0000 (19:50 +0000)]
Apply modification of mdale's patch from Bug #28420: “Re-factor upload tests to support extensions extending upload test case”

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Wed, 6 Apr 2011 19:50:00 +0000 (19:50 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-04-06 19:28:00 UTC)

13 years ago* (bug 28372) Fix bogus link to suppressed file versions in ForeignDBRepo
Brion Vibber [Wed, 6 Apr 2011 18:45:27 +0000 (18:45 +0000)]
* (bug 28372) Fix bogus link to suppressed file versions in ForeignDBRepo

Based on patch by Umherirrender: https://bugzilla.wikimedia.org/attachment.cgi?id=8361&action=edit
If file is not local, we can't make a link so don't.

13 years agoAnd I forgot to commit this file in r85557
Alexandre Emsenhuber [Wed, 6 Apr 2011 18:38:48 +0000 (18:38 +0000)]
And I forgot to commit this file in r85557

13 years ago* Added possibility to set short options aliases to long long options, added -h alias...
Alexandre Emsenhuber [Wed, 6 Apr 2011 18:37:09 +0000 (18:37 +0000)]
* Added possibility to set short options aliases to long long options, added -h alias to --help and -q to --quiet for all scripts
* Converted edit.php, people using short option version (with only one dash) won't have to change anything, but the ones using long options that were only one character (--u, --s, --m, --b and --a) will either need to change to short options or use full name

13 years agoFix regression from r81558: fatal error in ForeignFileRepo thumb fetching when thumb...
Brion Vibber [Wed, 6 Apr 2011 18:27:20 +0000 (18:27 +0000)]
Fix regression from r81558: fatal error in ForeignFileRepo thumb fetching when thumb caching is disabled.

Addition of optional parameters lead to passing default 'null' straight through on a reference parameter, which PHP 5.3 really disapproves of. Sticking in a temp variable resolves this easily.

13 years ago* (bug 28306) Fix exposure of suppressed usernames in ForeignDBRepo
Brion Vibber [Wed, 6 Apr 2011 18:23:07 +0000 (18:23 +0000)]
* (bug 28306) Fix exposure of suppressed usernames in ForeignDBRepo

Patch by Umherirrender: https://bugzilla.wikimedia.org/attachment.cgi?id=8360&action=diff

13 years agoFollow-up r85403: fix fatal in parser tests.
Happy-melon [Wed, 6 Apr 2011 17:39:18 +0000 (17:39 +0000)]
Follow-up r85403: fix fatal in parser tests.

13 years agoMade Special:ListFiles transcludable
Max Semenik [Wed, 6 Apr 2011 16:45:46 +0000 (16:45 +0000)]
Made Special:ListFiles transcludable

13 years agonotes for r85546
Krinkle [Wed, 6 Apr 2011 16:34:03 +0000 (16:34 +0000)]
notes for r85546

13 years agoRemove color:black from table {} in skins (bug 28422) + small fixes
Krinkle [Wed, 6 Apr 2011 16:31:46 +0000 (16:31 +0000)]
Remove color:black from table {} in skins (bug 28422) + small fixes
* Remove color:black from table {} in skins (bug 28422)
* Add color:black to .wikitable (since it has a background-color)
* Update comment about CSS3 'word-wrap:break-word' support in Gecko
* Remove line-break in mediawiki.js (it's ~ 90 chars, acceptable)

13 years agoMerge from 1.17wmf1: r84259
Chad Horohoe [Wed, 6 Apr 2011 13:50:45 +0000 (13:50 +0000)]
Merge from 1.17wmf1: r84259

13 years agoPatch from Bug #28406:
Mark A. Hershberger [Wed, 6 Apr 2011 00:56:22 +0000 (00:56 +0000)]
Patch from Bug #28406:
    # the digitClass join versions were inverted: for a maxLength > 1 it should be
      (|||), not []
    # the regexp escape for digits in the ts_number_transform_table was a bit, er,
      strange. Although it worked, I think my version is more common.
    # most important: As recommended in http://en.wikipedia.org/wiki/Percent_sign,
      there may be some whitespaces between the number and the
      "%". See also Bug #15422 for that, I'm not sure wheter it's
      included there.

I didn't include the “non-breaking space is part of \s” bit since I didn't want to mess up browser bug work-arounds

13 years agoFollow up r85467: changed some countRevisionsBetween/countAuthorsBetween callers...
Aaron Schulz [Tue, 5 Apr 2011 23:28:39 +0000 (23:28 +0000)]
Follow up r85467: changed some countRevisionsBetween/countAuthorsBetween callers to pass in objects, which avoids queries

13 years agoRevert r68358. Causes bug 27474.
Platonides [Tue, 5 Apr 2011 22:38:37 +0000 (22:38 +0000)]
Revert r68358. Causes bug 27474.
Added parser test. Added another parser test for what it seems to try to account for
but that in fact doesn't change when trying to achieve, since ids don't seem to be
affected when flipping $wgHtml5 and $wgExperimentalHtmlIds (so r68358 seems useless).