lhc/web/wiklou.git
13 years ago* Fixed mistake made in r74271 where some functions were moved from core jquery.wikiE...
Trevor Parscal [Tue, 5 Oct 2010 20:54:38 +0000 (20:54 +0000)]
* Fixed mistake made in r74271 where some functions were moved from core jquery.wikiEditor into jquery.wikiEditor.iframe, causing errors for textarea mode. These changes properly split the functions, allowing the iframe to override the textarea functions, and using $.client to only execute them on IE. (tested in IE7)
* Also fixed IE bug, where "delete window.myThing;" fails but "delete myThing;" succeeds.

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2010...
Raimond Spekking [Tue, 5 Oct 2010 18:54:47 +0000 (18:54 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-10-05 18:38:00 UTC)

13 years agoremoving file I used to test commit access
Neil Kandalgaonkar [Tue, 5 Oct 2010 18:35:02 +0000 (18:35 +0000)]
removing file I used to test commit access

13 years agotesting commit access
Neil Kandalgaonkar [Tue, 5 Oct 2010 18:34:39 +0000 (18:34 +0000)]
testing commit access

13 years agoRevert r74286, r74287 -- broke parserTests completely; mixed lots of formatting and...
Brion Vibber [Tue, 5 Oct 2010 15:10:14 +0000 (15:10 +0000)]
Revert r74286, r74287 -- broke parserTests completely; mixed lots of formatting and code cleanup in with functional changes making it impossible to review cleanly.

13 years agoRemove parserTests.inc checks, as testing is now done quite differently.
Greg Sabino Mullane [Tue, 5 Oct 2010 15:00:19 +0000 (15:00 +0000)]
Remove parserTests.inc checks, as testing is now done quite differently.

13 years agoMake the watchlist query ordering consistent across DBs.
Greg Sabino Mullane [Tue, 5 Oct 2010 13:36:05 +0000 (13:36 +0000)]
Make the watchlist query ordering consistent across DBs.

13 years ago(second commit to get all files.)
Mark A. Hershberger [Tue, 5 Oct 2010 03:51:49 +0000 (03:51 +0000)]
(second commit to get all files.)

= BacklinkCache.php =
* BacklinkCache class
** Set a few otherwise unset varables ($wgContLang & $wgMemc in
   BacklinkCache)
= testHelpers.inc =
* TectRecorder class
** TestRecorder::record() accept and use a recorder object
** change TestFileIterator::setParser use a MediaWikiParserTest instead
   of ParserTest
= parserTest.inc =
* ParserTest class
** Make $ParserTest->regex and $ParsaerTest->savedGlobals member
   variables available to stop warnings.
** Force ParserTest::$showProgress and $showFailure to false
** Set ParserTest::$uploadDir on time
** Move ParserTest::chomp() and addArticle() to bootstrap for
   MediaWikiTestSetup.
** Update ParserTest::runTest so that Success and Failure are reported
   via reporter->showsTestResult() or ParserTestSuiteBackend::show*()
   as needed.
** Set $ParserTest->uploadDir with setupUploadDir()
** Change ParserTest->setupGlobals() so that $wgDBprefix doesn't get
   to set to the “parsertest_” bits.
** Sprinkle $this->teardownGlobals() at exit points in
  ParserTest->teardownDatabase()
= bootstrap.php =
* MediaWikiTestSetup class
** Make member variables MediaWikiTestSetup::$suite,
  MediaW* Make member variables MediaWikiTestSetup::$suite,
  MediaWikiTestSetup::$regex, MediaWikiTestSetup::$runDisabled
  available.
* Setup a constructor MediaWikiTestSetup that accepts an optional
  PHPUnit_Framework_TestSuite so they can use PHPUnit.
* Change MediaWikiParserTest so that it is derived from
  MediaWikiTestSetup instead of PHPUnit_Framework_TestSuite
* Make MediaWikiParserTest create a PHPUnit_Framework_TestSuite for
  the parser tests and pass it to the new parent (MediaWikiTestSetup)
  as the PHPUnit testsuite.
* Replace MediaWikiParserTest->run() with MediaWikiParserTest::suite()
  so that the tests can be loaded into a suite and then run with
  PHPUnit's test runner.
= ParserHelpers.php =
* ParserUnitTest class
** Force run() $backend to use ParserTestSuiteBackend instead of
   trying to get the  backend from the suite member.
** Use ParserTest::runTest() instead of
  ParserikiTestSetup::$regex, MediaWikiTestSetup::$runDisabled
  available.
** Setup a constructor MediaWikiTestSetup that accepts an optional
   PHPUnit_Framework_TestSuite so they can use PHPUnit.
** Change MediaWikiParserTest so that it is derived from
   MediaWikiTestSetup instead of PHPUnit_Framework_TestSuite
** Make MediaWikiParserTest create a PHPUnit_Framework_TestSuite for
   the parser tests and pass it to the new parent (MediaWikiTestSetup)
   as the PHPUnit testsuite.
** Replace MediaWikiParserTest->run() with MediaWikiParserTest::suite()
   so that the tests can be loaded into a suite and then run with
   PHPUnit's test runner.
= ParserHelpers.php =
* ParserUnitTest class
** Force run() $backend to use ParserTestSuiteBackend instead of
   trying to get the  backend from the suite member.
** Use ParserTest::runTest() instead of
  ParserTestSuiteBackend::runTest()
* ParserTestSuiteBackend class
** extends PHPUnit_FrameWork_TestSuite instead of ParserTest
** Add member variables  $recorder, $term, and $usePHPUnit
** Add a constructor that determines if PHPUnit is usewd.
** Add a method showTestResult() that can be used to show success or
   failure
** Change showSucess and showFailure() to be static and use identical
   arguments and only use PHPUnit_Framework_Assert::assertEquals
   when PHPUnit is in use.
= SearchEngineTest.php =
** Fix path in require to bootstrap.php

13 years ago= BacklinkCache.php =
Mark A. Hershberger [Tue, 5 Oct 2010 03:47:08 +0000 (03:47 +0000)]
= BacklinkCache.php =
* BacklinkCache class
** Set a few otherwise unset varables ($wgContLang & $wgMemc in
   BacklinkCache)
= testHelpers.inc =
* TectRecorder class
** TestRecorder::record() accept and use a recorder object
** change TestFileIterator::setParser use a MediaWikiParserTest instead
   of ParserTest
= parserTest.inc =
* ParserTest class
** Make $ParserTest->regex and $ParsaerTest->savedGlobals member
   variables available to stop warnings.
** Force ParserTest::$showProgress and $showFailure to false
** Set ParserTest::$uploadDir on time
** Move ParserTest::chomp() and addArticle() to bootstrap for
   MediaWikiTestSetup.
** Update ParserTest::runTest so that Success and Failure are reported
   via reporter->showsTestResult() or ParserTestSuiteBackend::show*()
   as needed.
** Set $ParserTest->uploadDir with setupUploadDir()
** Change ParserTest->setupGlobals() so that $wgDBprefix doesn't get
   to set to the “parsertest_” bits.
** Sprinkle $this->teardownGlobals() at exit points in
  ParserTest->teardownDatabase()
= bootstrap.php =
* MediaWikiTestSetup class
** Make member variables MediaWikiTestSetup::$suite,
  MediaW* Make member variables MediaWikiTestSetup::$suite,
  MediaWikiTestSetup::$regex, MediaWikiTestSetup::$runDisabled
  available.
* Setup a constructor MediaWikiTestSetup that accepts an optional
  PHPUnit_Framework_TestSuite so they can use PHPUnit.
* Change MediaWikiParserTest so that it is derived from
  MediaWikiTestSetup instead of PHPUnit_Framework_TestSuite
* Make MediaWikiParserTest create a PHPUnit_Framework_TestSuite for
  the parser tests and pass it to the new parent (MediaWikiTestSetup)
  as the PHPUnit testsuite.
* Replace MediaWikiParserTest->run() with MediaWikiParserTest::suite()
  so that the tests can be loaded into a suite and then run with
  PHPUnit's test runner.
= ParserHelpers.php =
* ParserUnitTest class
** Force run() $backend to use ParserTestSuiteBackend instead of
   trying to get the  backend from the suite member.
** Use ParserTest::runTest() instead of
  ParserikiTestSetup::$regex, MediaWikiTestSetup::$runDisabled
  available.
** Setup a constructor MediaWikiTestSetup that accepts an optional
   PHPUnit_Framework_TestSuite so they can use PHPUnit.
** Change MediaWikiParserTest so that it is derived from
   MediaWikiTestSetup instead of PHPUnit_Framework_TestSuite
** Make MediaWikiParserTest create a PHPUnit_Framework_TestSuite for
   the parser tests and pass it to the new parent (MediaWikiTestSetup)
   as the PHPUnit testsuite.
** Replace MediaWikiParserTest->run() with MediaWikiParserTest::suite()
   so that the tests can be loaded into a suite and then run with
   PHPUnit's test runner.
= ParserHelpers.php =
* ParserUnitTest class
** Force run() $backend to use ParserTestSuiteBackend instead of
   trying to get the  backend from the suite member.
** Use ParserTest::runTest() instead of
  ParserTestSuiteBackend::runTest()
* ParserTestSuiteBackend class
** extends PHPUnit_FrameWork_TestSuite instead of ParserTest
** Add member variables  $recorder, $term, and $usePHPUnit
** Add a constructor that determines if PHPUnit is usewd.
** Add a method showTestResult() that can be used to show success or
   failure
** Change showSucess and showFailure() to be static and use identical
   arguments and only use PHPUnit_Framework_Assert::assertEquals
   when PHPUnit is in use.
= SearchEngineTest.php =
** Fix path in require to bootstrap.php

13 years agoTweak/refactoring around of tests
Sam Reed [Mon, 4 Oct 2010 23:29:05 +0000 (23:29 +0000)]
Tweak/refactoring around of tests

Mark 3 as incomplete (ie broken)

13 years agoMoved some of the functionality from mediawiki.legacy.prefs into mediawiki.specials...
Trevor Parscal [Mon, 4 Oct 2010 22:16:18 +0000 (22:16 +0000)]
Moved some of the functionality from mediawiki.legacy.prefs into mediawiki.specials.preferences.

13 years agoFollowup r74234 flip parameters
Sam Reed [Mon, 4 Oct 2010 21:18:38 +0000 (21:18 +0000)]
Followup r74234 flip parameters

13 years agoadding close window button for use with all skins
Ryan Kaldari [Mon, 4 Oct 2010 21:07:21 +0000 (21:07 +0000)]
adding close window button for use with all skins

13 years agoProfiling table (optional) for SQLite
Antoine Musso [Mon, 4 Oct 2010 20:55:14 +0000 (20:55 +0000)]
Profiling table (optional) for SQLite

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2010...
Raimond Spekking [Mon, 4 Oct 2010 19:02:27 +0000 (19:02 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-10-04 18:48:00 UTC)

13 years agoFix issues after r54561 which avoided use of the 7z wrapper.
Platonides [Mon, 4 Oct 2010 15:04:41 +0000 (15:04 +0000)]
Fix issues after r54561 which avoided use of the 7z wrapper.
popen() doesn't like two-letter modes but the approach checked for it at
too high level, used as mode the letter t, not r, which was an invalid
option for SevenZipStream, and is still an invalid argument for popen.

13 years agoPer r74201 CR, make it clear that the list of languages supporting variant conversion...
Roan Kattouw [Mon, 4 Oct 2010 09:11:15 +0000 (09:11 +0000)]
Per r74201 CR, make it clear that the list of languages supporting variant conversion may not be complete

13 years agoClean up names of my bodyAttr hooks on Brion's recomendation.
Daniel Friesen [Mon, 4 Oct 2010 05:38:48 +0000 (05:38 +0000)]
Clean up names of my bodyAttr hooks on Brion's recomendation.

13 years agoFix tabs/spaces from r74242
Sam Reed [Mon, 4 Oct 2010 00:01:16 +0000 (00:01 +0000)]
Fix tabs/spaces from r74242

13 years agoRevert r74240, the depends seem to do some weird dependancy parameter passing or...
Sam Reed [Sun, 3 Oct 2010 23:59:42 +0000 (23:59 +0000)]
Revert r74240, the depends seem to do some weird dependancy parameter passing or something...

13 years agoFixup testGetToken again
Sam Reed [Sun, 3 Oct 2010 23:03:57 +0000 (23:03 +0000)]
Fixup testGetToken again

Iterate through both users, checking for rights to delete/block/protect

13 years agoMark testWatchDelete as incomplete (watch isn't verified)
Sam Reed [Sun, 3 Oct 2010 22:52:12 +0000 (22:52 +0000)]
Mark testWatchDelete as incomplete (watch isn't verified)

13 years agoNuke returns from end of tests
Sam Reed [Sun, 3 Oct 2010 22:51:01 +0000 (22:51 +0000)]
Nuke returns from end of tests

13 years agoObject return type hints
Sam Reed [Sun, 3 Oct 2010 22:13:04 +0000 (22:13 +0000)]
Object return type hints

13 years agoChanged phpunit Makefile to require 'make destructive' to run the test suites as...
Brion Vibber [Sun, 3 Oct 2010 21:25:33 +0000 (21:25 +0000)]
Changed phpunit Makefile to require 'make destructive' to run the test suites as a temporary safety check.

Looks like somebody's snuck a bunch of destructive tests into the default PHPUnit test suite;
this is unsafe and could cause admins and developers to damage their wikis contents accidentally,
not realizing that their main page will be deleted etc.

Tests should be split up into those which alter the live database and those that don't; only
those which are non-destructive should run unless explicitly requested.

13 years agoMuch improved RELEASE-NOTES for r74235. Cheers brion
Sam Reed [Sun, 3 Oct 2010 20:53:32 +0000 (20:53 +0000)]
Much improved RELEASE-NOTES for r74235. Cheers brion

13 years agoRELEASE-NOTES for * (bug 25303) API: integer parameter validation does not actually...
Sam Reed [Sun, 3 Oct 2010 20:31:08 +0000 (20:31 +0000)]
RELEASE-NOTES for * (bug 25303) API: integer parameter validation does not actually validate

13 years agoMinor tweaks to r74232, add a value for $botMax on calls for integer validation ...
Sam Reed [Sun, 3 Oct 2010 20:29:44 +0000 (20:29 +0000)]
Minor tweaks to r74232, add a value for $botMax on calls for integer validation (otherwise the bool gets pushed into it!)

Documentation in ApiDelete

13 years agoFollowup r74230, if we make things array, we should make them not an array afterwards
Sam Reed [Sun, 3 Oct 2010 20:07:23 +0000 (20:07 +0000)]
Followup r74230, if we make things array, we should make them not an array afterwards

Well, the more sane way, is just treat them seperately, than having to do $value = $value[0];, based on whether it was an array already

Cheers to Siebrand (was already poking it myself :))

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2010...
Raimond Spekking [Sun, 3 Oct 2010 19:25:07 +0000 (19:25 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-10-03 19:11:00 UTC)

13 years agoFirst part of "*(bug 25303) API: integer parameter validation does not actually valid...
Sam Reed [Sun, 3 Oct 2010 19:07:11 +0000 (19:07 +0000)]
First part of "*(bug 25303) API: integer parameter validation does not actually validate, only warn"

Actually make the validation of the range occur

Fix typo in ApiBase.php

13 years agoFix comment typo
Sam Reed [Sun, 3 Oct 2010 18:23:31 +0000 (18:23 +0000)]
Fix comment typo

13 years agoMarking testApiGotCookie incomplete
Sam Reed [Sun, 3 Oct 2010 18:21:58 +0000 (18:21 +0000)]
Marking testApiGotCookie incomplete

$this->markTestIncomplete( "The server can't do external HTTP requests, and the internal one won't give cookies"  );

13 years agoFix groupping in comments
Alexandre Emsenhuber [Sun, 3 Oct 2010 17:37:26 +0000 (17:37 +0000)]
Fix groupping in comments

13 years agoFiuxp issues from r74213 CR
Sam Reed [Sun, 3 Oct 2010 16:32:46 +0000 (16:32 +0000)]
Fiuxp issues from r74213 CR

Use public, not protected, needs to be accessible outside the class

13 years agoVariable UserWrapper used in both testApiLoginBadPass and testApiLoginGoodPass
Sam Reed [Sun, 3 Oct 2010 15:58:00 +0000 (15:58 +0000)]
Variable UserWrapper used in both testApiLoginBadPass and testApiLoginGoodPass

Switch testApiLoginGoodPass to use sysOp user, as I imagine, logins would be a false positive, per Brion r74122#c9828

13 years agoRevert r74122, making r74117 live again
Sam Reed [Sun, 3 Oct 2010 15:24:47 +0000 (15:24 +0000)]
Revert r74122, making r74117 live again

Some refactoring, to encapsulate users. Added a UserWrapper, contains the setup username/password and user object. Allows for ease of adding of multiple users (and groups)

Per Brion, if logging in user == wguser, we skip login tests, so use a secondary user

Fixup testApiLoginBadPass, we should get a WrongPass when the passwords wrong, but we've given a token

13 years agoAdd to OutputPage::headElement a OutputPageBodyAttrs hook for extensions and a bodyAt...
Daniel Friesen [Sun, 3 Oct 2010 14:12:41 +0000 (14:12 +0000)]
Add to OutputPage::headElement a OutputPageBodyAttrs hook for extensions and a bodyAttrs callback to Skin so that Extensions and Skins are able to add attributes and classes to the <body> tag without neeing to do insane things.

13 years agoPer r69587 CR, mention which languages support variant conversion in the API help...
Roan Kattouw [Sun, 3 Oct 2010 12:11:42 +0000 (12:11 +0000)]
Per r69587 CR, mention which languages support variant conversion in the API help for the converttitles parameter

13 years ago* Standardised file description headers
Alexandre Emsenhuber [Sun, 3 Oct 2010 09:25:28 +0000 (09:25 +0000)]
* Standardised file description headers
* added @file where needed
* added file description headers where needed

13 years agoPer Nikerabbit, follow-up to r74191: tag for removal in 1.19; I removed the last...
Alexandre Emsenhuber [Sun, 3 Oct 2010 08:50:23 +0000 (08:50 +0000)]
Per Nikerabbit, follow-up to r74191: tag for removal in 1.19; I removed the last usage of these functions in r74190

13 years agoAdded wfDeprecated() to wfAbruptExit() and wfErrorExit() and removed a comment that...
Alexandre Emsenhuber [Sun, 3 Oct 2010 08:42:38 +0000 (08:42 +0000)]
Added wfDeprecated() to wfAbruptExit() and wfErrorExit() and removed a comment that mentioned it

13 years agoRemoved forward comapt code with 5.1.0+ and modified code to use the new version
Alexandre Emsenhuber [Sun, 3 Oct 2010 08:14:38 +0000 (08:14 +0000)]
Removed forward comapt code with 5.1.0+ and modified code to use the new version

13 years agoAdded fname parameter to the query() call
Alexandre Emsenhuber [Sun, 3 Oct 2010 08:05:26 +0000 (08:05 +0000)]
Added fname parameter to the query() call

13 years agoTweak variable name to be camel case (as per feedback on r70849).
Sean Colombo [Sun, 3 Oct 2010 04:31:29 +0000 (04:31 +0000)]
Tweak variable name to be camel case (as per feedback on r70849).

13 years agoMore details on RELEASE-NOTES as per feedback on r70850.
Sean Colombo [Sun, 3 Oct 2010 04:28:17 +0000 (04:28 +0000)]
More details on RELEASE-NOTES as per feedback on r70850.

13 years agoInitialize $wgTexvc with $IP rather than relative to current working directory. Fixes...
Brion Vibber [Sun, 3 Oct 2010 02:01:02 +0000 (02:01 +0000)]
Initialize $wgTexvc with $IP rather than relative to current working directory. Fixes math parser tests when running with a cwd other than $IP when $wgTexvc isn't explicitly set.

13 years agoExtract common code in ResourceLoaderUserOptionsModule (sloppy copy-pasting of the...
Brion Vibber [Sun, 3 Oct 2010 01:03:10 +0000 (01:03 +0000)]
Extract common code in ResourceLoaderUserOptionsModule (sloppy copy-pasting of the originals looks like the cause of the bug fixed in r74145)

13 years agoFix broken r74177 because it needs a constant and address CR comment on r71412 proper...
Siebrand Mazeland [Sat, 2 Oct 2010 23:34:58 +0000 (23:34 +0000)]
Fix broken r74177 because it needs a constant and address CR comment on r71412 properly. Documented that 604800 is 7*24*3600

13 years agoUse 7*24*3600 instead of 604800.
Siebrand Mazeland [Sat, 2 Oct 2010 23:23:10 +0000 (23:23 +0000)]
Use 7*24*3600 instead of 604800.

Addressing style nitpick by Simetrical on r71412.

13 years agoFollow-up r74173: remove more PHP pre-5.1.0 comments, including two TODOs. Yay.
Siebrand Mazeland [Sat, 2 Oct 2010 22:49:41 +0000 (22:49 +0000)]
Follow-up r74173: remove more PHP pre-5.1.0 comments, including two TODOs. Yay.

13 years agoRemove comment related to PHP pre-5.1 version.
Siebrand Mazeland [Sat, 2 Oct 2010 22:45:28 +0000 (22:45 +0000)]
Remove comment related to PHP pre-5.1 version.

13 years agoRemove comments related to no longer existent and relevant compatibility function...
Siebrand Mazeland [Sat, 2 Oct 2010 22:42:44 +0000 (22:42 +0000)]
Remove comments related to no longer existent and relevant compatibility function for array_diff_key().

13 years agoRemove comment related to no longer supported PHP versions.
Siebrand Mazeland [Sat, 2 Oct 2010 22:41:44 +0000 (22:41 +0000)]
Remove comment related to no longer supported PHP versions.

13 years agoRemove some references to no longer supported PHP version.
Siebrand Mazeland [Sat, 2 Oct 2010 22:22:12 +0000 (22:22 +0000)]
Remove some references to no longer supported PHP version.

Also add a FIXME for a check in DefaultSettings.php and fix indentation in install-utils.inc.

13 years agoRelease notes for r73950
Platonides [Sat, 2 Oct 2010 22:17:41 +0000 (22:17 +0000)]
Release notes for r73950

13 years agoAnd while I'm a it:
Alexandre Emsenhuber [Sat, 2 Oct 2010 21:58:04 +0000 (21:58 +0000)]
And while I'm a it:
* Fixed E_STRICT about different signature of TextPassDumper::dump() and BackupDumper::dump()
* Add the possibility to show the help message...

13 years agoPer Platonides; follow-up r74158: XMLReader is included in PHP since 5.1.0
Alexandre Emsenhuber [Sat, 2 Oct 2010 21:51:44 +0000 (21:51 +0000)]
Per Platonides; follow-up r74158: XMLReader is included in PHP since 5.1.0

13 years agoMediaWiki even require PHP 5.1.0+ ;)
Alexandre Emsenhuber [Sat, 2 Oct 2010 21:40:43 +0000 (21:40 +0000)]
MediaWiki even require PHP 5.1.0+ ;)

13 years agofollow-up r74150 - empty() == bad.
Brian Wolff [Sat, 2 Oct 2010 21:35:00 +0000 (21:35 +0000)]
follow-up r74150 - empty() == bad.

13 years agoFix doc: $wgExtensionFunctions, not $wgExtensionSetupFunctions
Alexandre Emsenhuber [Sat, 2 Oct 2010 21:09:23 +0000 (21:09 +0000)]
Fix doc: $wgExtensionFunctions, not $wgExtensionSetupFunctions

13 years agoFix undefined variable notice if $wgHiddenPrefs[] = 'fancysig'.
Brian Wolff [Sat, 2 Oct 2010 20:36:23 +0000 (20:36 +0000)]
Fix undefined variable notice if $wgHiddenPrefs[] = 'fancysig'.

Use !empty($blah) since that is what the rest of the code is doing. This does
not change the behaviour in any way, only gets rid of the warning. Issue
discovered by jorenl on irc.

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2010...
Raimond Spekking [Sat, 2 Oct 2010 19:58:17 +0000 (19:58 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-10-02 19:45:00 UTC)

13 years agoFix botched up comments
Max Semenik [Sat, 2 Oct 2010 18:45:18 +0000 (18:45 +0000)]
Fix botched up comments

13 years agoFix logic error in IMS check introduced in r72940. Was sending 304 even for modified...
Niklas Laxström [Sat, 2 Oct 2010 16:54:53 +0000 (16:54 +0000)]
Fix logic error in IMS check introduced in r72940. Was sending 304 even for modified files

13 years agoFix personal user styles being broken since introduction in r73024
Niklas Laxström [Sat, 2 Oct 2010 16:11:44 +0000 (16:11 +0000)]
Fix personal user styles being broken since introduction in r73024

13 years agoFixed a doxygen warning
Alexandre Emsenhuber [Sat, 2 Oct 2010 14:23:26 +0000 (14:23 +0000)]
Fixed a doxygen warning

13 years agoRemoved trailing whitespaces
Alexandre Emsenhuber [Sat, 2 Oct 2010 13:45:35 +0000 (13:45 +0000)]
Removed trailing whitespaces

13 years agoBug 25338: fixed exception in Resource Loader
Max Semenik [Sat, 2 Oct 2010 10:18:48 +0000 (10:18 +0000)]
Bug 25338: fixed exception in Resource Loader

13 years agorm obsolete comment
Max Semenik [Sat, 2 Oct 2010 08:37:51 +0000 (08:37 +0000)]
rm obsolete comment

13 years agoremoved some unused variables
Alexandre Emsenhuber [Sat, 2 Oct 2010 08:31:55 +0000 (08:31 +0000)]
removed some unused variables

13 years agoFix for r74134: copy-paste error
Alexandre Emsenhuber [Sat, 2 Oct 2010 08:30:03 +0000 (08:30 +0000)]
Fix for r74134: copy-paste error

13 years agoremoved call to deprecated function dbsource() and a comment that mentioned it
Alexandre Emsenhuber [Sat, 2 Oct 2010 08:29:01 +0000 (08:29 +0000)]
removed call to deprecated function dbsource() and a comment that mentioned it

13 years ago__FUNCTION__ -> __METHOD__
Alexandre Emsenhuber [Sat, 2 Oct 2010 08:04:58 +0000 (08:04 +0000)]
__FUNCTION__ -> __METHOD__

13 years agoadded @file to the file description header
Alexandre Emsenhuber [Sat, 2 Oct 2010 07:57:43 +0000 (07:57 +0000)]
added @file to the file description header

13 years agoremoved trailing whitespaces
Alexandre Emsenhuber [Sat, 2 Oct 2010 07:40:54 +0000 (07:40 +0000)]
removed trailing whitespaces

13 years agoUncommented some used options; added the possibility to define $wgScriptPath
Alexandre Emsenhuber [Sat, 2 Oct 2010 07:39:17 +0000 (07:39 +0000)]
Uncommented some used options; added the possibility to define $wgScriptPath

13 years agoUpdate the Chinese conversion tables.
Philip Tzou [Sat, 2 Oct 2010 06:49:52 +0000 (06:49 +0000)]
Update the Chinese conversion tables.

13 years agoRevert r74117. Breaks the test. Using an internal request it doesn't fail with NeedTo...
Platonides [Fri, 1 Oct 2010 23:11:21 +0000 (23:11 +0000)]
Revert r74117. Breaks the test. Using an internal request it doesn't fail with NeedToken, but gives Success instead.

13 years agoRemove suite included twice in suite.xml
Platonides [Fri, 1 Oct 2010 22:59:57 +0000 (22:59 +0000)]
Remove suite included twice in suite.xml
Rename MediaWikiParserTestSuite class to MediaWikiParserTest. This way, it matches its file basename, which makes phpunit not to consider, when loading MediaWikiParserText.php, the ParserUnitTest (coming from ParserHelpers.php require) as a standalone test class, which is what was producing the warning: No tests found in class "ParserUnitTest".

All tests pass for me now:
Tests: 752, Assertions: 3706, Incomplete: 2.

Incomplete tests are testApiListPages() and testWatchRollback()

13 years agoFollow up r73976. Made the test do not depend on $wgUsePathInfo being true and $wgArt...
Platonides [Fri, 1 Oct 2010 22:59:04 +0000 (22:59 +0000)]
Follow up r73976. Made the test do not depend on $wgUsePathInfo being true and $wgArticlePath the default.

13 years agoMake user 'sysop', so we get delete/protect token, makes testGetToken pass (maybe...
Sam Reed [Fri, 1 Oct 2010 22:32:56 +0000 (22:32 +0000)]
Make user 'sysop', so we get delete/protect token, makes testGetToken pass (maybe not the best fix.. Have 2 users..? Or check rights or something)

13 years agoFixup testApiLoginBadPass per r74113, still failing, it's checking for "NeedToken...
Sam Reed [Fri, 1 Oct 2010 22:27:56 +0000 (22:27 +0000)]
Fixup testApiLoginBadPass per r74113, still failing, it's checking for "NeedToken" at the end of the test, but "success" is being returned, which seems wrong to me...

13 years agoFixed mistake in r73686 where I wrapped CSS in a JavaScript conditional.
Trevor Parscal [Fri, 1 Oct 2010 22:13:29 +0000 (22:13 +0000)]
Fixed mistake in r73686 where I wrapped CSS in a JavaScript conditional.

13 years agoFixed typo in r73673, thank for spotting that Roan!
Trevor Parscal [Fri, 1 Oct 2010 22:06:03 +0000 (22:06 +0000)]
Fixed typo in r73673, thank for spotting that Roan!

13 years agoSwitch testApiLoginGoodPass to use doApiRequest
Sam Reed [Fri, 1 Oct 2010 21:50:52 +0000 (21:50 +0000)]
Switch testApiLoginGoodPass to use doApiRequest

Submitting for IRC sanity check :D

13 years agoFixed bug that caused version numbers to be output incorectly. JavaScript's Array...
Trevor Parscal [Fri, 1 Oct 2010 21:50:32 +0000 (21:50 +0000)]
Fixed bug that caused version numbers to be output incorectly. JavaScript's Array.prototype.join() uses "," as a default value, not "".

13 years agoInstaller: added an environment check for SQLite search capabilities
Max Semenik [Fri, 1 Oct 2010 21:06:32 +0000 (21:06 +0000)]
Installer: added an environment check for SQLite search capabilities

13 years agoBe sure that MW_NO_SETUP is defined before executing updates, this is not always...
Alexandre Emsenhuber [Fri, 1 Oct 2010 20:56:39 +0000 (20:56 +0000)]
Be sure that MW_NO_SETUP is defined before executing updates, this is not always defined at that point

13 years agoRemoved double-encoding of dependencies and group for custom loader scripts.
Trevor Parscal [Fri, 1 Oct 2010 20:46:42 +0000 (20:46 +0000)]
Removed double-encoding of dependencies and group for custom loader scripts.

13 years agoFix for r72553: DatabaseUpdater::execute() doesn't exist...
Alexandre Emsenhuber [Fri, 1 Oct 2010 20:39:07 +0000 (20:39 +0000)]
Fix for r72553: DatabaseUpdater::execute() doesn't exist...

13 years agoAdded group param to loader script wrapping.
Trevor Parscal [Fri, 1 Oct 2010 20:26:18 +0000 (20:26 +0000)]
Added group param to loader script wrapping.

13 years agoMinor followup to r74095, remove method as all it does is call it's parent (Thanks...
Sam Reed [Fri, 1 Oct 2010 20:17:01 +0000 (20:17 +0000)]
Minor followup to r74095, remove method as all it does is call it's parent (Thanks to Nikerabbit on IRC)

Remove leading tab from ApiMove

13 years ago* (bug 25248) API: paraminfo errors with certain modules
Sam Reed [Fri, 1 Oct 2010 20:12:50 +0000 (20:12 +0000)]
* (bug 25248) API: paraminfo errors with certain modules

Added a needsToken() function, rather than calling getTokenSalt, which can throw silly errors due to dependencies on parameters

13 years agoRemove error from ApiUserrights getPossibleErrors, it doesn't explicitally throw...
Sam Reed [Fri, 1 Oct 2010 19:37:38 +0000 (19:37 +0000)]
Remove error from ApiUserrights getPossibleErrors, it doesn't explicitally throw an error for missing user param. Does some other fancy errors from the special page. We should have a way for that to tell us it throws some errors....

Remove trailing whitespace

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2010...
Raimond Spekking [Fri, 1 Oct 2010 19:37:33 +0000 (19:37 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-10-01 19:27:00 UTC)
Full export after separation of countries/states

13 years agoBreak lines at 80 chars
Alexandre Emsenhuber [Fri, 1 Oct 2010 19:32:49 +0000 (19:32 +0000)]
Break lines at 80 chars

13 years agoFollow-up r72872: added RELEASE-NOTES entry
Alexandre Emsenhuber [Fri, 1 Oct 2010 19:29:37 +0000 (19:29 +0000)]
Follow-up r72872: added RELEASE-NOTES entry

13 years agoImproved on r73046 by removing asumption of $ === jQuery.
Trevor Parscal [Fri, 1 Oct 2010 19:22:06 +0000 (19:22 +0000)]
Improved on r73046 by removing asumption of $ === jQuery.

13 years agoImproves on r73032 by making more consistent use of escape sequences.
Trevor Parscal [Fri, 1 Oct 2010 19:20:27 +0000 (19:20 +0000)]
Improves on r73032 by making more consistent use of escape sequences.