lhc/web/wiklou.git
13 years agoMerge ApiTestSetup into ApiTestCase and update all subclasses. The amount of duplicat...
Chad Horohoe [Fri, 1 Jul 2011 16:34:02 +0000 (16:34 +0000)]
Merge ApiTestSetup into ApiTestCase and update all subclasses. The amount of duplication here was nasty, and also lets us get rid of a bunch of useless require_once()s.

./phpunit.php --filter Api currently gives me: Tests: 24, Assertions: 107, Incomplete: 1, Skipped: 2.

13 years agoFix for Bug #29628 - scriptpath Option of maintenance/install.php is ignored
Mark A. Hershberger [Fri, 1 Jul 2011 14:22:59 +0000 (14:22 +0000)]
Fix for Bug #29628 - scriptpath Option of maintenance/install.php is ignored

    The Script Path Option (--scriptpath) of maintenance/install.php
    is silently ignored if there is $_SERVER['SCRIPT_NAME'] set.

Apply patch from Tobias Müller.

13 years agoReplaced calls to Skin::formatSize() by Language::formatSize() where escaping is...
Alexandre Emsenhuber [Fri, 1 Jul 2011 09:03:15 +0000 (09:03 +0000)]
Replaced calls to Skin::formatSize() by Language::formatSize() where escaping is not needed (the former is just a wrapper to the latter with a call to htmlspecialchars())

13 years agoCall Linker::link() statically instead of getting a Skin object from $wgUser
Alexandre Emsenhuber [Fri, 1 Jul 2011 08:24:32 +0000 (08:24 +0000)]
Call Linker::link() statically instead of getting a Skin object from $wgUser

13 years agoRemove unused globals
Sam Reed [Fri, 1 Jul 2011 02:58:42 +0000 (02:58 +0000)]
Remove unused globals

13 years agoAdd documentation
Sam Reed [Fri, 1 Jul 2011 02:57:31 +0000 (02:57 +0000)]
Add documentation

Trim trailing whitespace

13 years agoMinor revert to r91246
Sam Reed [Fri, 1 Jul 2011 02:28:08 +0000 (02:28 +0000)]
Minor revert to r91246

13 years agoChange usages of $wgUser->getSkin() in special pages to use $this->getSkin()
Sam Reed [Fri, 1 Jul 2011 02:25:19 +0000 (02:25 +0000)]
Change usages of $wgUser->getSkin() in special pages to use $this->getSkin()

Fix trailing whitespace

13 years agoFix numerous undefined variables
Sam Reed [Fri, 1 Jul 2011 01:42:48 +0000 (01:42 +0000)]
Fix numerous undefined variables

13 years agoRemove unused parameter, update callers
Sam Reed [Fri, 1 Jul 2011 01:37:15 +0000 (01:37 +0000)]
Remove unused parameter, update callers

Trim whitespace

13 years agoFollowup r91168, fix last usage of $currentUser which was undefined
Sam Reed [Fri, 1 Jul 2011 01:30:26 +0000 (01:30 +0000)]
Followup r91168, fix last usage of $currentUser which was undefined

13 years agoFollow-up r91123:
Aaron Schulz [Fri, 1 Jul 2011 00:12:09 +0000 (00:12 +0000)]
Follow-up r91123:
* Tweaked getRevision() return type to NULL on failure
* Changed "$revision === null" checks to just "!$revision" (this avoids the landmine of getting false or something)

13 years ago(Follow-up r87705) per CR add docs to function. No code changes.
Brian Wolff [Thu, 30 Jun 2011 22:47:41 +0000 (22:47 +0000)]
(Follow-up r87705) per CR add docs to function. No code changes.

13 years agoFollowup r91224: stupid syntax error
Chad Horohoe [Thu, 30 Jun 2011 21:32:55 +0000 (21:32 +0000)]
Followup r91224: stupid syntax error

13 years agoRemove superfluous inclusion of SiteConfiguration in doMaintenance. It's in the AutoL...
Chad Horohoe [Thu, 30 Jun 2011 21:25:52 +0000 (21:25 +0000)]
Remove superfluous inclusion of SiteConfiguration in doMaintenance. It's in the AutoLoader and has already been initialized by DefaultSettings by this point.

As a result: rm DIY inclusion protection, since this was the only reason it was still needed.

13 years agotest that wfUrlencode() encodes apostrophe
Antoine Musso [Thu, 30 Jun 2011 21:14:33 +0000 (21:14 +0000)]
test that wfUrlencode() encodes apostrophe

13 years agor91207: Make one qunit test var local. Thanks Krinkle
Leo Koppelkamm [Thu, 30 Jun 2011 21:13:12 +0000 (21:13 +0000)]
r91207: Make one qunit test var local. Thanks Krinkle

13 years agoforgot one, follow-up to r91204
Ryan Kaldari [Thu, 30 Jun 2011 21:10:31 +0000 (21:10 +0000)]
forgot one, follow-up to r91204

13 years ago* Follow-up r84397: make sure that mysql uses the job_id index even with the job_cmd...
Aaron Schulz [Thu, 30 Jun 2011 20:32:41 +0000 (20:32 +0000)]
* Follow-up r84397: make sure that mysql uses the job_id index even with the job_cmd clause
* Removed redundant 'LIMIT' option, already added by using selectRow()

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

13 years agoFixed a long-standing broken test:
Chad Horohoe [Thu, 30 Jun 2011 20:11:45 +0000 (20:11 +0000)]
Fixed a long-standing broken test:

1) ApiUploadTest::testUploadStash
Failed asserting that <boolean:true> is false.

Did this by copying the correct stuff from $_SESSION to our local $session we're using for the test. Not sure if this is strictly correct, but hey it passes ;-)

Currently at: Tests: 1622, Assertions: 32090, Incomplete: 8, Skipped: 5.

13 years agoRemove --upload option to parserTests.php and backend RemoteTestRecorder -- was only...
Chad Horohoe [Thu, 30 Jun 2011 19:47:26 +0000 (19:47 +0000)]
Remove --upload option to parserTests.php and backend RemoteTestRecorder -- was only used for since-removed CR integration

13 years ago* Marked WikiCategoryPage::hasViewableContent() as "public"
Aaron Schulz [Thu, 30 Jun 2011 19:44:06 +0000 (19:44 +0000)]
* Marked WikiCategoryPage::hasViewableContent() as "public"
* Renamed WikiPage::getID -> WikiPage::getId
* Fixed undefined $changed var from r91180
* Various doc tweaks

13 years agor86088: Adding legacy support for .sortbottom & a test for it per CR
Leo Koppelkamm [Thu, 30 Jun 2011 19:40:19 +0000 (19:40 +0000)]
r86088: Adding legacy support for .sortbottom & a test for it per CR

13 years agofixing jQuery UI button styles for the old version of jQuery UI that is on live ...
Ryan Kaldari [Thu, 30 Jun 2011 19:37:17 +0000 (19:37 +0000)]
fixing jQuery UI button styles for the old version of jQuery UI that is on live - still forward compatible as well

13 years agoPer Aaron, fix for r91180: pass false to second parameter of User::newFromName()...
Alexandre Emsenhuber [Thu, 30 Jun 2011 19:34:25 +0000 (19:34 +0000)]
Per Aaron, fix for r91180: pass false to second parameter of User::newFromName() to allow anonymous users

13 years agoFollow-up r89544: add dot per CR
Bryan Tong Minh [Thu, 30 Jun 2011 18:51:24 +0000 (18:51 +0000)]
Follow-up r89544: add dot per CR

13 years agoReverted r91195, this isn't needed ;)
Aaron Schulz [Thu, 30 Jun 2011 18:45:48 +0000 (18:45 +0000)]
Reverted r91195, this isn't needed ;)

13 years agoAdded normalizeSubpageLink() to DummyLinker. __call doesn't handle static function...
Aaron Schulz [Thu, 30 Jun 2011 18:38:32 +0000 (18:38 +0000)]
Added normalizeSubpageLink() to DummyLinker. __call doesn't handle static function call attempts, __callStatic__ is PHP >= 5.3, and both clobber references anyway. Just added a wrapper function instead.

13 years agoLinker::titleAttrib() didn't obey $wgEnableTooltipsAndAccesskeys
Platonides [Thu, 30 Jun 2011 18:21:05 +0000 (18:21 +0000)]
Linker::titleAttrib() didn't obey $wgEnableTooltipsAndAccesskeys

13 years agoMove $wgFeedClasses to DefaultSettings where they belong. This has been bothering...
Chad Horohoe [Thu, 30 Jun 2011 18:16:45 +0000 (18:16 +0000)]
Move $wgFeedClasses to DefaultSettings where they belong. This has been bothering me for years.

Somewhat in the spirit of r87637, except I didn't put them in WebStart because that doesn't make sense.

13 years agoFollow-up r81536: Properly extract ($dstZone, $dstRel) from the triplet.
Bryan Tong Minh [Thu, 30 Jun 2011 17:43:20 +0000 (17:43 +0000)]
Follow-up r81536: Properly extract ($dstZone, $dstRel) from the triplet.

13 years agoFollow-up r80988: fix function documentation
Bryan Tong Minh [Thu, 30 Jun 2011 17:35:37 +0000 (17:35 +0000)]
Follow-up r80988: fix function documentation

13 years agoTab w/s fixes
Aaron Schulz [Thu, 30 Jun 2011 17:14:27 +0000 (17:14 +0000)]
Tab w/s fixes

13 years agoFollowup r91087, rename directory
Sam Reed [Thu, 30 Jun 2011 16:41:50 +0000 (16:41 +0000)]
Followup r91087, rename directory

13 years agoFixes for r88113 and some realted changes:
Alexandre Emsenhuber [Thu, 30 Jun 2011 15:26:26 +0000 (15:26 +0000)]
Fixes for r88113 and some realted changes:
* Modified <s>Article::editUpdates()</s> WikiPage::doEditUpdates() arguments to take a Revision object, an User object and options (much more readable that those boolean parameters)
* Call isCountable() on the old content and pass it to WikiPage::doEditUpdates() with the 'oldcountable' option so that it really reflects the old state of the page
* Updated all calls (no one in extensions) and removed the wrapper WikiPage::editUpdates()
* Call onArticleEdit() and onArticleCreate() (the one that is of course) from doEditUpdates()
* Removed $wgTitle hack from Import.php

13 years agoSimpler code
Robin Pepermans [Thu, 30 Jun 2011 15:20:57 +0000 (15:20 +0000)]
Simpler code

13 years agoFix fatal in r77354 (!!), discovered this when purgeList.php fataled on me on the...
Roan Kattouw [Thu, 30 Jun 2011 15:15:54 +0000 (15:15 +0000)]
Fix fatal in r77354 (!!), discovered this when purgeList.php fataled on me on the WMF cluster

13 years agoMuch, much easier to call Linker::link() statically instead of grabbing a Skin from...
Alexandre Emsenhuber [Thu, 30 Jun 2011 14:53:37 +0000 (14:53 +0000)]
Much, much easier to call Linker::link() statically instead of grabbing a Skin from $wgUser

13 years agoUse the current instance instead of messing with $wgUser
Alexandre Emsenhuber [Thu, 30 Jun 2011 14:49:12 +0000 (14:49 +0000)]
Use the current instance instead of messing with $wgUser

13 years agoFollow-up r91167: that was for history of course.. this one is for recentchanges...
Robin Pepermans [Thu, 30 Jun 2011 14:10:53 +0000 (14:10 +0000)]
Follow-up r91167: that was for history of course.. this one is for recentchanges etc.

13 years agoAnd I forgot to commit this file in r91074
Alexandre Emsenhuber [Thu, 30 Jun 2011 13:56:45 +0000 (13:56 +0000)]
And I forgot to commit this file in r91074

13 years agoAdd dirmark so RecentChanges displays properly with CleanChanges extension and wgBett...
Robin Pepermans [Thu, 30 Jun 2011 13:51:56 +0000 (13:51 +0000)]
Add dirmark so RecentChanges displays properly with CleanChanges extension and wgBetterDirectionality = true

13 years ago* Fixes for r91123:
Aaron Schulz [Thu, 30 Jun 2011 07:52:59 +0000 (07:52 +0000)]
* Fixes for r91123:
** Avoid calling protected pageDataFromId() from Article class.
** Made pageDataFromTitle()/pageDataFromId() public for anything else doing something like that (loadPageData was already public anyway).
** Moved getParserOutput() back to Article since it needs getOutputFromWikitext().
* Other: cascading protection side-effect moved to outputWikiText().

13 years agoExpand on r91123 Article refactoring:
Aaron Schulz [Thu, 30 Jun 2011 07:05:20 +0000 (07:05 +0000)]
Expand on r91123 Article refactoring:
* Added $user param to relevant WikiPage functions (with b/c)
* Cleaned up editUpdates() signature and tweaked three other WikiPage functions signatures (with b/c)
* Added fixme to prepareTextForEdit()

13 years agoMore return documentation and trimming trailing whitespace
Sam Reed [Thu, 30 Jun 2011 02:59:43 +0000 (02:59 +0000)]
More return documentation and trimming trailing whitespace

13 years agoMinor tweaks for r83833 per CR
Sam Reed [Thu, 30 Jun 2011 02:14:45 +0000 (02:14 +0000)]
Minor tweaks for r83833 per CR

13 years ago* (bug 29531) r89628 breaks img_auth.php
Sam Reed [Thu, 30 Jun 2011 01:44:11 +0000 (01:44 +0000)]
* (bug 29531) r89628 breaks img_auth.php

Apply Tims strpos -> strrpos fix, confirmed to work by bug reporter

13 years agoMerge r90664 from 1.17wmf1
Sam Reed [Thu, 30 Jun 2011 01:27:03 +0000 (01:27 +0000)]
Merge r90664 from 1.17wmf1

13 years agoMerge r86683 from 1.17wmf1
Sam Reed [Thu, 30 Jun 2011 01:24:54 +0000 (01:24 +0000)]
Merge r86683 from 1.17wmf1

13 years agoAdding alternative method for U+024B62. Making sure both ways work.
Krinkle [Thu, 30 Jun 2011 01:20:37 +0000 (01:20 +0000)]
Adding alternative method for U+024B62. Making sure both ways work.

13 years agobyteLimit/byteLength improvements:
Krinkle [Thu, 30 Jun 2011 01:06:47 +0000 (01:06 +0000)]
byteLimit/byteLength improvements:
* Split the byte length logic into a seperate method to allow it to be called directly on a string (easier to test and easier re-use)
* Added basic unit tests for it.

13 years agoReplace more multiple calls to $this->getResult() in methods with temporary variable
Sam Reed [Thu, 30 Jun 2011 01:06:17 +0000 (01:06 +0000)]
Replace more multiple calls to $this->getResult() in methods with temporary variable

13 years agoFix trailing whitespace
Sam Reed [Wed, 29 Jun 2011 23:46:39 +0000 (23:46 +0000)]
Fix trailing whitespace

Swap methods that call $this->getResult() to use temporary variable

13 years agoTweak doc comments on WebRequest::getRequestURL() & WebRequest::getFullRequestURL...
Brion Vibber [Wed, 29 Jun 2011 23:35:05 +0000 (23:35 +0000)]
Tweak doc comments on WebRequest::getRequestURL() & WebRequest::getFullRequestURL() per in-person discussion with preilly; the docs were unclear as to whether the query string is included (it is).

13 years agoFollowup r91082, capitalise API, mark as optional
Sam Reed [Wed, 29 Jun 2011 23:18:45 +0000 (23:18 +0000)]
Followup r91082, capitalise API, mark as optional

13 years ago(Follow-up r91059) Make backlinks query do both null or "" to potentially account...
Brian Wolff [Wed, 29 Jun 2011 23:09:00 +0000 (23:09 +0000)]
(Follow-up r91059) Make backlinks query do both null or "" to potentially account for old rows that havn't been updated
yet to new conventions.

Hopefully I got the syntax right for the OR thing using mw's db functions (I tested the query, its fine, I'm just not 100% sure thats the most correct way using mw's db funcs, I've never really had to build an OR query using the db funcs).

13 years agoFollow up r91072. This is indeed not needed.
Platonides [Wed, 29 Jun 2011 22:37:11 +0000 (22:37 +0000)]
Follow up r91072. This is indeed not needed.

13 years ago(follow-up r91106) Explicitly compare against the self::BROKEN_FILE constants.
Brian Wolff [Wed, 29 Jun 2011 22:24:27 +0000 (22:24 +0000)]
(follow-up r91106) Explicitly compare against the self::BROKEN_FILE constants.

Before was doing if !$metadata, which used to work when self::BROKEN_FILE was 0, now it's -1
and that works less.

13 years ago* Split off WikiPage class from Article, WikiFilePage class from ImagePage, and WikiC...
Aaron Schulz [Wed, 29 Jun 2011 22:09:51 +0000 (22:09 +0000)]
* Split off WikiPage class from Article, WikiFilePage class from ImagePage, and WikiCategoryPage from CategoryPage.
* WikiPage functions/fields are "magically" part of Article when accessed for b/c. Magic is kind of ugly but there are too many callers to make breaking changes atm. Some functions are just wrappers for WikiPage ones (were magic won't work).
* Added newFromID() to each WikiPage subclass (works around pre-existing inheritance problem).
* Added Page class for convenient type hinting and changed hints from Article -> Page. This lets things use WikiPage objects without getting type errors.
* Updated FlaggedPage to extend WikiPage. Worked around getOldIdFromRequest().
* Added setTimestamp() to WikiPage and moved some timestamp setting code from ParserCache to Article.
* Removed ampersands from $dbw arguments.
* @TODO: dependency inject user objects for WikiPage

The idea is to migrate things to use WikiPage, as the run-of-the-mill "new Article()" call doesn't care about $oldid and $wgRequest. After that, Article, ImagePage, and CategoryPage can be rewritten as an Action class or something sane (a Viewer class of sorts).

13 years agoWe don't need $skin as a local variable.
Platonides [Wed, 29 Jun 2011 21:51:27 +0000 (21:51 +0000)]
We don't need $skin as a local variable.

13 years agoPer CR, revert non debugging stuff from r82436. (KML uploads)
Bryan Tong Minh [Wed, 29 Jun 2011 20:31:43 +0000 (20:31 +0000)]
Per CR, revert non debugging stuff from r82436. (KML uploads)

13 years agobasic tests for wfUrlencode
Antoine Musso [Wed, 29 Jun 2011 20:28:43 +0000 (20:28 +0000)]
basic tests for wfUrlencode

Please note this function use a static variable based on the value
of $GLOBALS[’SERVER_SOFTWARE'].  With PHP 5.2 and PHPUnit 3.5.x, there
is currently now way to reset the static variable :-/   Tests relying on
a change of SERVER_SOFTWARE are thus skipped, still the framework is there
for later use.

13 years ago(no commit message)
Raimond Spekking [Wed, 29 Jun 2011 20:25:45 +0000 (20:25 +0000)]

13 years agoAdd wfUnserialize() wrapper around unserialize to prevent E_NOTICE and use it in...
Bryan Tong Minh [Wed, 29 Jun 2011 20:24:53 +0000 (20:24 +0000)]
Add wfUnserialize() wrapper around unserialize to prevent E_NOTICE and use it in ExifBitmap.php. There are probably many more places that could use this. This should fix Platonides' problem at r90421, but also added a check for $wgShowExif to prevent the test from failing.

13 years agoFollowup r91094: monobook wasn't broken, but I broke it. Rename to content here too...
Chad Horohoe [Wed, 29 Jun 2011 18:44:21 +0000 (18:44 +0000)]
Followup r91094: monobook wasn't broken, but I broke it. Rename to content here too so I don't get confused

13 years agoFix for r91081, I think he meant $content, not $cont.
Chad Horohoe [Wed, 29 Jun 2011 18:40:08 +0000 (18:40 +0000)]
Fix for r91081, I think he meant $content, not $cont.

13 years agoMove global functions tests to their own directory.
Antoine Musso [Wed, 29 Jun 2011 17:59:50 +0000 (17:59 +0000)]
Move global functions tests to their own directory.

Will let us create a test file for each functions which is easier to handle
in the long time.

13 years agoAdd 'api' type to extension types for special version
Sam Reed [Wed, 29 Jun 2011 17:20:50 +0000 (17:20 +0000)]
Add 'api' type to extension types for special version

13 years agoMake a sidebar key with value false mean 'skip this header'.
Platonides [Wed, 29 Jun 2011 17:20:47 +0000 (17:20 +0000)]
Make a sidebar key with value false mean 'skip this header'.
Intended for the forced headers, such as SEARCH.
These entries would be added using SkinBuildSidebar hook.

13 years agoFix for r91076: forgot to change one instance of $useMaster to $database
Alexandre Emsenhuber [Wed, 29 Jun 2011 17:18:06 +0000 (17:18 +0000)]
Fix for r91076: forgot to change one instance of $useMaster to $database

13 years agoCreate renderPortals() function for MonoBook (same interface as Vector one).
Platonides [Wed, 29 Jun 2011 17:11:38 +0000 (17:11 +0000)]
Create renderPortals() function for MonoBook (same interface as Vector one).
Changed Modern to call that function instead of duplicating the code with Modern.

13 years agoPer Platonides, follow-up r72842: pass the db connection to SiteStatsInit::doAllAndCo...
Alexandre Emsenhuber [Wed, 29 Jun 2011 15:39:40 +0000 (15:39 +0000)]
Per Platonides, follow-up r72842: pass the db connection to SiteStatsInit::doAllAndCommit(). Changed parameters to that functions to give as first parameter a db connection and merged existing ones in the second parameter which is now an array of options (and is also much, much easier to read that those boolean parameters). No other calls in core or extensions.

13 years ago* Modified some methods of SpecialWatchlist to be non-static so that they can use...
Alexandre Emsenhuber [Wed, 29 Jun 2011 15:16:40 +0000 (15:16 +0000)]
* Modified some methods of SpecialWatchlist to be non-static so that they can use $this->getTitle() instead of having to pass the special page's name
* Use context variable instead of global ones
* Really use countItems()
* Updated InterwikiIntegration for these changes; I'm not keeping b/c since anyway that extension was broken until now because SpecialWatchlist::countItems() was static and SpecialInterwikiWatchlist::countItems() not (was throwing fatal error)

13 years agoDelay expansion of XmlSelect options until getting the HTML.
Platonides [Wed, 29 Jun 2011 14:15:47 +0000 (14:15 +0000)]
Delay expansion of XmlSelect options until getting the HTML.
Setting the default after adding options now works.
Enabled testSetDefaultAfterAddingOptions().

13 years agoMake BitmapMetadataHandlerTest incomplete if $wgShowEXIF is not set.
Platonides [Wed, 29 Jun 2011 13:45:57 +0000 (13:45 +0000)]
Make BitmapMetadataHandlerTest incomplete if $wgShowEXIF is not set.
It was throwing 'MWException: Internal error: exif_read_data not present. $wgShowEXIF may be incorrectly set or not checked by an extension.'
Fixed typo in LocalSettings.

13 years ago$wgContLang no longer used here
Platonides [Wed, 29 Jun 2011 13:23:51 +0000 (13:23 +0000)]
$wgContLang no longer used here

13 years agoPass the Title object to Parser::transformMsg()
Alexandre Emsenhuber [Wed, 29 Jun 2011 10:58:54 +0000 (10:58 +0000)]
Pass the Title object to Parser::transformMsg()

13 years agoFollow-up r90334 and r90337: made DifferenceEngine::addHeader() non-static to be...
Alexandre Emsenhuber [Wed, 29 Jun 2011 10:51:15 +0000 (10:51 +0000)]
Follow-up r90334 and r90337: made DifferenceEngine::addHeader() non-static to be able to use $this->mTitle instead of $wgTitle

13 years agoRemoved code2utf() and replaced with codepointToUtf8() to reduce code duplication...
Alexandre Emsenhuber [Wed, 29 Jun 2011 09:22:15 +0000 (09:22 +0000)]
Removed code2utf() and replaced with codepointToUtf8() to reduce code duplication since they do exactely the same thing

13 years agoBacklinkCache was forgetting to check rd_interwiki when getting redirects, and thus...
Brian Wolff [Wed, 29 Jun 2011 07:19:12 +0000 (07:19 +0000)]
BacklinkCache was forgetting to check rd_interwiki when getting redirects, and thus getting
some extranous backlinks for the redirect table (if there happened to be a page redirecting
to an interwiki page with the same name plus an interwiki prefix).

Not a major issue since this is really only used as far as i can tell, to purge squids and html file cache.
A couple of extra unneeded purges shouldn't hurt anything, just a bit pointless.

13 years agoBasic first round of testing for the InstallDocFormatter
Chad Horohoe [Wed, 29 Jun 2011 01:26:56 +0000 (01:26 +0000)]
Basic first round of testing for the InstallDocFormatter

13 years ago(bug 29277) MediaWiki:Filepage.css not loaded on foreignwiki itself. Fixup to r68904...
Chad Horohoe [Wed, 29 Jun 2011 00:08:25 +0000 (00:08 +0000)]
(bug 29277) MediaWiki:Filepage.css not loaded on foreignwiki itself. Fixup to r68904. Yay Roan finally taught me how to use the resourceloader :D

13 years agoRemove superfluous NewDBTest, doesn't test anything afaict
Chad Horohoe [Tue, 28 Jun 2011 23:03:41 +0000 (23:03 +0000)]
Remove superfluous NewDBTest, doesn't test anything afaict

13 years agoMerge SearchDbTest into SearchEngineTest. No real need for two classes here anymore...
Chad Horohoe [Tue, 28 Jun 2011 22:26:22 +0000 (22:26 +0000)]
Merge SearchDbTest into SearchEngineTest. No real need for two classes here anymore, and it's kind of confusing if you try to run the stub by itself.
Also did some misc. cleanup while I was here

Results: OK (5 tests, 16 assertions)

13 years agoUploadStashFile::__construct() can't assume that the mwrepo-produced paths match...
Russ Nelson [Tue, 28 Jun 2011 22:00:21 +0000 (22:00 +0000)]
UploadStashFile::__construct() can't assume that the mwrepo-produced paths match the temp zone.

13 years agoUse getLatest() accessor
Aaron Schulz [Tue, 28 Jun 2011 21:39:55 +0000 (21:39 +0000)]
Use getLatest() accessor

13 years agoUse title accessor
Aaron Schulz [Tue, 28 Jun 2011 21:38:04 +0000 (21:38 +0000)]
Use title accessor

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

13 years agoLocalization update for he.
Rotem Liss [Tue, 28 Jun 2011 19:49:08 +0000 (19:49 +0000)]
Localization update for he.

13 years ago* Remove Exception.php's reliance on wfDie(), as well as the awful constant MEDIAWIKI...
Chad Horohoe [Tue, 28 Jun 2011 19:46:23 +0000 (19:46 +0000)]
* Remove Exception.php's reliance on wfDie(), as well as the awful constant MEDIAWIKI_INSTALL (holdover from old installer)
* Rm checking for MEDIAWIKI_INSTALL in wfOut(), no codepath leads here from the installer anymore

13 years agorename test for the ns selector checkboxes
Antoine Musso [Tue, 28 Jun 2011 19:35:26 +0000 (19:35 +0000)]
rename test for the ns selector checkboxes

follow up r90943

13 years agoFind 'all' special ns regardless of its rank in the select
Antoine Musso [Tue, 28 Jun 2011 19:32:25 +0000 (19:32 +0000)]
Find 'all' special ns regardless of its rank in the select

This is done by looking for an <option> element with an empty string value
which denote the special case 'all'.
Also removed a comment in Xml.php asking to keep 'all' as a first element
since it is no longer needed.

Follow up r90943 (comment 18872 by Brion)

13 years agoRevert r85324 (making links grey for rev-del'd info). Per CR: grey is a bad color...
Chad Horohoe [Tue, 28 Jun 2011 18:35:37 +0000 (18:35 +0000)]
Revert r85324 (making links grey for rev-del'd info). Per CR: grey is a bad color for links.

13 years agoAdded some GPL headers
Alexandre Emsenhuber [Tue, 28 Jun 2011 18:21:59 +0000 (18:21 +0000)]
Added some GPL headers

13 years agoper r90984 CR, cleaner this way
Krinkle [Tue, 28 Jun 2011 18:17:49 +0000 (18:17 +0000)]
per r90984 CR, cleaner this way

13 years agomodule name is not shortened
Krinkle [Tue, 28 Jun 2011 17:57:56 +0000 (17:57 +0000)]
module name is not shortened

13 years agomw.special.recentchanges fixes:
Krinkle [Tue, 28 Jun 2011 17:56:56 +0000 (17:56 +0000)]
mw.special.recentchanges fixes:
- Partial self-revert of r90982 (binding and triggering must not be chained, as the calling function refers to the variable we're setting)
- The Qunit tests pass now :)

Follows up: r90943 r90960 r90968 r90980 r90982

13 years agomw.special.recentchanges fixes:
Krinkle [Tue, 28 Jun 2011 17:40:06 +0000 (17:40 +0000)]
mw.special.recentchanges fixes:
- using mw globally directly
- ID-selectors
- JS Effeciency in mw.special.rc.init (chaining instead of re-getting from this.select)
- passing function by reference instead of calling inside a new anonymous function
- marking checkboxes a private/local variable
- whitespace conventions

Follows up: r90943 r90960 r90968 r90980

13 years ago* Fixed documentation
Alexandre Emsenhuber [Tue, 28 Jun 2011 17:20:16 +0000 (17:20 +0000)]
* Fixed documentation
* Added GPL header