Sam Reed [Tue, 15 Nov 2011 11:04:00 +0000 (11:04 +0000)]
Followup r102575, recreate export-0.6.xsd copied with export-0.5.xsd history
Sam Reed [Tue, 15 Nov 2011 11:02:21 +0000 (11:02 +0000)]
Followup r102575, delete export-0.6.xsd to create from a copy of export-0.5.xsd
Roan Kattouw [Tue, 15 Nov 2011 09:59:32 +0000 (09:59 +0000)]
(bug 32241) Fix flickering behavior in IE. Patch by Lupo. See also r102948
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.
John Du Hart [Tue, 15 Nov 2011 02:42:07 +0000 (02:42 +0000)]
Fix for r102649
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
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.
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
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
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.
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
Daniel Friesen [Mon, 14 Nov 2011 21:57:36 +0000 (21:57 +0000)]
Add isset tests to stuff inside BaseTemplate::getToolbox.
Alexandre Emsenhuber [Mon, 14 Nov 2011 21:42:27 +0000 (21:42 +0000)]
Fix for r102997: forgot to change that variable
Raimond Spekking [Mon, 14 Nov 2011 21:39:03 +0000 (21:39 +0000)]
Localisation updates for core and extension messages from translatewiki.net
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
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
Roan Kattouw [Mon, 14 Nov 2011 19:44:13 +0000 (19:44 +0000)]
Remove commented-out variable ApiMain::$mRequest
Alexandre Emsenhuber [Mon, 14 Nov 2011 18:31:44 +0000 (18:31 +0000)]
Fix for r103001: using the object is actually a good idea
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
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
Max Semenik [Mon, 14 Nov 2011 16:53:50 +0000 (16:53 +0000)]
find on Windows is incompatible with *nix
Roan Kattouw [Mon, 14 Nov 2011 14:40:55 +0000 (14:40 +0000)]
Followup r99224: add message to ApiBase::$messageMap too
Sam Reed [Mon, 14 Nov 2011 14:36:06 +0000 (14:36 +0000)]
Add Platonides' "add wlexcludeuser to feedwatchlist" patch from bug 25325
Roan Kattouw [Mon, 14 Nov 2011 14:08:56 +0000 (14:08 +0000)]
Followup r102945: $wgFooterIcons too
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
Sam Reed [Mon, 14 Nov 2011 10:34:23 +0000 (10:34 +0000)]
Followup r102910
Make the link to the MW page https only
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
Roan Kattouw [Mon, 14 Nov 2011 09:16:30 +0000 (09:16 +0000)]
Fix for r102949: don't delete too much
Raimond Spekking [Mon, 14 Nov 2011 09:16:03 +0000 (09:16 +0000)]
Localisation updates for core and extension messages from translatewiki.net
Santhosh Thottingal [Mon, 14 Nov 2011 09:15:32 +0000 (09:15 +0000)]
Remove the kok-* codes got added unintentionally in r102891.
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
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
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
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
Roan Kattouw [Mon, 14 Nov 2011 08:06:41 +0000 (08:06 +0000)]
(bug 32380) Make get powered by link target protocol-relative
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)
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...
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
Santhosh Thottingal [Sun, 13 Nov 2011 12:50:20 +0000 (12:50 +0000)]
Correct the name of Sanskrit. Follow-up 102889.
Robin Pepermans [Sun, 13 Nov 2011 12:46:53 +0000 (12:46 +0000)]
Localise numbers in TOC added in r102334
Santhosh Thottingal [Sun, 13 Nov 2011 12:41:33 +0000 (12:41 +0000)]
Oops, missed to notice the missed <?php. Reverting.
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.
Santhosh Thottingal [Sun, 13 Nov 2011 12:22:10 +0000 (12:22 +0000)]
Correct the name of Sanskrit Language.
Bug 32393
Aaron Schulz [Sun, 13 Nov 2011 11:28:56 +0000 (11:28 +0000)]
Added rollback-related comment to nextSequenceValue()
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
Niklas Laxström [Sun, 13 Nov 2011 08:58:38 +0000 (08:58 +0000)]
Address comments in r97628
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
Diederik van Liere [Sun, 13 Nov 2011 01:50:24 +0000 (01:50 +0000)]
This patch fixes rev. 102575.
Aaron Schulz [Sat, 12 Nov 2011 22:36:47 +0000 (22:36 +0000)]
Document $wgGroupPermissions better, including per-NS stuff
Raimond Spekking [Sat, 12 Nov 2011 21:52:22 +0000 (21:52 +0000)]
Localisation updates for core and extension messages from translatewiki.net
Chad Horohoe [Sat, 12 Nov 2011 21:32:39 +0000 (21:32 +0000)]
Comment tweak on MediaWikiParserTest and make ResourceLoaderTest extend MediaWikiTestCase
Alexandre Emsenhuber [Sat, 12 Nov 2011 13:47:17 +0000 (13:47 +0000)]
Moved methods around to group them by functionnality
Alexandre Emsenhuber [Sat, 12 Nov 2011 12:13:08 +0000 (12:13 +0000)]
Per Nikerabbit, fix undefined variable notice from r102851
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
Roan Kattouw [Sat, 12 Nov 2011 09:55:28 +0000 (09:55 +0000)]
Allow extensions to add post-update maintenance scripts
Alexandre Emsenhuber [Sat, 12 Nov 2011 07:36:41 +0000 (07:36 +0000)]
Use WikiPage instead of Article
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
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.
Raimond Spekking [Fri, 11 Nov 2011 20:38:26 +0000 (20:38 +0000)]
Localisation updates for core and extension messages from translatewiki.net
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
Sam Reed [Fri, 11 Nov 2011 17:06:03 +0000 (17:06 +0000)]
Same for the getPostDatabaseUpdateMaintenance
We only need to run them once
Sam Reed [Fri, 11 Nov 2011 16:58:09 +0000 (16:58 +0000)]
Followup r102799, unconditionally running them anyway also isn't much use
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)
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
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)
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)
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
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.
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)
Siebrand Mazeland [Fri, 11 Nov 2011 13:20:56 +0000 (13:20 +0000)]
Localisation updates from translatewiki.net.
Siebrand Mazeland [Fri, 11 Nov 2011 12:25:58 +0000 (12:25 +0000)]
Remove trailing newline in 'config-db-host-help'.
Siebrand Mazeland [Fri, 11 Nov 2011 12:24:29 +0000 (12:24 +0000)]
Localisation updates. Add Canadian English, by popular demand.
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.
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.
Siebrand Mazeland [Fri, 11 Nov 2011 10:39:30 +0000 (10:39 +0000)]
Follow-up 102749: more protocol relative URLs.
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.
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.
Daniel Friesen [Fri, 11 Nov 2011 03:35:18 +0000 (03:35 +0000)]
Update Installer i18n to use some protocol relative urls.
Daniel Friesen [Fri, 11 Nov 2011 03:30:17 +0000 (03:30 +0000)]
Followup r102744 update parser tests.
Daniel Friesen [Fri, 11 Nov 2011 03:20:45 +0000 (03:20 +0000)]
Switch some urls inside en to protocol relative.
Krinkle [Fri, 11 Nov 2011 00:17:38 +0000 (00:17 +0000)]
[Resources.php] Must. Have. Order.
Sam Reed [Fri, 11 Nov 2011 00:13:27 +0000 (00:13 +0000)]
RELEASE-NOTES-1.19 for r102722
Sam Reed [Fri, 11 Nov 2011 00:05:04 +0000 (00:05 +0000)]
* (bug 30062) Add $wgDBprefix option to cli installer
Patch by Grunny
gicode [Thu, 10 Nov 2011 23:52:56 +0000 (23:52 +0000)]
Fix file name and class case.
Follow-up r102719
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.
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!
Aaron Schulz [Thu, 10 Nov 2011 21:03:23 +0000 (21:03 +0000)]
Added some revision table comments
Raimond Spekking [Thu, 10 Nov 2011 20:56:42 +0000 (20:56 +0000)]
Localisation updates for core and extension messages from translatewiki.net
Sam Reed [Thu, 10 Nov 2011 20:50:21 +0000 (20:50 +0000)]
Documentation
Jure Kajzer [Thu, 10 Nov 2011 20:50:01 +0000 (20:50 +0000)]
* sry about that :S ... 10x Aaron
Sam Reed [Thu, 10 Nov 2011 20:49:11 +0000 (20:49 +0000)]
Fix syntax error I introduced from r102683
Sam Reed [Thu, 10 Nov 2011 20:44:37 +0000 (20:44 +0000)]
Pass in some more , __METHOD__
Sam Reed [Thu, 10 Nov 2011 20:39:23 +0000 (20:39 +0000)]
Add $fname to tableExists
Pass $fname/__METHOD__ in in upstream callers
Jure Kajzer [Thu, 10 Nov 2011 19:49:32 +0000 (19:49 +0000)]
* fix as per comment on CR r102625#c25856
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}
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.
Chad Horohoe [Thu, 10 Nov 2011 15:20:01 +0000 (15:20 +0000)]
Minor tweaks to r102595: remove echo that clutters output, etc
Alexandre Emsenhuber [Thu, 10 Nov 2011 14:31:19 +0000 (14:31 +0000)]
Use WikiPage instead of Article to call getRedirectTarget()
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 ;)
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.