lhc/web/wiklou.git
12 years agoFixing plural. Would "file, which" be clearer?
Niklas Laxström [Fri, 13 Jan 2012 16:56:48 +0000 (16:56 +0000)]
Fixing plural. Would "file, which" be clearer?

12 years agoAdd 'api-error-emptypage'.
Siebrand Mazeland [Fri, 13 Jan 2012 14:47:27 +0000 (14:47 +0000)]
Add 'api-error-emptypage'.

12 years agoFix for r108376: the whole string is already espcaed on output, no need to escape...
Alexandre Emsenhuber [Fri, 13 Jan 2012 13:30:58 +0000 (13:30 +0000)]
Fix for r108376: the whole string is already espcaed on output, no need to escape it twice

12 years agoPer Aaron, fix for r107776: correct count() check
Alexandre Emsenhuber [Fri, 13 Jan 2012 13:28:58 +0000 (13:28 +0000)]
Per Aaron, fix for r107776: correct count() check

12 years agor88633: lazy-load 'customFilters' field in SpecialRecentChanges. Almost every functio...
Aaron Schulz [Fri, 13 Jan 2012 09:14:56 +0000 (09:14 +0000)]
r88633: lazy-load 'customFilters' field in SpecialRecentChanges. Almost every function is public here so there no control of the order stuff happens.

12 years agoFix broken indentation
Niklas Laxström [Fri, 13 Jan 2012 08:41:33 +0000 (08:41 +0000)]
Fix broken indentation

12 years ago* Distinguish "does not exist" from failure in FSFileBackend::doGetFileStat().
Aaron Schulz [Fri, 13 Jan 2012 04:32:28 +0000 (04:32 +0000)]
* Distinguish "does not exist" from failure in FSFileBackend::doGetFileStat().
* Added clearstatcache() to doConcatenate() to make it safe for callers to stat the file.
* A few minor comment tweaks.

12 years agoPartial revert ContextSource changes from r108785, r108786
Sam Reed [Fri, 13 Jan 2012 02:40:09 +0000 (02:40 +0000)]
Partial revert ContextSource changes from r108785, r108786

12 years agoPush msg from ContextSource/RequestContext into IContextSource
Sam Reed [Fri, 13 Jan 2012 02:37:04 +0000 (02:37 +0000)]
Push msg from ContextSource/RequestContext into IContextSource

12 years agoA couple more for r108785
Sam Reed [Fri, 13 Jan 2012 02:30:51 +0000 (02:30 +0000)]
A couple more for r108785

More doucmentations

12 years agoDocumentation
Sam Reed [Fri, 13 Jan 2012 02:27:44 +0000 (02:27 +0000)]
Documentation

As we're using stuff from ContextSource everwhere, limiting stuff to a type hint of IContextSource isn't much use

12 years agoFollowup to r108744
OverlordQ [Thu, 12 Jan 2012 23:22:09 +0000 (23:22 +0000)]
Followup to r108744

12 years agoMaintenance class-ify eval.php
Sam Reed [Thu, 12 Jan 2012 23:10:22 +0000 (23:10 +0000)]
Maintenance class-ify eval.php

12 years agoGive sql.php eval.php type scrollback
Sam Reed [Thu, 12 Jan 2012 22:57:51 +0000 (22:57 +0000)]
Give sql.php eval.php type scrollback

12 years agoFollowup r108768, callign the right callback helps too
Sam Reed [Thu, 12 Jan 2012 22:35:48 +0000 (22:35 +0000)]
Followup r108768, callign the right callback helps too

12 years agoRevert r108764: doesn't appear to do what it says in the description, and no explanat...
Brion Vibber [Thu, 12 Jan 2012 22:17:54 +0000 (22:17 +0000)]
Revert r108764: doesn't appear to do what it says in the description, and no explanation why it's being done (presumably would just break searches again?)

12 years agoFix typo in SpecialVersion
Sam Reed [Thu, 12 Jan 2012 22:14:56 +0000 (22:14 +0000)]
Fix typo in SpecialVersion

Change require to require_once in commandLine.inc

Make eval.php require an absolute path rather than just one in itself

Simplify if statement

12 years agoFollowup to r107866, add in new job_timestamp field which was likely completely break...
OverlordQ [Thu, 12 Jan 2012 22:11:12 +0000 (22:11 +0000)]
Followup to r107866, add in new job_timestamp field which was likely completely breaking anything related to the job queue, should fix failing TemplateCategoriesTest.testTemplateCategories on PG

12 years agoAdd $inputCsllback to sourceStream(), to return full lines back to the calling function
Sam Reed [Thu, 12 Jan 2012 22:10:24 +0000 (22:10 +0000)]
Add $inputCsllback to sourceStream(), to return full lines back to the calling function

Will be used soooon

12 years ago* Collapse multiple directory separators in FileBackend::normalizeStoragePath()....
Aaron Schulz [Thu, 12 Jan 2012 22:01:02 +0000 (22:01 +0000)]
* Collapse multiple directory separators in FileBackend::normalizeStoragePath(). Also renamed the function to normalizeContainerPath() to be less confusing.
* Made SwiftFileBackend respect the 'latest' parameter of various functions via "X-Newest: true" header. Added to TODO in the doGetFileStat() function, as cloudfiles needs upstream changes for that.
* Fixed SwiftFileIterator to return paths relative to the given directory.
* Clean up for FSFileBackend trailing slash handling.

12 years agoThis commit restores getPrefixedText() to the Title in the XML. This means it does...
Diederik van Liere [Thu, 12 Jan 2012 21:34:55 +0000 (21:34 +0000)]
This commit restores  getPrefixedText() to the Title in the XML. This means it does not break anything, the only change is that there is a new separate element that contains the namespace.

This commit is a follow up to:
r102575: Commit to fix bug 30513.

12 years agoLocalisation updates for core and extension messages from translatewiki.net
Raimond Spekking [Thu, 12 Jan 2012 21:22:22 +0000 (21:22 +0000)]
Localisation updates for core and extension messages from translatewiki.net

12 years agoFU r106752: updated populateImageSha1.php script as needed
Aaron Schulz [Thu, 12 Jan 2012 20:50:14 +0000 (20:50 +0000)]
FU r106752: updated populateImageSha1.php script as needed

12 years ago* Added backend name to 'backend-fail-internal' message
Aaron Schulz [Thu, 12 Jan 2012 20:05:25 +0000 (20:05 +0000)]
* Added backend name to 'backend-fail-internal' message
* Removed TODO comment in SwiftFileBackend

12 years ago* Merged (added) SwiftFileBackend class from branch.
Aaron Schulz [Thu, 12 Jan 2012 20:01:54 +0000 (20:01 +0000)]
* Merged (added) SwiftFileBackend class from branch.
* Added i18n messages used by the new class.

12 years agoReverted r108743 per CR comment. This should at least be discussed first.
Aaron Schulz [Thu, 12 Jan 2012 19:41:18 +0000 (19:41 +0000)]
Reverted r108743 per CR comment. This should at least be discussed first.

12 years ago* Fixed a bit of bogus code left in r108740
Aaron Schulz [Thu, 12 Jan 2012 19:20:58 +0000 (19:20 +0000)]
* Fixed a bit of bogus code left in r108740
* Added some class comments

12 years agoKill "* @return void"
Sam Reed [Thu, 12 Jan 2012 19:12:24 +0000 (19:12 +0000)]
Kill "* @return void"

12 years agoUnindent code to use elseif
Sam Reed [Thu, 12 Jan 2012 19:04:06 +0000 (19:04 +0000)]
Unindent code to use elseif

12 years agoDocumentation
Sam Reed [Thu, 12 Jan 2012 19:03:32 +0000 (19:03 +0000)]
Documentation

Wrap some long lines

12 years ago* Added 'basePath' config param to FSFileBackend and tweaked it to behave more simila...
Aaron Schulz [Thu, 12 Jan 2012 18:44:00 +0000 (18:44 +0000)]
* Added 'basePath' config param to FSFileBackend and tweaked it to behave more similarly to the backends with real containers (e.g. everything else). Resolution to absolute paths is now deferred after resolveStoragePath(), using resolveToFSPath().
* Fixed whitespace in FSFileIterator.

12 years agoConsistency: made all API examples a verbs
Max Semenik [Thu, 12 Jan 2012 17:36:06 +0000 (17:36 +0000)]
Consistency: made all API examples a verbs

12 years agoFollowup to whatever revision added us_chunk_inx
OverlordQ [Thu, 12 Jan 2012 17:10:48 +0000 (17:10 +0000)]
Followup to whatever revision added us_chunk_inx

12 years agoswap assertEquals parameters in TemplateCategoriesTest
Antoine Musso [Thu, 12 Jan 2012 16:42:33 +0000 (16:42 +0000)]
swap assertEquals parameters in TemplateCategoriesTest

First parameter is expected, second is the result

12 years ago(bug 32508) Fix updater output
Antoine Musso [Thu, 12 Jan 2012 10:59:13 +0000 (10:59 +0000)]
(bug 32508) Fix updater output

site_stats updated is still a database action.
Purge cache is now the very last one.

Output:

<snip>
...site_stats is populated...done.
Purging caches...done.

Done.

12 years agobug 33583 search ns user pref ignored!
Antoine Musso [Thu, 12 Jan 2012 09:03:38 +0000 (09:03 +0000)]
bug 33583 search ns user pref ignored!

r106780 to fix bug 33270 introduced a new bug that prevented selected
namespaces for search to be applied. This patch fix the issue.

Credits to Brad Jorsch

12 years ago* (bug 33117) prop=revisions allows deleted text to be exposed through cache pollution
Sam Reed [Wed, 11 Jan 2012 21:52:44 +0000 (21:52 +0000)]
* (bug 33117) prop=revisions allows deleted text to be exposed through cache pollution

12 years agoRevert r108603, which was itself a revert of r107376, r107994. Before considering...
Max Semenik [Wed, 11 Jan 2012 20:19:55 +0000 (20:19 +0000)]
Revert r108603, which was itself a revert of r107376, r107994. Before considering something unneeded, please ask first ;)

12 years agoLocalisation updates for core and extension messages from translatewiki.net
Raimond Spekking [Wed, 11 Jan 2012 20:17:10 +0000 (20:17 +0000)]
Localisation updates for core and extension messages from translatewiki.net

12 years agoApparently we can commit code that doesn't compile but I am not allowed to have commi...
Niklas Laxström [Wed, 11 Jan 2012 19:47:21 +0000 (19:47 +0000)]
Apparently we can commit code that doesn't compile but I am not allowed to have commit summary as "){} -> ) {}"

12 years agoWhitespaces fixes only, no functional changes.
Alexandre Emsenhuber [Wed, 11 Jan 2012 19:23:57 +0000 (19:23 +0000)]
Whitespaces fixes only, no functional changes.

12 years agoremove concurrency resource per revert. follow up r108600
Rob Moen [Wed, 11 Jan 2012 18:00:49 +0000 (18:00 +0000)]
remove concurrency resource per revert.  follow up r108600

12 years agoAdd @since to getPerformedAction, added in r108342
Sam Reed [Wed, 11 Jan 2012 15:51:07 +0000 (15:51 +0000)]
Add @since to getPerformedAction, added in r108342

Caused site errors as not in 1.18 when trying to merge r108345 as a followup to r94131

12 years agoRemove RELEASE-NOTES-1.19 from r108145, moved to 1.18 in r108629
Sam Reed [Wed, 11 Jan 2012 15:45:49 +0000 (15:45 +0000)]
Remove RELEASE-NOTES-1.19 from r108145, moved to 1.18 in r108629

12 years agoMade Parser::addTrackingCategory() public to benefit tag hooks/parser functions devel...
Max Semenik [Wed, 11 Jan 2012 15:42:29 +0000 (15:42 +0000)]
Made Parser::addTrackingCategory() public to benefit tag hooks/parser functions developers

12 years agoKill bug 25355 RELEASE-NOTES-1.19 from r92703 as moved to 1.18 in r108620
Sam Reed [Wed, 11 Jan 2012 14:53:52 +0000 (14:53 +0000)]
Kill bug 25355 RELEASE-NOTES-1.19 from r92703 as moved to 1.18 in r108620

12 years agorevert r108508 which reverted for no good reason
Jeroen De Dauw [Wed, 11 Jan 2012 14:11:06 +0000 (14:11 +0000)]
revert r108508 which reverted for no good reason

12 years agoFixed reporting in importDump.txt
Max Semenik [Wed, 11 Jan 2012 10:38:25 +0000 (10:38 +0000)]
Fixed reporting in importDump.txt

12 years agoMoved RessourceLoader modules and stylesheet related stuff from EditPage::edit()...
Alexandre Emsenhuber [Wed, 11 Jan 2012 10:33:31 +0000 (10:33 +0000)]
Moved RessourceLoader modules and stylesheet related stuff from EditPage::edit() to EditPage::setHeaders() and header messages to EditPage::showHeader(); there's no point running all that code when the edit form is not displayed (e.g. page save).

12 years agoReverts MySQL stored procedure support
Antoine Musso [Wed, 11 Jan 2012 09:46:21 +0000 (09:46 +0000)]
Reverts MySQL stored procedure support

This is reverting the work done by MaxSem to support stored procedures
and stored function in MySQL. The reasons are:
 - it is not needed yet
 - tests are not functionals
 - alter the stable include/db/Database.php and drop support for ';;'

So please create a branch to work on it and merge it back in trunk
once we have branched 1.19 :-)

I have opened bug 33654 to track this enhancement request.

Reverts r107376, r107994.

12 years agoreverts Concurrency works
Antoine Musso [Wed, 11 Jan 2012 09:05:56 +0000 (09:05 +0000)]
reverts Concurrency works

trunk is frozen pending stabilisation so we can release MediaWiki 1.19.
Those changes introduces API changes and new SQL tables, so that sounds like
new feature we do not have time to review right now.

Please reapply changes in branches/concurrency and have code review handled
there. Once the branch has been reviewed, please hold. Once trunk is stable
enough and 1.19 got branched, you are welcome to merge the branch in trunk.

Note: we can have a Jenkins jobs setup to run the branch tests if you need.

Reverts:
r108595 r108591 r108585 r108584 108572 r108564 108560 r108559

12 years agoCommenting these tests out so that CI can run, since I need to leave and nobody uses...
Ian Baker [Wed, 11 Jan 2012 02:48:28 +0000 (02:48 +0000)]
Commenting these tests out so that CI can run, since I need to leave and nobody uses this code yet.
These fail only on sqlite, and only when run with the entire suite (they're fine when run individually).
Skipping ApiBlockTest allows ApiConcurrencyTest to run, oddly enough.
Clearly, this will need to be fixed ASAP.  I'll take care of it on Thursday when I'm back online, or possibly
before.

12 years agosqlite needs its timestamps quoted
Ian Baker [Wed, 11 Jan 2012 02:02:26 +0000 (02:02 +0000)]
sqlite needs its timestamps quoted
fixed some memcache timestamp bugs
followup to r108559

12 years agosqlite doesn't actually support read locks. added a workaround until i can do the...
Ian Baker [Wed, 11 Jan 2012 01:27:55 +0000 (01:27 +0000)]
sqlite doesn't actually support read locks.  added a workaround until i can do the correct implementation.
followup to r108559

12 years agoFixed concurrency issues related to mysql default locking mode, per Roan's comments...
Ian Baker [Wed, 11 Jan 2012 01:10:27 +0000 (01:10 +0000)]
Fixed concurrency issues related to mysql default locking mode, per Roan's comments.  Fixed other little bugs Roan pointed out also.
followup to r108559

12 years agoRevert r102624, r104262 (user display name stuff). Per CR there isn't consensus on...
Chad Horohoe [Wed, 11 Jan 2012 00:53:08 +0000 (00:53 +0000)]
Revert r102624, r104262 (user display name stuff). Per CR there isn't consensus on this yet.

12 years agoadd js resource for concurrency api, check method for resource checkin & checkout
Rob Moen [Wed, 11 Jan 2012 00:17:17 +0000 (00:17 +0000)]
add js resource for concurrency api, check method for resource checkin & checkout

12 years agoUpdated to use correct cross-db timestamps and date functions
Ian Baker [Tue, 10 Jan 2012 23:42:03 +0000 (23:42 +0000)]
Updated to use correct cross-db timestamps and date functions
Added to SQLite updater

12 years agoAdd svn:keywords Id
Sam Reed [Tue, 10 Jan 2012 23:12:00 +0000 (23:12 +0000)]
Add svn:keywords Id

Trim trailing whitespace

Add explicit member variables

12 years agoMERGE branches/concurrency 108301:108557 into trunk
Ian Baker [Tue, 10 Jan 2012 23:03:03 +0000 (23:03 +0000)]
MERGE branches/concurrency 108301:108557 into trunk

12 years agoLocalisation updates for core and extension messages from translatewiki.net
Raimond Spekking [Tue, 10 Jan 2012 21:07:49 +0000 (21:07 +0000)]
Localisation updates for core and extension messages from translatewiki.net

12 years ago[Core JS] Remove superfluous comments (follows-up r107329)
Krinkle [Tue, 10 Jan 2012 21:03:09 +0000 (21:03 +0000)]
[Core JS] Remove superfluous comments (follows-up r107329)

12 years agomove parser fuzz test to ParserFuzz group
Antoine Musso [Tue, 10 Jan 2012 20:50:34 +0000 (20:50 +0000)]
move parser fuzz test to ParserFuzz group

Somehow fixes bug 29493:
« Put parser fuzz tests in @group and disable by default »

12 years agoFix whitespace
Sam Reed [Tue, 10 Jan 2012 18:42:59 +0000 (18:42 +0000)]
Fix whitespace

Fix/improve documentation

12 years agoSupport If-modified-since for RawPage, fixes bug #10023.
Gabriel Wicke [Tue, 10 Jan 2012 18:16:38 +0000 (18:16 +0000)]
Support If-modified-since for RawPage, fixes bug #10023.

The check to WikiPage::getTouched will load the latest revision data, which is
not ideal for performance. In a quick test using ab -c 100 -n 1000 and without
MemCached enabled, the request rate for plain GET requests drops slightly from
108 to 104 req/second. As described in my comment
https://bugzilla.wikimedia.org/show_bug.cgi?id=10023#c9, this could certainly be
improved on. Overall, a few unmodified responses should still make the
server-side performance impact of this patch positive, while improving
client-side performance considerably for unmodified content.

12 years agoReverted r108502, r108504 per CR
Aaron Schulz [Tue, 10 Jan 2012 18:05:36 +0000 (18:05 +0000)]
Reverted r108502, r108504 per CR

12 years agoreverts $wgDeprecationWhitelist
Antoine Musso [Tue, 10 Jan 2012 15:40:01 +0000 (15:40 +0000)]
reverts $wgDeprecationWhitelist

There is no point in ignoring a deprecated function. The call really need
to be migrated OR the core function should not be deprecated if there is
any kind of valid usage.

If you really want to hide notifications, uses:
  $wgDevelopmentWarnings = false;

Reverts r106993 r106946

12 years agoCleanup "text" (nee old) table, dropping old indexes and fields
Sam Reed [Tue, 10 Jan 2012 15:04:05 +0000 (15:04 +0000)]
Cleanup "text" (nee old) table, dropping old indexes and fields

Add oldwatchlist to dropAncientTables

12 years agoStoreBatchText note about using custom repo
Antoine Musso [Tue, 10 Jan 2012 14:26:17 +0000 (14:26 +0000)]
StoreBatchText note about using custom repo

follow up r108308

12 years agoNoticed looking at schema posted by Joerg in bug 33228
Sam Reed [Tue, 10 Jan 2012 14:07:32 +0000 (14:07 +0000)]
Noticed looking at schema posted by Joerg in bug 33228

It seems many ancient tables (removed mainly in 1.4, and some in 1.6)

Kill them with fire, if they've still got unmigrated data in or something, we've got bigger issues!

Noticed "user_rights" table is not documented at Manual:Database_layout

12 years agoMoved GenderCache to cache/
Niklas Laxström [Tue, 10 Jan 2012 07:39:51 +0000 (07:39 +0000)]
Moved GenderCache to cache/

12 years agoMake the plural rules for Southern Sami consistant with the rules in LanguageSma.php
Santhosh Thottingal [Tue, 10 Jan 2012 05:13:50 +0000 (05:13 +0000)]
Make the plural rules for  Southern Sami consistant with the rules in LanguageSma.php

12 years agoMake the plural rules consistant with the rules in LanguageSe.php.
Santhosh Thottingal [Tue, 10 Jan 2012 05:03:27 +0000 (05:03 +0000)]
Make the plural rules consistant with the rules in LanguageSe.php.

12 years agoMake the javascript implementation of Macedonian(mk) plural consistant with php side...
Santhosh Thottingal [Tue, 10 Jan 2012 04:25:21 +0000 (04:25 +0000)]
Make the javascript implementation of Macedonian(mk) plural consistant with php side rule.
Add a todo in php code since the rules differs from CLDR definition for mk plural.

12 years agor108353: Distinguish null/false in FileBackend::fileExists(). This is intended for...
Aaron Schulz [Tue, 10 Jan 2012 02:18:27 +0000 (02:18 +0000)]
r108353: Distinguish null/false in FileBackend::fileExists(). This is intended for things that might really care.

12 years agoRevert r108358. It's a good fellow and we like to keep it.
Platonides [Mon, 9 Jan 2012 22:33:00 +0000 (22:33 +0000)]
Revert r108358. It's a good fellow and we like to keep it.

12 years agoLocalisation updates for core and extension messages from translatewiki.net
Raimond Spekking [Mon, 9 Jan 2012 21:29:15 +0000 (21:29 +0000)]
Localisation updates for core and extension messages from translatewiki.net

12 years agoRemoved debug code from r108472
Aaron Schulz [Mon, 9 Jan 2012 21:22:54 +0000 (21:22 +0000)]
Removed debug code from r108472

12 years agoFix r108185: file transform store op needs 'overwriteDest'
Aaron Schulz [Mon, 9 Jan 2012 21:21:40 +0000 (21:21 +0000)]
Fix r108185: file transform store op needs 'overwriteDest'

12 years ago* Fixed FileOp::attemptBatch() bug that had status->ok set wrong if 'force' option...
Aaron Schulz [Mon, 9 Jan 2012 21:04:48 +0000 (21:04 +0000)]
* Fixed FileOp::attemptBatch() bug that had status->ok set wrong if 'force' option was used.
* Added missing prepare() call to File::maybeDoTransform().
* Improved documentation.

12 years agofix '999bps' test message
Antoine Musso [Mon, 9 Jan 2012 19:38:38 +0000 (19:38 +0000)]
fix '999bps' test message

follow r108413

12 years agoMissing @since tags have a yet another victim
Niklas Laxström [Mon, 9 Jan 2012 19:11:55 +0000 (19:11 +0000)]
Missing @since tags have a yet another victim

12 years agoRegister 'ScriptImporter' in $wgReservedUsernames; default user name used by maintena...
Alexandre Emsenhuber [Mon, 9 Jan 2012 18:43:51 +0000 (18:43 +0000)]
Register 'ScriptImporter' in $wgReservedUsernames; default user name used by maintenance/importSiteScripts.php

12 years agoFollowup r108425, r108426
Sam Reed [Mon, 9 Jan 2012 18:41:58 +0000 (18:41 +0000)]
Followup r108425, r108426

Why are we committing extensions to phase3/extensions...?

Svn move WindowsAzureSDK ad WindowsAzureStorage to /trunk/extensions

12 years agoFollow-up r108415: Localisation updates (add/remove).
Siebrand Mazeland [Mon, 9 Jan 2012 18:21:26 +0000 (18:21 +0000)]
Follow-up r108415: Localisation updates (add/remove).

Will contain a few localisation updates from http://translatewiki.net.

12 years agoFollowup r108403, use data providers
Chad Horohoe [Mon, 9 Jan 2012 16:51:34 +0000 (16:51 +0000)]
Followup r108403, use data providers

12 years agoBreak wfBCP47, wfBaseName and wfTimestamp tests
Antoine Musso [Mon, 9 Jan 2012 16:30:32 +0000 (16:30 +0000)]
Break wfBCP47, wfBaseName and wfTimestamp tests

They are now in their own files. Rewrite wfTimestamp tests to use
data providers like it should.

Originally commited without history by ^demon as r108420

12 years agorevert r108420, will split with history
Antoine Musso [Mon, 9 Jan 2012 16:21:13 +0000 (16:21 +0000)]
revert r108420, will split with history

12 years agoEnables MediaWiki to use Windows Azure as a file backend.
Markus Glaser [Mon, 9 Jan 2012 16:18:19 +0000 (16:18 +0000)]
Enables MediaWiki to use Windows Azure as a file backend.
Initial commit

12 years agoThis extension makes sure PHPAzure library is properly included.
Markus Glaser [Mon, 9 Jan 2012 16:16:25 +0000 (16:16 +0000)]
This extension makes sure PHPAzure library is properly included.
Initial commit

12 years ago* Drop old parserTests.php way of running parser tests. You can run parser tests...
Chad Horohoe [Mon, 9 Jan 2012 15:18:07 +0000 (15:18 +0000)]
* Drop old parserTests.php way of running parser tests. You can run parser tests via --group Parser or specifying
  the includes/parser/MediaWikiParserTest.php test case
* Drop now unused various test recorder options -- phpunit outputs its data in lots of machine-readable formats, use those if you need to work with
  test data
* There's still a lot of duplication between NewParserTest::setUp() and MediaWikiTestCase, but hey one step at a time ;-)
* All tests pass for me (make phpunit && make parser)

12 years agofile name -> filename for consistency.
Siebrand Mazeland [Mon, 9 Jan 2012 14:42:18 +0000 (14:42 +0000)]
file name -> filename for consistency.

12 years agoreindent SpecialSearchTest.php (follow r198400)
Antoine Musso [Mon, 9 Jan 2012 14:42:02 +0000 (14:42 +0000)]
reindent SpecialSearchTest.php (follow r198400)

12 years agoRemove API error message duplication from Translate and UploadWizard into core.
Siebrand Mazeland [Mon, 9 Jan 2012 14:21:06 +0000 (14:21 +0000)]
Remove API error message duplication from Translate and UploadWizard into core.

Make necessary changes in loader and JavaScript for Translate and UploadWizard.

12 years agomethod documentation for r108364
Antoine Musso [Mon, 9 Jan 2012 14:10:13 +0000 (14:10 +0000)]
method documentation for r108364

The function are badly named and could use something better :D

12 years agotest format bitrate with '999'
Antoine Musso [Mon, 9 Jan 2012 14:01:51 +0000 (14:01 +0000)]
test format bitrate with '999'

12 years agoAdd a new methodExists method to MWInit.
Daniel Friesen [Mon, 9 Jan 2012 13:45:34 +0000 (13:45 +0000)]
Add a new methodExists method to MWInit.

12 years agofilerepo: always use realpath()
Antoine Musso [Mon, 9 Jan 2012 13:40:09 +0000 (13:40 +0000)]
filerepo: always use realpath()

The suffix to strip was determined using realpath() but applied on
the given path. This could lead to errors when the path is made of
a symbolic link or use consecutives slashes.
Example on Mac OS:

$ php -a
php > print realpath( '/private///tmp' );
/private/tmp
php > print realpath( '///tmp///////' );
/private/tmp
php >
$

Fix FileBackendTest::testGetFileList test which failed with:

1) FileBackendTest::testGetFileList
Correct file listing (FSFileBackend).
Failed asserting that two arrays are equal.
--- Expected
+++ Actual
@@ @@
 Array (
-    0 => 'subdir1/test1.txt'
-    1 => 'subdir1/test2.txt'
-    2 => 'subdir2/subdir/sub/120-px-file.txt'
-    3 => 'subdir2/subdir/sub/test0.txt'
-    4 => 'subdir2/subdir/test1.txt'
-    5 => 'subdir2/subdir/test2.txt'
-    6 => 'subdir2/subdir/test3.txt'
-    7 => 'subdir2/subdir/test4.txt'
-    8 => 'subdir2/subdir/test5.txt'
-    9 => 'subdir2/test3.txt'
-    10 => 'subdir2/test4.txt'
-    11 => 'test1.txt'
-    12 => 'test2.txt'
-    13 => 'test3.txt'
+    0 => '/subdir/sub/120-px-file.txt'
+    1 => '/subdir/sub/test0.txt'
+    2 => '/subdir/test1.txt'
+    3 => '/subdir/test2.txt'
+    4 => '/subdir/test3.txt'
+    5 => '/subdir/test4.txt'
+    6 => '/subdir/test5.txt'
+    7 => '/test1.txt'
+    8 => '/test2.txt'
+    9 => '/test3.txt'
+    10 => '/test4.txt'
+    11 => 'xt'
+    12 => 'xt'
+    13 => 'xt'
 )

12 years agoRemove no-op codepath
Chad Horohoe [Mon, 9 Jan 2012 13:04:05 +0000 (13:04 +0000)]
Remove no-op codepath

12 years agoCleanup the convertPLural method for Lithuanian(lt)
Santhosh Thottingal [Mon, 9 Jan 2012 12:58:01 +0000 (12:58 +0000)]
Cleanup the convertPLural method for Lithuanian(lt)
Followup r108403