lhc/web/wiklou.git
13 years agoFix Bug #28344 - “Links doesn't work inside collapsible toggles”
Mark A. Hershberger [Thu, 16 Jun 2011 22:27:22 +0000 (22:27 +0000)]
Fix Bug #28344 - “Links doesn't work inside collapsible toggles”
Patch from mybugs.mail

    If a link is added inside of a collapsible toggle and a user click on it, the
    target page should be opened.
    …
    The attached patch was tested locally and fixes this bug (clicking outside the
    link toogles the collapsed content, and clicking on the link opens the target
    page).

    PS: It is the same code which was used to fix the problem on Commons.

    http://commons.wikimedia.org/w/index.php?diff=45383826&oldid=45265712

13 years agoRelease-notes for r90234
Krinkle [Thu, 16 Jun 2011 21:22:51 +0000 (21:22 +0000)]
Release-notes for r90234

13 years ago(bug 29441) Expose CapitalLinks config in JS to allow modules to properly handle...
Krinkle [Thu, 16 Jun 2011 21:20:05 +0000 (21:20 +0000)]
(bug 29441) Expose CapitalLinks config in JS to allow modules to properly handle titles on case-sensitive wikis.

This brings us one step closer towards:
(bug 29397) Implement mw.Title module in core

13 years agoRevert r90232.
Krinkle [Thu, 16 Jun 2011 21:18:40 +0000 (21:18 +0000)]
Revert r90232.

13 years agoImplement mw.Title in core
Krinkle [Thu, 16 Jun 2011 21:16:50 +0000 (21:16 +0000)]
Implement mw.Title in core
* Based on UploadWizard/resources/mw.Title.js
* Refactored to use local scope and prototypes instead of per-instance private scope (less references, faster instantiation)
* Fix potential ReferenceError in the check for wgArticlePath (inline if statements will fail to evaluate for undeclared variables). Using mw.config instead
* The following were not ported because they are or were already redundant and/or merged with another method:
-- setNameText (redundant with the improved setName)
-- setPrefix (redundant wit the improved setNamespace)
* Ported all jasmine tests to QUnit. Left them exactly the same to make sure it's compatible with UploadWizard. Perhaps I'll expand or adjust the suite later to be less file-specific, but for now make sure it's compatible and the same.

@todo FIXME

* Removed assumption that every title has a namespace prefix in it by creating a separate RegExp when there is a namespace given

** Fixes strip-bug in cases where a namespace appears to be part of a title when the namespace is also given: "Project:User:Foobar"

new mw.Title( 'User:Foobar', 4 ).toString()
> 'Project:Foobar'

** Fixes a thrown exception in case a colon is part of the title (colons are valid in MediaWiki pagenames!)

new mw.Title( 'Just some:Random page')
> Error: mw.Title> Unrecognized canonical namespace: just_some

* Added check for capitalLinks et (wasn't possible before due to bug X)

** Prevents breakages on wiktionary and other wikis with case sensitivity.

13 years agoCopy teardownUploadDir(),deleteFiles(),deleteDirs() from parserTest.inc Move down...
Platonides [Thu, 16 Jun 2011 21:07:37 +0000 (21:07 +0000)]
Copy teardownUploadDir(),deleteFiles(),deleteDirs() from parserTest.inc Move down teardownGlobals()
This almost fixes the issue of hundreds of leaking mwParser-*-images files at temp dir.
For some unknown reason, there's still one instance left, though.

PS: I thought I had committed this time ago...

13 years agoMark as needing a db.
Platonides [Thu, 16 Jun 2011 21:06:11 +0000 (21:06 +0000)]
Mark as needing a db.
Remove double data insertion

13 years agoRemove trailing newline from pass, which is very unlikely to be intended.
Platonides [Thu, 16 Jun 2011 21:01:52 +0000 (21:01 +0000)]
Remove trailing newline from pass, which is very unlikely to be intended.

13 years agoAllow to provide the db password inside a file instead of using
Platonides [Thu, 16 Jun 2011 20:58:12 +0000 (20:58 +0000)]
Allow to provide the db password inside a file instead of using
the command line, so that it isn't exposed in the process list.

Sadly, use of /dev/stdin or <(process) doesn't work in Linux,
since they are shown as symlinks to pipe:[12345678] and php
dereferences all of them. It has to be a real file.
However, such constructs work in Solaris, where they are
presented as character devices.

13 years agoFix indenting
Sam Reed [Thu, 16 Jun 2011 20:57:31 +0000 (20:57 +0000)]
Fix indenting

13 years agoPer ^demon, added entry for r87557 (removal of LogPageValidTypes, LogPageLogName...
Alexandre Emsenhuber [Thu, 16 Jun 2011 20:21:53 +0000 (20:21 +0000)]
Per ^demon, added entry for r87557 (removal of LogPageValidTypes, LogPageLogName, LogPageLogHeader and LogPageActionText hooks)

13 years agoGroupped URL-related functions
Alexandre Emsenhuber [Thu, 16 Jun 2011 19:09:03 +0000 (19:09 +0000)]
Groupped URL-related functions

13 years ago* (bug 29426) Fix wrong use of Block::load's second parameter in BlockTest
Brion Vibber [Thu, 16 Jun 2011 17:58:26 +0000 (17:58 +0000)]
* (bug 29426) Fix wrong use of Block::load's second parameter in BlockTest

It was accidentally passing a username where it should have passed a user ID, causing PostgreSQL's stricter comparisons to fail, while MySQL's allowed it to run without complaint but returned bad results.
Of course that bug got hidden by the test.... testing the wrong thing... :)

Now correctly loads using the user id instead of name, checks the proper return values, and actually compares the right object.

13 years agoRemoved usage of error suppression operator
Alexandre Emsenhuber [Thu, 16 Jun 2011 17:38:26 +0000 (17:38 +0000)]
Removed usage of error suppression operator

13 years ago* (bug 29091) Fix form of native name for Ossetic language (Иронау -> Ирон)
Brion Vibber [Thu, 16 Jun 2011 17:34:40 +0000 (17:34 +0000)]
* (bug 29091) Fix form of native name for Ossetic language (Иронау -> Ирон)

13 years agoRevert r88988
Platonides [Thu, 16 Jun 2011 16:54:06 +0000 (16:54 +0000)]
Revert r88988

13 years agoFixes for r90105, r90193:
Tim Starling [Thu, 16 Jun 2011 05:52:16 +0000 (05:52 +0000)]
Fixes for r90105, r90193:
* Actually removed $wgProto.
* Per Aryeh's suggestions on the future of $wgServer: made $wgServer detection in DefaultSettings.php more permanent by merging it with the new code from r90105. This means that bug 14977 is properly fixed now.
* Require entry points to set up the autoloader before including DefaultSettings.php. Comments on bug 14977 indicate that at some point in the past, this may have broken something. Anything that breaks now should just be fixed, we need the autoloader. Tested the most common entry points.
* Since the detection code has moved from Installer to WebRequest, I also moved the relevant test file and updated the test. The function under test is now public static, so r90154 is superseded.

13 years agoRemoved $wgProto. Previously, setting this undocumented global variable to anything...
Tim Starling [Thu, 16 Jun 2011 05:13:29 +0000 (05:13 +0000)]
Removed $wgProto. Previously, setting this undocumented global variable to anything other than the part of $wgServer before the first colon would cause various things to subtly screw up. Similarly, forgetting to set it when you override $wgServer in LocalSettings.php would break things too.

Exposing it in the default LocalSettings.php as I did in r90105 was not a good solution, really the only way to avoid breakage is to just get the protocol from $wgServer whenever you need the protocol.

Fixed $wgCookieSecure so that it will be enabled automatically if the user sets $wgServer to an https URL in LocalSettings.php. Added documentation for other cookie-related globals.

Grep indicates that $wgProto is not used by any extensions. $wgCookieSecure is used, hence the need for the Setup.php patch.

13 years agoFollowup to r89452, remove ftp test cases since Http::isValidUri() doesn't do ftp...
Chad Horohoe [Thu, 16 Jun 2011 02:58:00 +0000 (02:58 +0000)]
Followup to r89452, remove ftp test cases since Http::isValidUri() doesn't do ftp anymore

13 years agoAnother stub test file...this one has been like this since r72258
Chad Horohoe [Wed, 15 Jun 2011 23:24:23 +0000 (23:24 +0000)]
Another stub test file...this one has been like this since r72258

13 years agoAnother empty "Has not been implemented" test
Chad Horohoe [Wed, 15 Jun 2011 23:17:11 +0000 (23:17 +0000)]
Another empty "Has not been implemented" test

13 years agoAdd dummy assertion to shut up phpunit yelling about it
Chad Horohoe [Wed, 15 Jun 2011 23:15:36 +0000 (23:15 +0000)]
Add dummy assertion to shut up phpunit yelling about it

13 years agoFollowup 90161 (which breaks the test). Need to hack around to avoid a reload from db.
Platonides [Wed, 15 Jun 2011 21:32:08 +0000 (21:32 +0000)]
Followup 90161 (which breaks the test). Need to hack around to avoid a reload from db.

13 years agoDocument from r87129 summary
Platonides [Wed, 15 Jun 2011 21:23:47 +0000 (21:23 +0000)]
Document from r87129 summary

13 years agor87164 removed mDataLoaded and broke this test databaseless nature.
Platonides [Wed, 15 Jun 2011 21:22:08 +0000 (21:22 +0000)]
r87164 removed mDataLoaded and broke this test databaseless nature.

13 years agoMake sure to die if there are more MediaWikiLangTestCase::tearDowns than setUp()s...
Platonides [Wed, 15 Jun 2011 21:07:12 +0000 (21:07 +0000)]
Make sure to die if there are more MediaWikiLangTestCase::tearDowns than setUp()s (such as r90150 & r90155)

13 years agoFollow-up r90150, another parent::setUp missing.
Platonides [Wed, 15 Jun 2011 21:03:08 +0000 (21:03 +0000)]
Follow-up r90150, another parent::setUp missing.

13 years agoFollowup r90105, ReflectionMethod::setAccessible() requires PHP 5.3.2. Mark incomplet...
Chad Horohoe [Wed, 15 Jun 2011 20:57:13 +0000 (20:57 +0000)]
Followup r90105, ReflectionMethod::setAccessible() requires PHP 5.3.2. Mark incomplete otherwise

13 years agoFollowup to r90090 -- thou shalt add parent:: calls to both overridden tearDown ...
Brion Vibber [Wed, 15 Jun 2011 20:51:17 +0000 (20:51 +0000)]
Followup to r90090 -- thou shalt add parent:: calls to both overridden tearDown *and* overridden setUp ()

Had been resulting in fatal errors when running TimeAdjustTest, due to trying to use an old $wgContLang value that had never gotten saved properly because the parent class setUp() was not called.

13 years agoFix for BlockTest -- when setup ran multiple times, the block entry wouldn't get...
Brion Vibber [Wed, 15 Jun 2011 20:43:24 +0000 (20:43 +0000)]
Fix for BlockTest -- when setup ran multiple times, the block entry wouldn't get re-saved and we'd end up with null or 0 as our block id.
By first removing any matching block, we can re-insert it at will and have a fresh working block to test.

13 years agoAnother partial fix for Block test: update $this->mId on successful Block::insert()
Brion Vibber [Wed, 15 Jun 2011 20:42:16 +0000 (20:42 +0000)]
Another partial fix for Block test: update $this->mId on successful Block::insert()

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Wed, 15 Jun 2011 20:04:37 +0000 (20:04 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-06-15 19:51:00 UTC)

13 years agoFix for partial regression in r84534: Block::newFromId was no longer handling the...
Brion Vibber [Wed, 15 Jun 2011 19:05:25 +0000 (19:05 +0000)]
Fix for partial regression in r84534: Block::newFromId was no longer handling the case where there was no matching row correctly. Now returns null.

This bug was showing up in test results like this:

  BlockTest::testInitializerFunctionsReturnCorrectBlock
  Trying to get property of non-object

  /home/ci/cruisecontrol-bin-2.8.3/projects/mw/source/includes/Block.php:340
  /home/ci/cruisecontrol-bin-2.8.3/projects/mw/source/includes/Block.php:365
  /home/ci/cruisecontrol-bin-2.8.3/projects/mw/source/includes/Block.php:118
  /home/ci/cruisecontrol-bin-2.8.3/projects/mw/source/tests/phpunit/includes/BlockTest.php:60
  /home/ci/cruisecontrol-bin-2.8.3/projects/mw/source/tests/phpunit/MediaWikiTestCase.php:60
  /home/ci/cruisecontrol-bin-2.8.3/projects/mw/source/tests/phpunit/MediaWikiPHPUnitCommand.php:20
  /home/ci/cruisecontrol-bin-2.8.3/projects/mw/source/tests/phpunit/phpunit.php:60

However, that only triggers because the actual test is failing -- it's expecting to get a return back. This can only be reproduce when using the suite.xml configuration file, and not when running the BlockTest standalone.

13 years agoAlso check indexes in SQLite upgrade tests
Max Semenik [Wed, 15 Jun 2011 17:59:02 +0000 (17:59 +0000)]
Also check indexes in SQLite upgrade tests

13 years agoSQLite support for r86485
Max Semenik [Wed, 15 Jun 2011 17:57:00 +0000 (17:57 +0000)]
SQLite support for r86485

13 years agoBroke some long lines
Aaron Schulz [Wed, 15 Jun 2011 17:03:18 +0000 (17:03 +0000)]
Broke some long lines

13 years agoPer Brion, follow-up r86784: doucment that wfMsg() and related also accept message...
Alexandre Emsenhuber [Wed, 15 Jun 2011 16:33:13 +0000 (16:33 +0000)]
Per Brion, follow-up r86784: doucment that wfMsg() and related also accept message parameters as an array in the second parameter

13 years ago* (bug 28798) Set $wgServer in the default LocalSettings.php
Tim Starling [Wed, 15 Jun 2011 07:35:47 +0000 (07:35 +0000)]
* (bug 28798) Set $wgServer in the default LocalSettings.php
* (bug 14977) When detecting $wgServer, treat IPv6 addresses in $_SERVER['SERVER_NAME'] etc. in a sensible way.
* Tests for the new functions in IP.php and Installer.php

13 years agoUse camelCase, as pointed out by siebrand on r89731
Chad Horohoe [Wed, 15 Jun 2011 01:34:23 +0000 (01:34 +0000)]
Use camelCase, as pointed out by siebrand on r89731

13 years agoUsing true instead of calling isMainPage() again.
Krinkle [Wed, 15 Jun 2011 01:11:16 +0000 (01:11 +0000)]
Using true instead of calling isMainPage() again.

(Follow-up r90099 CR, Poke r87212)

13 years agoRevert r86764, r89134, r86827 -- added a second opaque boolean parameter to Linker...
Brion Vibber [Tue, 14 Jun 2011 23:50:40 +0000 (23:50 +0000)]
Revert r86764, r89134, r86827 -- added a second opaque boolean parameter to Linker::commentBlock() which appeared to mostly just turn it into Linker::formatComment().

commentBlock() exists for the sole purpose of embedding a comment into parentheses if it exists so you can append it to a line of text -- if you're not putting stuff in parentheses, don't use commentBlock() because you're not generating a parenthesized comment block.
Opaque boolean parameters are also very poor form, especially when tacking on multiple ones. There was already a nasty optional '$local' boolean param, forcing all uses of this other parameter to add *two* parameters, making illegible stuff like 'false, false'.

13 years agoOnly define 'isMainPage' if we are on the main page, the new mw.config library is...
Krinkle [Tue, 14 Jun 2011 23:29:45 +0000 (23:29 +0000)]
Only define 'isMainPage' if we are on the main page, the new mw.config library is specifically built for this efficient way of exporting variables as it will prevent any TypeError exceptions and simply return null (it's not a real global anymore).

This is a follow-up on Brion's CR at r87212.

13 years agoMerge conflict fix from r90096.
Krinkle [Tue, 14 Jun 2011 22:51:47 +0000 (22:51 +0000)]
Merge conflict fix from r90096.

13 years agowgNamespaceIds in JavaScript didn't include canonical namespaces. Adding them to...
Krinkle [Tue, 14 Jun 2011 22:49:38 +0000 (22:49 +0000)]
wgNamespaceIds in JavaScript didn't include canonical namespaces. Adding them to it, in a similar way that Language->getNamespaceIds does it for the localized namespaces and the namespace aliases.

Fixes bug in mw.Title constructor when .setNamespace() is used with a canonical namespace on a non-English content-language wiki.
Example: On a German wiki "var foo = new mw.Title('bar').setNamespace('file')" will throw an Error, as wgNamespaceIds only contains localized namespaces + namespace aliases, not canonical ones (in contrary to the assumption that has been made in various places).

(bug 25375) Add canonical namespaces to JavaScript "wgNamespaceIds"

13 years agoFollowup to r86347, r86797: change SpecialUndelete->mFile to mFilename to remove...
Brion Vibber [Tue, 14 Jun 2011 21:47:23 +0000 (21:47 +0000)]
Followup to r86347, r86797: change SpecialUndelete->mFile to mFilename to remove conflict with SpecialPage->mFile which carries different data and is now private.

13 years agofix for bug29371 . regex wordwrap with UTF8: do not use \b metacharacter. The problem...
Thomas Gries [Tue, 14 Jun 2011 21:42:25 +0000 (21:42 +0000)]
fix for bug29371 . regex wordwrap with UTF8: do not use \b metacharacter. The problem is that JavaScript recognizes word boundaries only before/after ASCII letters (and numbers/underscore)

13 years agoBlockTest changes $wgContLang, too.
Platonides [Tue, 14 Jun 2011 21:27:07 +0000 (21:27 +0000)]
BlockTest changes $wgContLang, too.

13 years agoThou shall call parent::tearDown(), MediaWikiLangTestCase child.
Platonides [Tue, 14 Jun 2011 21:21:26 +0000 (21:21 +0000)]
Thou shall call parent::tearDown(), MediaWikiLangTestCase child.
Follow up r87210. This has been hurting my tests for weeks.

Made TimeAdjustTest extend MediaWikiLangTestCase.

13 years agomakeCollapsible fix for jQuery 1.6.1
Krinkle [Tue, 14 Jun 2011 21:20:30 +0000 (21:20 +0000)]
makeCollapsible fix for jQuery 1.6.1
* Pre 1.6, jQuery returned an empty string for attributes that were not set. Although in a way that was wrong, it was the way it was. From jQuery documentation: "As of jQuery 1.6, the .attr() method returns <code>undefined</code> for attributes that have not been set." [1]
** Fixing makeCollapsible by removing empty-string checks and casting to boolean instead
* Wrapped a long line

[1] http://api.jquery.com/attr/

(jQuery 1.6.1 upgrade was in r89866)

13 years agoFix one bad doc comment entry from r86848
Brion Vibber [Tue, 14 Jun 2011 21:10:33 +0000 (21:10 +0000)]
Fix one bad doc comment entry from r86848

13 years agoRevert r86897 in wfMakeUrlIndex() and solve the issue in wfParseUrl()
Platonides [Tue, 14 Jun 2011 20:57:42 +0000 (20:57 +0000)]
Revert r86897 in wfMakeUrlIndex() and solve the issue in wfParseUrl()

13 years agoFollowup to r86942 per CR comments: instanceof Array -> $.isArray (safer, more cross...
Brion Vibber [Tue, 14 Jun 2011 20:55:39 +0000 (20:55 +0000)]
Followup to r86942 per CR comments: instanceof Array -> $.isArray (safer, more cross-browser)

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Tue, 14 Jun 2011 20:52:22 +0000 (20:52 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-06-14 20:30:00 UTC)

13 years agoIncreasing time-out (testswarm reports false positives from swarmiers with a slower...
Krinkle [Tue, 14 Jun 2011 20:02:51 +0000 (20:02 +0000)]
Increasing time-out (testswarm reports false positives from swarmiers with a slower connection). Follow-up r89247

13 years agoRemove redundant mediawiki.util directory
Krinkle [Tue, 14 Jun 2011 17:44:02 +0000 (17:44 +0000)]
Remove redundant mediawiki.util directory

13 years agoPer Nikerabbit, fixes for r89176:
Alexandre Emsenhuber [Tue, 14 Jun 2011 15:08:52 +0000 (15:08 +0000)]
Per Nikerabbit, fixes for r89176:
* correct variable name in preprocessorFuzzTest.php
* Added type hints in Parser's test methods

13 years agoFU r89545: change broke api watching by switching watch and unwatch around.
Niklas Laxström [Tue, 14 Jun 2011 13:10:26 +0000 (13:10 +0000)]
FU r89545: change broke api watching by switching watch and unwatch around.
Also added zero to the article constructor..how many subtle bugs we need to make default article constructor sane?

13 years agoRevert r89925, setting disable_functions in php.ini is definitely the wrong way to...
Tim Starling [Tue, 14 Jun 2011 06:07:20 +0000 (06:07 +0000)]
Revert r89925, setting disable_functions in php.ini is definitely the wrong way to fix hash mismatches.

13 years agoMaintenance script for exporting the preprocessed wikitext from installer document...
Tim Starling [Tue, 14 Jun 2011 03:09:49 +0000 (03:09 +0000)]
Maintenance script for exporting the preprocessed wikitext from installer document pages, plus relevant refactoring. For use in updating mediawiki.org/wiki/Release_notes/1.17 etc.

13 years ago* Remove @static from the last few places it's left in core. Please don't use this...
Chad Horohoe [Tue, 14 Jun 2011 01:56:55 +0000 (01:56 +0000)]
* Remove @static from the last few places it's left in core. Please don't use this silly annotation anymore, that's what the static keyword is for.
* Enforce protected on SpecialAllPages::getNamespaceKeyAndText(), it's not @private like the comment implies
* Drop User::getMaxID(), nothing uses it

13 years agoFixing two broken tests in jquery.autoEllipsis.js for IE6 and Opera:
Krinkle [Tue, 14 Jun 2011 01:38:26 +0000 (01:38 +0000)]
Fixing two broken tests in jquery.autoEllipsis.js for IE6 and Opera:
* Mysterious test failure in IE6 in jquery.autoEllipsis.js finally figured. Way simpler than we thought. In IE6 width behaves like min-width, so adding one or two characters to a <span> with white-space:nowrap inside a <div> with a  fixed width will NOT (as other browsers do) make the span-width wider than the div-width, instead the div-width will happily increase as well.
* 2nd breakage fixed: In some cases adding 1 character did not widen the span, probably because of some edge case with narrow fonts and characters like "i" which are so small that they're just on the edge. Changed the test to add 2 characters instead of 1 to overcome this problem.

This new version of the test suite was already pushed to TestSwarm from my own account (instead of the MediaWiki-SVN account) and confirmed to work in IE6. Yay!

Not-pretty: Browser-sniffing for IE6 in a unit test..

13 years agoConvert a couple of wfDie()s to exceptions
Chad Horohoe [Mon, 13 Jun 2011 23:43:01 +0000 (23:43 +0000)]
Convert a couple of wfDie()s to exceptions

13 years agoRewrite compressOld to subclass maintenanance
Chad Horohoe [Mon, 13 Jun 2011 23:28:59 +0000 (23:28 +0000)]
Rewrite compressOld to subclass maintenanance
* Dropped compressOld.inc
* Moved LS_INDIVIDUAL, LS_CHUNKED to class constants
* Drop unused and undocumented 'h' parameter
* Added long forms for all the short parameters
* All of this so I could get rid of the wfDie()

13 years agoStart on test cases for bug 6672 (Exif orientation support), follow up to r79845.
Brion Vibber [Mon, 13 Jun 2011 22:13:38 +0000 (22:13 +0000)]
Start on test cases for bug 6672 (Exif orientation support), follow up to r79845.

Unfortunately seem to be hitting a wall right off at checking width & height; BitmapHandler reports back the pre-rotation width & height, leading to the oddity that a file that's clearly 1024px tall and 768px wide reports itself as 1024px wide and 768px tall.
Haven't gotten to generating rotated output to confirm file size. :)

Marked test case as broken pending fix so it doesn't add to surprise regressions in test reports.

13 years agoRm some more completely incomplete tests. If you're not going to add the test, don...
Chad Horohoe [Mon, 13 Jun 2011 21:55:22 +0000 (21:55 +0000)]
Rm some more completely incomplete tests. If you're not going to add the test, don't add to suite execution time by adding empty tests like this

13 years agoDrop suite full of incomplete tests. Tired of it cluttering my runs
Chad Horohoe [Mon, 13 Jun 2011 21:49:20 +0000 (21:49 +0000)]
Drop suite full of incomplete tests. Tired of it cluttering my runs

13 years agoFollowup r89562, use 'feedformat' not 'feed'
Sam Reed [Mon, 13 Jun 2011 21:35:23 +0000 (21:35 +0000)]
Followup r89562, use 'feedformat' not 'feed'

13 years ago(no commit message)
Krinkle [Mon, 13 Jun 2011 20:17:39 +0000 (20:17 +0000)]

13 years agoavoid test being marked as incomplete due to lack of assertions
Max Semenik [Mon, 13 Jun 2011 19:22:52 +0000 (19:22 +0000)]
avoid test being marked as incomplete due to lack of assertions

13 years ago(bug 28556) Remove MacBinary
Krinkle [Mon, 13 Jun 2011 19:00:49 +0000 (19:00 +0000)]
(bug 28556) Remove MacBinary
* IE5 for Mac is history.

13 years agoAdded: ActionBeforeFormDisplay, ActionModifyFormFields, ExtensionTypes, MaintenanceRe...
Alexandre Emsenhuber [Mon, 13 Jun 2011 14:55:03 +0000 (14:55 +0000)]
Added: ActionBeforeFormDisplay, ActionModifyFormFields, ExtensionTypes, MaintenanceRefreshLinksInit and SpecialPasswordResetOnSubmit
Removed: AfterUserMessage, FormatUserMessage, MathAfterTexvc, SetupUserMessageArticle and UserLoginMailPassword

13 years agoresinserted context.data.prevText = context.data..val(); which was accidentially...
Thomas Gries [Mon, 13 Jun 2011 11:32:04 +0000 (11:32 +0000)]
resinserted context.data.prevText = context.data..val(); which was accidentially dropped

13 years agofollow up patch to r89950 r89952 r89953 r89955 : moved div clearing inside call back...
Thomas Gries [Mon, 13 Jun 2011 11:16:31 +0000 (11:16 +0000)]
follow up patch to r89950 r89952 r89953 r89955 : moved div clearing inside call back function maybeFetch so that this is also done when coming from timeouts

13 years agoessage=corrected my mistake when comparing if textbox length is empty, or not.
Thomas Gries [Mon, 13 Jun 2011 09:56:54 +0000 (09:56 +0000)]
essage=corrected my mistake when comparing if textbox length is empty, or not.

13 years agocorrected comment
Thomas Gries [Mon, 13 Jun 2011 09:43:19 +0000 (09:43 +0000)]
corrected comment

13 years agocorrected comment
Thomas Gries [Mon, 13 Jun 2011 09:41:02 +0000 (09:41 +0000)]
corrected comment

13 years agofix for bug29368 which may have consequences. Please code reviewers, pls. check for...
Thomas Gries [Mon, 13 Jun 2011 09:38:06 +0000 (09:38 +0000)]
fix for bug29368 which may have consequences. Please code reviewers, pls. check for potential side effects - I cannot detect any, currently.

13 years ago* Fix I18nTags #languagename to use ParserOptions::getUserLang()
Niklas Laxström [Mon, 13 Jun 2011 07:47:39 +0000 (07:47 +0000)]
* Fix I18nTags #languagename to use ParserOptions::getUserLang()
* Fix ParserOptions::getUserLang() to return code as documented

13 years agoReplacing strictEqual-assertion with a more useful QUnit.push that includes the expec...
Krinkle [Mon, 13 Jun 2011 00:47:15 +0000 (00:47 +0000)]
Replacing strictEqual-assertion with a more useful QUnit.push that includes the expected and actual values in the html output. This way debugging problems from the TestSwarm will be easier.

This way we end up with:
"Expected: > 100, Result: 99"
instead of:
"Expected: true, Result: false"
which could virtually mean anything (even null, undefined, string, array, you name it)

* Also fixed issue in jquery.colorUtil.js

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Sun, 12 Jun 2011 21:05:54 +0000 (21:05 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-06-12 22:40:00 UTC)

13 years agoChanged some magic __get method calls to accessors, were throwing notices
Alexandre Emsenhuber [Sun, 12 Jun 2011 19:09:14 +0000 (19:09 +0000)]
Changed some magic __get method calls to accessors, were throwing notices

13 years agoMoved action=deletetrackback and action=markpatrolled to Action class.
Alexandre Emsenhuber [Sun, 12 Jun 2011 18:46:07 +0000 (18:46 +0000)]
Moved action=deletetrackback and action=markpatrolled to Action class.
Also fixed order in DefaultSettings.php

13 years agosafer check if mhash is available (and I'm about to make it unavailable by disabling...
Ariel Glenn [Sun, 12 Jun 2011 12:02:53 +0000 (12:02 +0000)]
safer check if mhash is available (and I'm about to make it unavailable by disabling the fn in the php.ini for lucid builds)

13 years agoUpdate Chinese conversion tables.
Philip Tzou [Sun, 12 Jun 2011 08:02:04 +0000 (08:02 +0000)]
Update Chinese conversion tables.

13 years agoRemove resize/arrow cursors from jquery.makeCollapsible
Krinkle [Sun, 12 Jun 2011 00:17:02 +0000 (00:17 +0000)]
Remove resize/arrow cursors from jquery.makeCollapsible
* In Safari they look nice (a visual clue which direction we're heading on-click) but on other browsers there is only a general arrow-icon that points both up and down, and other browsers have an even weirder cursor for this. Summarized: It's inconsistent and redundant with the text-label we already have.

(Poke r79083 CR)

13 years agoRemove $wgCheckCopyrightUpload from DefaultSettings.php since the feature was removed...
Brian Wolff [Sat, 11 Jun 2011 21:10:26 +0000 (21:10 +0000)]
Remove $wgCheckCopyrightUpload from DefaultSettings.php since the feature was removed about 5 years ago

Looks like the feature was partially removed back in r10168. In any case, its long gone out of trunk now.

13 years agosqlite.php: don't fail after --check-syntax on a non-SQLite DB
Max Semenik [Sat, 11 Jun 2011 18:45:56 +0000 (18:45 +0000)]
sqlite.php: don't fail after --check-syntax on a non-SQLite DB

13 years agoFix jquery.tabIndex even more.
Krinkle [Sat, 11 Jun 2011 10:56:54 +0000 (10:56 +0000)]
Fix jquery.tabIndex even more.
* Discovered through TestSwarm. Aside from IE6/IE7, which already needed extra checking, when IE6/IE7 is on Windows NT 5.2, it can also return NaN.

13 years agomediawiki.util.test.js: IE7 doesn't expose the CSSStyleSheet publicly (like it doesn...
Krinkle [Sat, 11 Jun 2011 10:37:39 +0000 (10:37 +0000)]
mediawiki.util.test.js: IE7 doesn't expose the CSSStyleSheet publicly (like it doesn't for many). Checking object type instead.

13 years agoAnd I forgot to commit this file in r89874
Alexandre Emsenhuber [Sat, 11 Jun 2011 08:40:35 +0000 (08:40 +0000)]
And I forgot to commit this file in r89874

13 years ago* Made Special:RevisionDelete use the local variables stored in the RequestContext...
Alexandre Emsenhuber [Sat, 11 Jun 2011 08:30:19 +0000 (08:30 +0000)]
* Made Special:RevisionDelete use the local variables stored in the RequestContext object instead of global ones and removed the $skin member
* Also updated classes in includes/revisiondelete that were using the $skin member of Special:RevisionDelete
* Handle action=revisiondelete (or rather action=historysubmit&revisiondelete=1) with an Action object that sets the RequestContext object of the SpecialPage object, and in this case get the target Title object through the context instead of $wgTitle

13 years agoRemoved usage of error suppression operator, also removed function_exists() check...
Alexandre Emsenhuber [Sat, 11 Jun 2011 08:03:59 +0000 (08:03 +0000)]
Removed usage of error suppression operator, also removed function_exists() check for timezone_open() since we now require PHP 5.2.3

13 years agoMoved part of action handling functions near other ones
Alexandre Emsenhuber [Sat, 11 Jun 2011 07:43:40 +0000 (07:43 +0000)]
Moved part of action handling functions near other ones

13 years agoFollowup r88873, remove setting of $wgEnableCreativeCommonsRdf in LocalSettingsGenerator
Sam Reed [Sat, 11 Jun 2011 07:33:35 +0000 (07:33 +0000)]
Followup r88873, remove setting of $wgEnableCreativeCommonsRdf in LocalSettingsGenerator

13 years agoChanged more magic __get method calls to accessors, were throwing notices
Alexandre Emsenhuber [Sat, 11 Jun 2011 07:02:34 +0000 (07:02 +0000)]
Changed more magic __get method calls to accessors, were throwing notices

13 years agoRELEASE-NOTES for r89866
Krinkle [Sat, 11 Jun 2011 00:28:20 +0000 (00:28 +0000)]
RELEASE-NOTES for r89866

13 years agoUpgrade jQuery from 1.4.4 to 1.6.1
Krinkle [Sat, 11 Jun 2011 00:25:55 +0000 (00:25 +0000)]
Upgrade jQuery from 1.4.4 to 1.6.1

Poke r88725, r88607, bug 28904;

13 years agoFollow-up r89853: Documentation for completenesstest + minor fixes/whitespace
Krinkle [Sat, 11 Jun 2011 00:24:36 +0000 (00:24 +0000)]
Follow-up r89853: Documentation for completenesstest + minor fixes/whitespace

13 years agoAdd missing language name
Robin Pepermans [Sat, 11 Jun 2011 00:02:22 +0000 (00:02 +0000)]
Add missing language name

13 years agoFollow-up to r75241 / 75241: rename LanguageBat_smg to LanguageSgs
Robin Pepermans [Fri, 10 Jun 2011 22:33:49 +0000 (22:33 +0000)]
Follow-up to r75241 / 75241: rename LanguageBat_smg to LanguageSgs