lhc/web/wiklou.git
12 years agoFollow up r102802. Bug 32359
Santhosh Thottingal [Tue, 15 Nov 2011 04:28:34 +0000 (04:28 +0000)]
Follow up r102802. Bug 32359
Use negative sign itself instead of $_[0] since $_ is mixed type.
Add more test cases.

12 years agoFix for r102649
John Du Hart [Tue, 15 Nov 2011 02:42:07 +0000 (02:42 +0000)]
Fix for r102649

12 years agoConvert SpecialBlock to subclass FormSpecialPage
John Du Hart [Tue, 15 Nov 2011 02:25:36 +0000 (02:25 +0000)]
Convert SpecialBlock to subclass FormSpecialPage

Also fixes the problem introduced in r103115

12 years agoChanged new LocalFilePurgeThumbnails hook arguments and updated wmf/swift.php to...
Aaron Schulz [Tue, 15 Nov 2011 02:20:08 +0000 (02:20 +0000)]
Changed new LocalFilePurgeThumbnails hook arguments and updated wmf/swift.php to actually work for archived file thumbs.

12 years agoUpdated core SpecialPages to use new functions introduced in r103111 and r103095
John Du Hart [Tue, 15 Nov 2011 01:34:19 +0000 (01:34 +0000)]
Updated core SpecialPages to use new functions introduced in r103111 and r103095

12 years agoAdding function for checking if the database is in readonly mode
John Du Hart [Tue, 15 Nov 2011 01:19:04 +0000 (01:19 +0000)]
Adding function for checking if the database is in readonly mode
Replacing some code in SpecialPageForm to use these new functions

12 years agoAdded function to SpecialPage to simplify permissions checking in SpecialPage classes.
John Du Hart [Tue, 15 Nov 2011 00:37:38 +0000 (00:37 +0000)]
Added function to SpecialPage to simplify permissions checking in SpecialPage classes.

12 years agoMake sure that the old insertTags of mediawiki.action.edit.js works with each textare...
Derk-Jan Hartman [Mon, 14 Nov 2011 23:28:48 +0000 (23:28 +0000)]
Make sure that the old insertTags of mediawiki.action.edit.js works with each textarea or text input field on a page.

Note. Using input:text, because input[type=text] doesn't return the input's with no type set.

This fixes bug 31682, where Extension:CharInsert wasn't working on upload pages anymore and
bug 31566, where Extension:Proofread's header and footer fields didn't work icw CharInsert

12 years agoAdd isset tests to stuff inside BaseTemplate::getToolbox.
Daniel Friesen [Mon, 14 Nov 2011 21:57:36 +0000 (21:57 +0000)]
Add isset tests to stuff inside BaseTemplate::getToolbox.

12 years agoFix for r102997: forgot to change that variable
Alexandre Emsenhuber [Mon, 14 Nov 2011 21:42:27 +0000 (21:42 +0000)]
Fix for r102997: forgot to change that variable

12 years agoLocalisation updates for core and extension messages from translatewiki.net
Raimond Spekking [Mon, 14 Nov 2011 21:39:03 +0000 (21:39 +0000)]
Localisation updates for core and extension messages from translatewiki.net

12 years agoReverts r102799, followsup r102800 also
Sam Reed [Mon, 14 Nov 2011 21:14:31 +0000 (21:14 +0000)]
Reverts r102799, followsup r102800 also

Logged LoggedUpdateMaintenance did the inserting, the problem was the script was unconditionally run

Added some documentation tooo

12 years ago(bug 19833) Make the searching-for-an-IP-means-you-want-Special:Contributions behavio...
Roan Kattouw [Mon, 14 Nov 2011 20:00:35 +0000 (20:00 +0000)]
(bug 19833) Make the searching-for-an-IP-means-you-want-Special:Contributions behavior configurable. Patch by Olivier Finlay Beaton

12 years agoRemove commented-out variable ApiMain::$mRequest
Roan Kattouw [Mon, 14 Nov 2011 19:44:13 +0000 (19:44 +0000)]
Remove commented-out variable ApiMain::$mRequest

12 years agoFix for r103001: using the object is actually a good idea
Alexandre Emsenhuber [Mon, 14 Nov 2011 18:31:44 +0000 (18:31 +0000)]
Fix for r103001: using the object is actually a good idea

12 years agoUpdate DifferenceEngine::renderNewRevision() to run the 'ArticleViewCustom' hook...
Alexandre Emsenhuber [Mon, 14 Nov 2011 18:28:01 +0000 (18:28 +0000)]
Update DifferenceEngine::renderNewRevision() to run the 'ArticleViewCustom' hook and create a WikiPage object and do "normal wikitext" processing only when really needed

12 years agoSome cleanup to Article::view() and related:
Alexandre Emsenhuber [Mon, 14 Nov 2011 18:05:55 +0000 (18:05 +0000)]
Some cleanup to Article::view() and related:
* Moved the page check if oldid was given from Article::fetchContent() to Article::getOldidIDFromRequest() so that it's done directly when executing Article::view(); this should not happen though for normal view requests since oldid and related are checked in MediaWiki::parseTitle()
* Removed $oldid parameter from Article::fetchContent() and always use the oldid parameter passed either in the constructor or the request; also changed call from Article::loadContent() to Article::fromContent() since the former is now only a redirect to the latter
* Moved the 'read' permission check to the beginning of Article::view() since the Title is now correct directly after calling Article::getOldID()
* Merged the two calls to the parser cache and make WikiPage::isParserCacheUsed() also return true when the latest revision id is given. Article::setOldSubtitle() is still called when the oldid is passed to display the "You are view the current revision of this article".
* Also moved the non-existing page check a bit up to avoid running a good part of useless code when the page doesn't exist
* Merged two calls to Title::quickUserCan( 'edit' ) to set edit sections to false

12 years agofind on Windows is incompatible with *nix
Max Semenik [Mon, 14 Nov 2011 16:53:50 +0000 (16:53 +0000)]
find on Windows is incompatible with *nix

12 years agoFollowup r99224: add message to ApiBase::$messageMap too
Roan Kattouw [Mon, 14 Nov 2011 14:40:55 +0000 (14:40 +0000)]
Followup r99224: add message to ApiBase::$messageMap too

12 years agoAdd Platonides' "add wlexcludeuser to feedwatchlist" patch from bug 25325
Sam Reed [Mon, 14 Nov 2011 14:36:06 +0000 (14:36 +0000)]
Add Platonides' "add wlexcludeuser to feedwatchlist" patch from bug 25325

12 years agoFollowup r102945: $wgFooterIcons too
Roan Kattouw [Mon, 14 Nov 2011 14:08:56 +0000 (14:08 +0000)]
Followup r102945: $wgFooterIcons too

12 years agoUpdated remaining functions executing NewRevisionFromEditComplete hook to use WikiPag...
Alexandre Emsenhuber [Mon, 14 Nov 2011 12:40:14 +0000 (12:40 +0000)]
Updated remaining functions executing NewRevisionFromEditComplete hook to use WikiPage instead of Article

12 years agoFollowup r102910
Sam Reed [Mon, 14 Nov 2011 10:34:23 +0000 (10:34 +0000)]
Followup r102910

Make the link to the MW page https only

12 years agoRevert r102949. Broke tests (undefined variable $_SESSION because session_start(...
Roan Kattouw [Mon, 14 Nov 2011 09:23:58 +0000 (09:23 +0000)]
Revert r102949. Broke tests (undefined variable $_SESSION because session_start() hadn't been called) and is unnecessary because we have DerivativeRequest now

12 years agoFix for r102949: don't delete too much
Roan Kattouw [Mon, 14 Nov 2011 09:16:30 +0000 (09:16 +0000)]
Fix for r102949: don't delete too much

12 years agoLocalisation updates for core and extension messages from translatewiki.net
Raimond Spekking [Mon, 14 Nov 2011 09:16:03 +0000 (09:16 +0000)]
Localisation updates for core and extension messages from translatewiki.net

12 years agoRemove the kok-* codes got added unintentionally in r102891.
Santhosh Thottingal [Mon, 14 Nov 2011 09:15:32 +0000 (09:15 +0000)]
Remove the kok-* codes got added unintentionally in r102891.

12 years ago(bug 29854) Store protocol-relative links twice in the externallinks table, one with...
Roan Kattouw [Mon, 14 Nov 2011 09:13:58 +0000 (09:13 +0000)]
(bug 29854) Store protocol-relative links twice in the externallinks table, one with http: in el_index and once with https: . Modified patch by Brad Jorsch

12 years agoFollowup r101149: make FauxRequest::__construct() use $_SESSION if the session parame...
Roan Kattouw [Mon, 14 Nov 2011 08:40:06 +0000 (08:40 +0000)]
Followup r101149: make FauxRequest::__construct() use $_SESSION if the session parameter isn't given

12 years ago(bug 32241) WikiEditor scrolls the browser and does not insert in IE7, IE8, IE9 if...
Roan Kattouw [Mon, 14 Nov 2011 08:37:38 +0000 (08:37 +0000)]
(bug 32241) WikiEditor scrolls the browser and does not insert in IE7, IE8, IE9 if the textarea doesn't fit on the screen. Patch by Lupo

12 years ago(bug 26909) Add dir parameter for prop= API modules. Modified patch by Umherirrender
Roan Kattouw [Mon, 14 Nov 2011 08:19:55 +0000 (08:19 +0000)]
(bug 26909) Add dir parameter for prop= API modules. Modified patch by Umherirrender

12 years ago(bug 32380) Make get powered by link target protocol-relative
Roan Kattouw [Mon, 14 Nov 2011 08:06:41 +0000 (08:06 +0000)]
(bug 32380) Make get powered by link target protocol-relative

12 years agoBug 32379 - DatabaseError.php is hardcoding http
Sam Reed [Sun, 13 Nov 2011 21:42:57 +0000 (21:42 +0000)]
Bug 32379 - DatabaseError.php is hardcoding http

Also tidy up a couple of returns (per others in method, and/or parents)

12 years agoFixup for r102875 parse error.
Platonides [Sun, 13 Nov 2011 19:58:24 +0000 (19:58 +0000)]
Fixup for r102875 parse error.
The post-commit hook is *again* not working...

12 years agoPer Nikerabbit, follow-up r102187: added RELEASE-NOTES entry about the fact that...
Alexandre Emsenhuber [Sun, 13 Nov 2011 14:11:08 +0000 (14:11 +0000)]
Per Nikerabbit, follow-up r102187: added RELEASE-NOTES entry about the fact that getUserPermissionsErrors and getUserPermissionsErrorsExpensive hooks are now called when checking for 'read' permission

12 years agoCorrect the name of Sanskrit. Follow-up 102889.
Santhosh Thottingal [Sun, 13 Nov 2011 12:50:20 +0000 (12:50 +0000)]
Correct the name of Sanskrit. Follow-up 102889.

12 years agoLocalise numbers in TOC added in r102334
Robin Pepermans [Sun, 13 Nov 2011 12:46:53 +0000 (12:46 +0000)]
Localise numbers in TOC added in r102334

12 years agoOops, missed to notice the missed <?php. Reverting.
Santhosh Thottingal [Sun, 13 Nov 2011 12:41:33 +0000 (12:41 +0000)]
Oops, missed to notice the missed <?php. Reverting.

12 years agoRemoved transaction in saveOptions(). No reason was given for it and it could break...
Aaron Schulz [Sun, 13 Nov 2011 12:35:28 +0000 (12:35 +0000)]
Removed transaction in saveOptions(). No reason was given for it and it could break any callers that have transactions.

12 years agoCorrect the name of Sanskrit Language.
Santhosh Thottingal [Sun, 13 Nov 2011 12:22:10 +0000 (12:22 +0000)]
Correct the name of Sanskrit Language.
Bug 32393

12 years agoAdded rollback-related comment to nextSequenceValue()
Aaron Schulz [Sun, 13 Nov 2011 11:28:56 +0000 (11:28 +0000)]
Added rollback-related comment to nextSequenceValue()

12 years agoRefactored EditPage::getPreloadedText():
Alexandre Emsenhuber [Sun, 13 Nov 2011 09:12:03 +0000 (09:12 +0000)]
Refactored EditPage::getPreloadedText():
* Use WikiPage instead of Article (avoids conflicting with oldid url parameter)
* Use getRedirectTarget() instead of creating a new Title with the content of the page
* Changed userCanRead() calls to userCan( 'read' )
* Use "if ( something ) return;" instead of nesting if checks

12 years agoAddress comments in r97628
Niklas Laxström [Sun, 13 Nov 2011 08:58:38 +0000 (08:58 +0000)]
Address comments in r97628

12 years agoRemoved usage of $wgUser in block and unblock processing:
Alexandre Emsenhuber [Sun, 13 Nov 2011 07:25:56 +0000 (07:25 +0000)]
Removed usage of $wgUser in block and unblock processing:
* Made HTMLFormField pass the HTMLForm object to the validation and filter callbacks (so that they can get a context)
* Added new parameter to SpecialBlock::checkUnblockSelf() to pass the user doing the request
* SpecialBlock::processForm() and SpecialUnblock::processUnblock() now require a context as second parameter; added SpecialBlock::processUIForm() and SpecialUnblock::processUIUnblock() as adaptators from HTMLForm as second parameter to context

12 years agoThis patch fixes rev. 102575.
Diederik van Liere [Sun, 13 Nov 2011 01:50:24 +0000 (01:50 +0000)]
This patch fixes rev. 102575.

12 years agoDocument $wgGroupPermissions better, including per-NS stuff
Aaron Schulz [Sat, 12 Nov 2011 22:36:47 +0000 (22:36 +0000)]
Document $wgGroupPermissions better, including per-NS stuff

12 years agoLocalisation updates for core and extension messages from translatewiki.net
Raimond Spekking [Sat, 12 Nov 2011 21:52:22 +0000 (21:52 +0000)]
Localisation updates for core and extension messages from translatewiki.net

12 years agoComment tweak on MediaWikiParserTest and make ResourceLoaderTest extend MediaWikiTestCase
Chad Horohoe [Sat, 12 Nov 2011 21:32:39 +0000 (21:32 +0000)]
Comment tweak on MediaWikiParserTest and make ResourceLoaderTest extend MediaWikiTestCase

12 years agoMoved methods around to group them by functionnality
Alexandre Emsenhuber [Sat, 12 Nov 2011 13:47:17 +0000 (13:47 +0000)]
Moved methods around to group them by functionnality

12 years agoPer Nikerabbit, fix undefined variable notice from r102851
Alexandre Emsenhuber [Sat, 12 Nov 2011 12:13:08 +0000 (12:13 +0000)]
Per Nikerabbit, fix undefined variable notice from r102851

12 years ago* Renamed member variables to begin with a lower case
Alexandre Emsenhuber [Sat, 12 Nov 2011 09:57:47 +0000 (09:57 +0000)]
* Renamed member variables to begin with a lower case
* Moved constant definitions from the constructor to the class definition
* Removed default values from the class definition for members that are always set in the constructor

12 years agoAllow extensions to add post-update maintenance scripts
Roan Kattouw [Sat, 12 Nov 2011 09:55:28 +0000 (09:55 +0000)]
Allow extensions to add post-update maintenance scripts

12 years agoUse WikiPage instead of Article
Alexandre Emsenhuber [Sat, 12 Nov 2011 07:36:41 +0000 (07:36 +0000)]
Use WikiPage instead of Article

12 years agoUse the local user to get time offset and format, also removed wfTimestamp() call...
Alexandre Emsenhuber [Sat, 12 Nov 2011 07:30:25 +0000 (07:30 +0000)]
Use the local user to get time offset and format, also removed wfTimestamp() call since this is already done in the function

12 years agoFU r102073:
Aaron Schulz [Fri, 11 Nov 2011 22:14:21 +0000 (22:14 +0000)]
FU r102073:
* (bug 32367) Fixed SpecialMovePage to not call wfLocalFile() on a non file title and expect an actual File back. Previously "worked" due to an old file title checking loophole (File objects with non File: titles).
* Use File::normalizeTitle() in some more functions that were still doing their own incomplete normalization.
* Updated FileRepo::newFile() docs to reflect that it can return null; wfLocalFile() docs already mentioned this.

12 years agoLocalisation updates for core and extension messages from translatewiki.net
Raimond Spekking [Fri, 11 Nov 2011 20:38:26 +0000 (20:38 +0000)]
Localisation updates for core and extension messages from translatewiki.net

12 years agoMake commafy support negative numbers too,
Santhosh Thottingal [Fri, 11 Nov 2011 17:23:12 +0000 (17:23 +0000)]
Make commafy support negative numbers too,
Add test cases.
Ref Bug 32359  and Followup r97793

12 years agoSame for the getPostDatabaseUpdateMaintenance
Sam Reed [Fri, 11 Nov 2011 17:06:03 +0000 (17:06 +0000)]
Same for the getPostDatabaseUpdateMaintenance

We only need to run them once

12 years agoFollowup r102799, unconditionally running them anyway also isn't much use
Sam Reed [Fri, 11 Nov 2011 16:58:09 +0000 (16:58 +0000)]
Followup r102799, unconditionally running them anyway also isn't much use

12 years agoNaff all point varying on $this->updateRowExists when we never bloody insert to that...
Sam Reed [Fri, 11 Nov 2011 16:47:48 +0000 (16:47 +0000)]
Naff all point varying on $this->updateRowExists when we never bloody insert to that database (more of these to come as I cleanup the updater)

12 years agoFollowup r102785, fix wrong index order in tables.sql. The patches are fine
Roan Kattouw [Fri, 11 Nov 2011 16:37:38 +0000 (16:37 +0000)]
Followup r102785, fix wrong index order in tables.sql. The patches are fine

12 years agoDon't pass the count parameter in rawParams() otherwise {{PLURAL:}} won't work (spott...
Alexandre Emsenhuber [Fri, 11 Nov 2011 16:09:34 +0000 (16:09 +0000)]
Don't pass the count parameter in rawParams() otherwise {{PLURAL:}} won't work (spotted while looking at r102794 but not related to that rev)

12 years ago(bug 32358) Do not display "No higher resolution available" if the file doesn't have...
Brian Wolff [Fri, 11 Nov 2011 15:59:40 +0000 (15:59 +0000)]
(bug 32358) Do not display "No higher resolution available" if the file doesn't have dimensions (like an audio file)

12 years agoReordered some functions for more consistency: setOldSubtitle() near other view-relat...
Alexandre Emsenhuber [Fri, 11 Nov 2011 15:58:17 +0000 (15:58 +0000)]
Reordered some functions for more consistency: setOldSubtitle() near other view-related functions and deprecated functions to the bottom

12 years agoFollow-up r102751 - I think this test was intermitently failing because it was re...
Brian Wolff [Fri, 11 Nov 2011 15:33:37 +0000 (15:33 +0000)]
Follow-up r102751 - I think this test was intermitently failing because it was re-using thumbs generated for previous tests. Add a random number to stop that.

12 years ago* applyed the patch from bug 26393 (please comment on the bug page)
Jure Kajzer [Fri, 11 Nov 2011 14:28:44 +0000 (14:28 +0000)]
* applyed the patch from bug 26393 (please comment on the bug page)

12 years agoLocalisation updates from http://translatewiki.net.
Siebrand Mazeland [Fri, 11 Nov 2011 13:20:56 +0000 (13:20 +0000)]
Localisation updates from translatewiki.net.

12 years agoRemove trailing newline in 'config-db-host-help'.
Siebrand Mazeland [Fri, 11 Nov 2011 12:25:58 +0000 (12:25 +0000)]
Remove trailing newline in 'config-db-host-help'.

12 years agoLocalisation updates. Add Canadian English, by popular demand.
Siebrand Mazeland [Fri, 11 Nov 2011 12:24:29 +0000 (12:24 +0000)]
Localisation updates. Add Canadian English, by popular demand.

12 years agoLocalisation updates from http://translatewiki.net.
Siebrand Mazeland [Fri, 11 Nov 2011 11:05:12 +0000 (11:05 +0000)]
Localisation updates from translatewiki.net.

Protocol relative URL updates in mainpagedocfooter translations (updated with bot) following up r102767.

12 years agoLocalisation updates from http://translatewiki.net.
Siebrand Mazeland [Fri, 11 Nov 2011 10:43:32 +0000 (10:43 +0000)]
Localisation updates from translatewiki.net.

Mostly protocol relative URL updates in translations (updated with bot) following up r102767, r102749.

12 years agoFollow-up 102749: more protocol relative URLs.
Siebrand Mazeland [Fri, 11 Nov 2011 10:39:30 +0000 (10:39 +0000)]
Follow-up 102749: more protocol relative URLs.

12 years ago(follow-up r99910) Make $wgEnableAutoRotation work...
Brian Wolff [Fri, 11 Nov 2011 04:09:05 +0000 (04:09 +0000)]
(follow-up r99910) Make $wgEnableAutoRotation work...

Also unit-tests. There's a bit of duplication in the unit tests, and I wasn't sure if there was a better way with less duplication.

12 years agoUpdate xcache url since the old url redirects to the lighttpd redmine homepage instea...
Daniel Friesen [Fri, 11 Nov 2011 03:40:13 +0000 (03:40 +0000)]
Update xcache url since the old url redirects to the lighttpd redmine homepage instead of anything related to xcache.

12 years agoUpdate Installer i18n to use some protocol relative urls.
Daniel Friesen [Fri, 11 Nov 2011 03:35:18 +0000 (03:35 +0000)]
Update Installer i18n to use some protocol relative urls.

12 years agoFollowup r102744 update parser tests.
Daniel Friesen [Fri, 11 Nov 2011 03:30:17 +0000 (03:30 +0000)]
Followup r102744 update parser tests.

12 years agoSwitch some urls inside en to protocol relative.
Daniel Friesen [Fri, 11 Nov 2011 03:20:45 +0000 (03:20 +0000)]
Switch some urls inside en to protocol relative.

12 years ago[Resources.php] Must. Have. Order.
Krinkle [Fri, 11 Nov 2011 00:17:38 +0000 (00:17 +0000)]
[Resources.php] Must. Have. Order.

12 years agoRELEASE-NOTES-1.19 for r102722
Sam Reed [Fri, 11 Nov 2011 00:13:27 +0000 (00:13 +0000)]
RELEASE-NOTES-1.19 for r102722

12 years ago* (bug 30062) Add $wgDBprefix option to cli installer
Sam Reed [Fri, 11 Nov 2011 00:05:04 +0000 (00:05 +0000)]
* (bug 30062) Add $wgDBprefix option to cli installer

Patch by Grunny

12 years agoFix file name and class case.
gicode [Thu, 10 Nov 2011 23:52:56 +0000 (23:52 +0000)]
Fix file name and class case.

Follow-up r102719

12 years agoAdd test to catch the problem fixed in r102595.
gicode [Thu, 10 Nov 2011 23:45:35 +0000 (23:45 +0000)]
Add test to catch the problem fixed in r102595.

Confirmed the test works by removing "Test" from one of the test file names.

12 years agoon tablesort, verify <caption> is the first child in the table
Antoine Musso [Thu, 10 Nov 2011 22:54:29 +0000 (22:54 +0000)]
on tablesort, verify <caption> is the first child in the table

r102303 tried to compare the whole table when bug 32047 only require
we have <caption> as a first child.  Easier definition leads to easier
code!

12 years agoAdded some revision table comments
Aaron Schulz [Thu, 10 Nov 2011 21:03:23 +0000 (21:03 +0000)]
Added some revision table comments

12 years agoLocalisation updates for core and extension messages from translatewiki.net
Raimond Spekking [Thu, 10 Nov 2011 20:56:42 +0000 (20:56 +0000)]
Localisation updates for core and extension messages from translatewiki.net

12 years agoDocumentation
Sam Reed [Thu, 10 Nov 2011 20:50:21 +0000 (20:50 +0000)]
Documentation

12 years ago* sry about that :S ... 10x Aaron
Jure Kajzer [Thu, 10 Nov 2011 20:50:01 +0000 (20:50 +0000)]
* sry about that :S ... 10x Aaron

12 years agoFix syntax error I introduced from r102683
Sam Reed [Thu, 10 Nov 2011 20:49:11 +0000 (20:49 +0000)]
Fix syntax error I introduced from r102683

12 years agoPass in some more , __METHOD__
Sam Reed [Thu, 10 Nov 2011 20:44:37 +0000 (20:44 +0000)]
Pass in some more , __METHOD__

12 years agoAdd $fname to tableExists
Sam Reed [Thu, 10 Nov 2011 20:39:23 +0000 (20:39 +0000)]
Add $fname to tableExists

Pass $fname/__METHOD__ in in upstream callers

12 years ago* fix as per comment on CR r102625#c25856
Jure Kajzer [Thu, 10 Nov 2011 19:49:32 +0000 (19:49 +0000)]
* fix as per comment on CR r102625#c25856

12 years agoRevert r102650, r102640. Caused breakage on translatewiki.net:
Siebrand Mazeland [Thu, 10 Nov 2011 19:01:41 +0000 (19:01 +0000)]
Revert r102650, r102640. Caused breakage on translatewiki.net:

No localisation cache found for English. Please run maintenance/rebuildLocalisationCache.php.

Backtrace:

#0 /www/w/includes/LocalisationCache.php(288): LocalisationCache->initLanguage('en')
#1 /www/w/includes/LocalisationCache.php(223): LocalisationCache->loadItem('en', 'specialPageAlia...')
#2 /www/w/languages/Language.php(2630): LocalisationCache->getItem('en', 'specialPageAlia...')
#3 /www/w/includes/SpecialPageFactory.php(211): Language->getSpecialPageAliases()
#4 /www/w/includes/SpecialPageFactory.php(247): SpecialPageFactory::getAliasList()
#5 /www/w/includes/Title.php(4186): SpecialPageFactory::resolveAlias('LanguageStats/n...')
#6 /www/w/includes/Wiki.php(154): Title->isSpecial('Badtitle')
#7 /www/w/includes/Wiki.php(605): MediaWiki->performRequest()
#8 /www/w/includes/Wiki.php(524): MediaWiki->main()
#9 /www/w/index.php(58): MediaWiki->run()
#10 {main}

12 years agoFollow-up r102587. Add details to comments and add a couple more tests.
gicode [Thu, 10 Nov 2011 18:02:38 +0000 (18:02 +0000)]
Follow-up r102587.  Add details to comments and add a couple more tests.

12 years agoMinor tweaks to r102595: remove echo that clutters output, etc
Chad Horohoe [Thu, 10 Nov 2011 15:20:01 +0000 (15:20 +0000)]
Minor tweaks to r102595: remove echo that clutters output, etc

12 years agoUse WikiPage instead of Article to call getRedirectTarget()
Alexandre Emsenhuber [Thu, 10 Nov 2011 14:31:19 +0000 (14:31 +0000)]
Use WikiPage instead of Article to call getRedirectTarget()

12 years agosome more oracle-phpunit-fu (should not affect non-oracle)
Jure Kajzer [Thu, 10 Nov 2011 13:29:32 +0000 (13:29 +0000)]
some more oracle-phpunit-fu (should not affect non-oracle)
* CloneDatabase - already droping tables in internal function, removed duplicate action
* DatabaseOracle - stopped ignoring "temporary" parameter
* added two parameters to phpunit (use-normal-tables & reuse-db), default actions stay the same
* with reuse-db oracle phpunit test run on oracle down to 1m 20s ;)

12 years agocorrect variable name
Antoine Musso [Thu, 10 Nov 2011 13:14:52 +0000 (13:14 +0000)]
correct variable name

This is caused by r102640, I have moved some code to a new function
and forgot to rename the internal variable name to match the function
parameter.

12 years agoMade DifferenceEngine use a context instead of global variables and updaters calls...
Alexandre Emsenhuber [Thu, 10 Nov 2011 13:06:52 +0000 (13:06 +0000)]
Made DifferenceEngine use a context instead of global variables and updaters calls to constructor in core

12 years agoMade setupGlobals() return the created context and use it instead of either global...
Alexandre Emsenhuber [Thu, 10 Nov 2011 12:49:10 +0000 (12:49 +0000)]
Made setupGlobals() return the created context and use it instead of either global variables or recreating more instance of those classes

12 years agoRemoved FeedItem::getLastMod() and FeedItem::getDBPrefixedTitle() since they are...
Alexandre Emsenhuber [Thu, 10 Nov 2011 12:09:33 +0000 (12:09 +0000)]
Removed FeedItem::getLastMod() and FeedItem::getDBPrefixedTitle() since they are not used and would throw an error since FeedItem::$Title is a string and not an object