lhc/web/wiklou.git
12 years agoFollow-up r86482, r86485: removed user_name portion of user_email index per CR
Aaron Schulz [Sat, 23 Jul 2011 08:15:11 +0000 (08:15 +0000)]
Follow-up r86482, r86485: removed user_name portion of user_email index per CR

12 years agoChange != {} to !$.isEmptyObject(): the former always returned true because objects...
Roan Kattouw [Sat, 23 Jul 2011 03:48:35 +0000 (03:48 +0000)]
Change != {} to !$.isEmptyObject(): the former always returned true because objects are compared by reference. This didn't cause any realistic problems, though: the worst that could happen is that if you have a module name longer than the query string request limit (which is extremely unusual), mediawiki.js would probably go into an infinite loop.

12 years agoUpdates for new autopromote system & block hook
Aaron Schulz [Sat, 23 Jul 2011 00:56:17 +0000 (00:56 +0000)]
Updates for new autopromote system & block hook

12 years ago* Moved email changing from sp:Preferences to new sp:ChangeEmail, which requires...
Aaron Schulz [Sat, 23 Jul 2011 00:48:39 +0000 (00:48 +0000)]
* Moved email changing from sp:Preferences to new sp:ChangeEmail, which requires confirming the user password. This reduces the impact of session hijacking, which was increased slightly with r86482. Changing a password already required confirming the old one. This change closes the loophole of changing the email address and then doing a reset.
* Parse 'mailerror' message correctly

12 years agoFollowup r86622: add initial QUnit test cases for jquery.textSelection module.
Brion Vibber [Sat, 23 Jul 2011 00:44:00 +0000 (00:44 +0000)]
Followup r86622: add initial QUnit test cases for jquery.textSelection module.

* tests .textSelection()'s encapsulateText method mostly (also uses setSelection, getContents, and getSelection)
* examples from WikiEditor toolbar: sig, bold, h2 (ownline), ulist (ownline & splitlines)
* confirms that splitlines works more or less as expected, at least for basic single-line, single split-line, and multi-line cases

Doesn't test the WikiEditor iframe mode since that's in a separate extension; when it's possible to test those things too, that'll need to be run there.

One of the h2 tests fails in IE6, returning selected text that's offset by one character from what's expected. I'm not sure whether it's actually selecting the wrong text or whether it's returning the wrong text -- needs further investigation.

Also note that there's no setContents submethod in textSelection, despite there being some notes about one.

12 years agoin "marked version X of [[Page]] patrolled" on IRC, the "version" displays according...
Robin Pepermans [Fri, 22 Jul 2011 22:50:03 +0000 (22:50 +0000)]
in "marked version X of [[Page]] patrolled" on IRC, the "version" displays according to the user language. If this is the correct fix (didn't test), it can perhaps be merged with 1.18 and 1.17wmf1.

12 years agoFollow-up r92887: clear throttle count once the password is accepted as normal
Aaron Schulz [Fri, 22 Jul 2011 22:42:29 +0000 (22:42 +0000)]
Follow-up r92887: clear throttle count once the password is accepted as normal

12 years agoRemoved Special{$this->getName()}ModifyFormFields from r86482. Seems kind of weird...
Aaron Schulz [Fri, 22 Jul 2011 21:31:50 +0000 (21:31 +0000)]
Removed Special{$this->getName()}ModifyFormFields from r86482. Seems kind of weird, was undocumented, and is unused by extensions.

12 years agoImproved r92884 comments a bit on second thought
Aaron Schulz [Fri, 22 Jul 2011 21:18:30 +0000 (21:18 +0000)]
Improved r92884 comments a bit on second thought

12 years agoFix for r86482: throttle password attempts for SpecialChangePassword (uses r92884...
Aaron Schulz [Fri, 22 Jul 2011 21:06:39 +0000 (21:06 +0000)]
Fix for r86482: throttle password attempts for SpecialChangePassword (uses r92884, r92886 code)

12 years agoFollow-up r92884: mark these functions static
Aaron Schulz [Fri, 22 Jul 2011 21:04:53 +0000 (21:04 +0000)]
Follow-up r92884: mark these functions static

12 years agoRefactored code out into incLoginThrottle/clearLoginThrottle functions (for use by...
Aaron Schulz [Fri, 22 Jul 2011 20:58:30 +0000 (20:58 +0000)]
Refactored code out into incLoginThrottle/clearLoginThrottle functions (for use by SpecialChangePassword et al)

12 years agoDocument parameter in loadInputFromParameters
Aaron Schulz [Fri, 22 Jul 2011 19:44:48 +0000 (19:44 +0000)]
Document parameter in loadInputFromParameters

12 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Fri, 22 Jul 2011 19:41:59 +0000 (19:41 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-07-22 19:19:00 UTC)

12 years agoFix nukeNS maintenance script to correctly reference nukePage. Add in all option...
OverlordQ [Fri, 22 Jul 2011 16:10:22 +0000 (16:10 +0000)]
Fix nukeNS maintenance script to correctly reference nukePage. Add in all option to nuke everything regardless of revision count, defaults to false.

12 years agoAnd I forgot to rename that variable in r92855
Alexandre Emsenhuber [Fri, 22 Jul 2011 10:48:16 +0000 (10:48 +0000)]
And I forgot to rename that variable in r92855

12 years agoReduce a bit the coupling between Skin and OutputPage:
Alexandre Emsenhuber [Fri, 22 Jul 2011 10:45:07 +0000 (10:45 +0000)]
Reduce a bit the coupling between Skin and OutputPage:
* Removed Skin::setupUserCss() and merged it in OutputPage::buildCssLinks() and OutputPage::buildCssLinksArray(), also removed its call from ApiParse.php
* Moved Skin::userCanPreview() to OutputPage since two of the three calls to that function are made from there and the last one in SkinTemplate.php is in a somewhat deprecated function
* Removed the Skin parameter from OutputPage::buildCssLinks(), OutputPage::getHeadScripts(), OutputPage::getBottomScripts() and OutputPage::makeResourceLoaderLink() since we now have a context

Also made ApiParse.php call createContext() instead of create a new RequestContext manually and set its Title  so so that it does not rely on $wgRequest and $wgTitle to get that member objects

12 years agoAvoid redefining TESTWIKI constant (Het wrappers already do this)
Aaron Schulz [Fri, 22 Jul 2011 10:32:19 +0000 (10:32 +0000)]
Avoid redefining TESTWIKI constant (Het wrappers already do this)

12 years agofollow-up to r91499 - set padding for the elements inside the button rather than...
Ryan Kaldari [Fri, 22 Jul 2011 02:11:49 +0000 (02:11 +0000)]
follow-up to r91499 - set padding for the elements inside the button rather than for the button itself - this is how normal jquery.UI skins handle it, as it prevents the button padding from screwing up the positioning of the icons.

12 years agoRemove $rtl = true; from translation file in Latin script.
Robin Pepermans [Fri, 22 Jul 2011 00:06:08 +0000 (00:06 +0000)]
Remove $rtl = true; from translation file in Latin script.

12 years agoActually alias sessionkey to filekey, fixes bug in r92459
Ian Baker [Thu, 21 Jul 2011 22:28:11 +0000 (22:28 +0000)]
Actually alias sessionkey to filekey, fixes bug in r92459

12 years agoFixes for r92538 & r92528:
Robin Pepermans [Thu, 21 Jul 2011 22:19:23 +0000 (22:19 +0000)]
Fixes for r92538 & r92528:
* use default null for $local
* use foreach for database result

12 years agoself rv r90483. Still needs investigating though
Chad Horohoe [Thu, 21 Jul 2011 22:04:55 +0000 (22:04 +0000)]
self rv r90483. Still needs investigating though

12 years agoUse proper nosuchuser msg (fix for r86482)
Aaron Schulz [Thu, 21 Jul 2011 20:56:20 +0000 (20:56 +0000)]
Use proper nosuchuser msg (fix for r86482)

12 years agoFix for r92702: there's no such method in Article class
Alexandre Emsenhuber [Thu, 21 Jul 2011 20:23:30 +0000 (20:23 +0000)]
Fix for r92702: there's no such method in Article class

12 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Thu, 21 Jul 2011 19:32:47 +0000 (19:32 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-07-21 19:11:00 UTC)

12 years agoAddress fixme on r86697: simplify the code a lot by not escaping thisquery and killin...
Roan Kattouw [Thu, 21 Jul 2011 18:22:45 +0000 (18:22 +0000)]
Address fixme on r86697: simplify the code a lot by not escaping thisquery and killing thisurl in favor of thispage. Per CR comments these vars aren't used anywhere else. I grepped phase3/includes , phase3/skins and extensions/ to confirm.

12 years agoFix r78824 after some misunderstandings in the CR comments. The querypage API module...
Roan Kattouw [Thu, 21 Jul 2011 18:03:25 +0000 (18:03 +0000)]
Fix r78824 after some misunderstandings in the CR comments. The querypage API module was checking for disabled status and setting the 'disabled' attribute in the output, but would then happily proceed to call doQuery() on a disabled query page.

12 years agoFollowup r92329: Fixes the localize test cases in IE 6 and 7.
Brion Vibber [Thu, 21 Jul 2011 17:45:03 +0000 (17:45 +0000)]
Followup r92329: Fixes the localize test cases in IE 6 and 7.

Looks like we do in fact need to select on 'msg,html\\:msg' in order to find the <html:msg> bits on both IE 6/7 (search for 'msg') and everything-else (search for 'html:msg').

12 years agodecodeOptions() used by GlobalAuth - made it public
Aaron Schulz [Thu, 21 Jul 2011 17:22:01 +0000 (17:22 +0000)]
decodeOptions() used by GlobalAuth - made it public

12 years agoRemove mw.util.inArray
Krinkle [Thu, 21 Jul 2011 16:41:21 +0000 (16:41 +0000)]
Remove mw.util.inArray
- redundant and makes it even more confusing than jQuery's "inArray" already was.
- Reverts r92261
- Fixed usage in /trunk/*
-- http://toolserver.org/~krinkle/wikimedia-svn-search/view.php?id=245&hash=4ef50cd2f7017954e562155ccceba878

While at it, also took take of the r92297 fixme. Item argument must be before array argument.

12 years agoFix for r92740: removed debugging code
Alexandre Emsenhuber [Thu, 21 Jul 2011 12:13:01 +0000 (12:13 +0000)]
Fix for r92740: removed debugging code

12 years agoWhitespace update.
Siebrand Mazeland [Thu, 21 Jul 2011 11:53:03 +0000 (11:53 +0000)]
Whitespace update.

12 years agoRemove messages that shouldn't be here.
Siebrand Mazeland [Thu, 21 Jul 2011 11:44:45 +0000 (11:44 +0000)]
Remove messages that shouldn't be here.

12 years agoRemoved SkinTemplateSetupPageCss hook and SkinTemplate::setupPageCss(), no extension...
Alexandre Emsenhuber [Thu, 21 Jul 2011 11:43:05 +0000 (11:43 +0000)]
Removed SkinTemplateSetupPageCss hook and SkinTemplate::setupPageCss(), no extension use this anymore. This can only add raw CSS to page; it is much better to use the ResourceLoader (or to link to a file). But if it is really needed, extensions can use the BeforePageDisplay to achieve the same functionnality.

12 years ago* Made Skin::userCanPreview() use Title::getUserPermissionsErrors() instead of Title...
Alexandre Emsenhuber [Thu, 21 Jul 2011 10:37:43 +0000 (10:37 +0000)]
* Made Skin::userCanPreview() use Title::getUserPermissionsErrors() instead of Title::userCanEditCssSubpage() and Title::userCanEditJsSubpage() so that the checks are the same as EditPage's ones
* Marked Title::userCanEditCssSubpage() and Title::userCanEditJsSubpage() as deprecated since these were the lasts calls to that functions (core and extensions)
* Get the action parameter from Skin::userCanPreview() instead of requesting it from the callers

12 years agoRevert non-functional parts of r82343 -- 'select' parameter that's never actually...
Brion Vibber [Wed, 20 Jul 2011 23:51:52 +0000 (23:51 +0000)]
Revert non-functional parts of r82343 -- 'select' parameter that's never actually been exported or used, and was always being forced to true before being discarded anyway.

12 years agoRELEASE-NOTES for r79383
Roan Kattouw [Wed, 20 Jul 2011 23:44:00 +0000 (23:44 +0000)]
RELEASE-NOTES for r79383

12 years agoRevert DatabaseBase::tablePrefix() part of r79272: doesn't seem to be really necessar...
Chad Horohoe [Wed, 20 Jul 2011 23:27:34 +0000 (23:27 +0000)]
Revert DatabaseBase::tablePrefix() part of r79272: doesn't seem to be really necessary (tests are all still passing, Mysql && Sqlite) and as Tim points out this breaks anything trying to use it as an accessor rather than mutator.

12 years agoRevert r85034, r81186, r77638: per CR on r77638: XMLReader and XMLWriter are memory...
Chad Horohoe [Wed, 20 Jul 2011 23:06:24 +0000 (23:06 +0000)]
Revert r85034, r81186, r77638: per CR on r77638: XMLReader and XMLWriter are memory-hungry beasts and this script OOMs constantly.

This was already reverted in 1.17wmf1 (r82930) by Ariel. Doing the same in trunk now. I'm not opposed to using the new pretty XML* classes, but somebody needs to debug why they eat memory for breakfast, lunch and dinner.

12 years ago(bug 25355) Parser generates edit section links for special pages
Chad Horohoe [Wed, 20 Jul 2011 22:32:30 +0000 (22:32 +0000)]
(bug 25355) Parser generates edit section links for special pages

Per Tim on r58362: disable edit section links on all text parsed via $wgOut. Article already handles setting this to true for page content, so this shouldn't really hurt anything. Could use some tests to confirm the behavior, however. Should resolve the last problems with r70498 and friends.

12 years agoUse $this->getLang() per Nikerabbit on r91648.
Robin Pepermans [Wed, 20 Jul 2011 22:31:47 +0000 (22:31 +0000)]
Use $this->getLang() per Nikerabbit on r91648.

12 years ago* $wgDnsBlacklistUrls now accepts an array with url and key as the elements to work...
Ryan Schmidt [Wed, 20 Jul 2011 20:12:48 +0000 (20:12 +0000)]
* $wgDnsBlacklistUrls now accepts an array with url and key as the elements to work with DNSBLs that require keys, such as Project Honeypot.

12 years ago* Use local context instead of global variables
Alexandre Emsenhuber [Wed, 20 Jul 2011 19:49:15 +0000 (19:49 +0000)]
* Use local context instead of global variables
* Call Linker methods statically
* Throw exceptions directly instead of calling OutputPage's methods that will throw them
* Use Title::getUserPermissionsErrors() instead of Title::userCan() so that the User object can be passed to them

12 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Wed, 20 Jul 2011 19:26:59 +0000 (19:26 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-07-20 19:00:00 UTC)

12 years agoDocumenting new parser hook, re r92506.
Ian Baker [Wed, 20 Jul 2011 17:08:37 +0000 (17:08 +0000)]
Documenting new parser hook, re r92506.
This refers to an extension that's not checked in quite yet, FYI

12 years agoMake Title::isNamespaceProtected() require the $user parameter, the only call to...
Alexandre Emsenhuber [Wed, 20 Jul 2011 16:49:02 +0000 (16:49 +0000)]
Make Title::isNamespaceProtected() require the $user parameter, the only call to it is in the file itself

12 years agoCommit a list of unimplemented tests.
Platonides [Wed, 20 Jul 2011 15:38:13 +0000 (15:38 +0000)]
Commit a list of unimplemented tests.

12 years agoFollow up r92635
Platonides [Wed, 20 Jul 2011 15:35:48 +0000 (15:35 +0000)]
Follow up r92635

12 years agoFix for r91885.
Platonides [Wed, 20 Jul 2011 15:33:46 +0000 (15:33 +0000)]
Fix for r91885.
These tests were added in r91885.

12 years agoFollow up r92635.
Platonides [Wed, 20 Jul 2011 15:30:57 +0000 (15:30 +0000)]
Follow up r92635.

12 years agoI like better checking for the actual extension, loading if needed (and able).
Platonides [Wed, 20 Jul 2011 15:24:21 +0000 (15:24 +0000)]
I like better checking for the actual extension, loading if needed (and able).

12 years agoFixup r89029. You don't include the brackets in the method name!
Platonides [Wed, 20 Jul 2011 15:13:58 +0000 (15:13 +0000)]
Fixup r89029. You don't include the brackets in the method name!

--ta línea y las que están debajo serán ignoradas--

M    includes/media/SVGMetadataExtractor.php
M    tests/phpunit/includes/media/SVGMetadataExtractorTest.php

12 years agoRemoved todos, not useful
Niklas Laxström [Wed, 20 Jul 2011 12:59:11 +0000 (12:59 +0000)]
Removed todos, not useful
Moved separators to separatorTransformTable

12 years agoRemove @return void documentation
Sam Reed [Wed, 20 Jul 2011 11:46:27 +0000 (11:46 +0000)]
Remove @return void documentation

Add missing error to getPossibleErrors

12 years agoAllow blocked sysops to view Special:Unblock
Aryeh Gregor [Wed, 20 Jul 2011 02:34:25 +0000 (02:34 +0000)]
Allow blocked sysops to view Special:Unblock

Previously, trying to visit [[Special:Unblock]] while blocked would give
an error, even if the user has the unblockself permission.  I moved the
permission check from execute() to right before the code that does the
actual unblocking.  This should probably be examined closely for
security, since I'm not familiar with this code, although the impact of
a bug would be small.  I tested some simple cases manually and they all
worked as expected:

* Unblocking self works (as before)
* Submitting the form fails unless you're trying to unblock yourself (as
  before)
* GETting the page with any parameters works (previously failed unless
  the target was your own username)

12 years agoFix inaccurate return type in comment
Aryeh Gregor [Wed, 20 Jul 2011 02:34:17 +0000 (02:34 +0000)]
Fix inaccurate return type in comment

12 years agoadded missing null checks in callers of Revision::newNullRevision
Owen Davis [Wed, 20 Jul 2011 00:15:05 +0000 (00:15 +0000)]
added missing null checks in callers of Revision::newNullRevision

12 years ago$wgUploadNavigationUrl should be used for file redlinks if $wgUploadMissingFileUrl...
Robin Pepermans [Tue, 19 Jul 2011 23:09:55 +0000 (23:09 +0000)]
$wgUploadNavigationUrl should be used for file redlinks if $wgUploadMissingFileUrl is not set. The first was used for this until the second was introduced in r69997 (1.17). According to the comments there it was broken in 1.16 but as far as I tested it worked in 1.16. In any case, the old behavior should be restored as most WMF wikis have set wgUploadNavigationUrl but not wgUploadMissingFileUrl.

12 years agoFollow-up r92588. Make it work regardless of $wgHtml5
Platonides [Tue, 19 Jul 2011 22:10:05 +0000 (22:10 +0000)]
Follow-up r92588. Make it work regardless of $wgHtml5

12 years agoSince r92364 UserTest.php needs a database
Platonides [Tue, 19 Jul 2011 21:41:25 +0000 (21:41 +0000)]
Since r92364 UserTest.php needs a database

12 years agoFollow up r91419. A boolean attribute can be both the empty string and its name ...
Platonides [Tue, 19 Jul 2011 21:38:28 +0000 (21:38 +0000)]
Follow up r91419. A boolean attribute can be both the empty string and its name [whatwg.org/specs/web-apps/current-work/multipage/common-microsyntaxes.html#boolean-attributes]
We use the later since that's what xhtml1 required [http://www.w3.org/TR/xhtml1/#h-4.5].

12 years ago* Use local context instead of global variables
Alexandre Emsenhuber [Tue, 19 Jul 2011 21:35:37 +0000 (21:35 +0000)]
* Use local context instead of global variables
* Call Linker methods statically

12 years agoSpacing, removed unneded global.
Platonides [Tue, 19 Jul 2011 21:22:51 +0000 (21:22 +0000)]
Spacing, removed unneded global.

12 years agoFixes for URL expanding in CSSMin: adjust the offset correctly (this could've theoret...
Roan Kattouw [Tue, 19 Jul 2011 21:19:50 +0000 (21:19 +0000)]
Fixes for URL expanding in CSSMin: adjust the offset correctly (this could've theoretically resulted in very strange bugs) and only call wfExpandUrl() if available (the file is in includes/libs so it should work outside of MediaWiki)

12 years agoRemove the globals. r91570 was wrong saying that parent::setUp()
Platonides [Tue, 19 Jul 2011 21:05:17 +0000 (21:05 +0000)]
Remove the globals. r91570 was wrong saying that parent::setUp()
would initialise those vars (this class parent is MediaWikiTestCase,
not MediaWikiLangTestCase) but the language doesn't seem to matter.

12 years agoFollow-up r91518
Platonides [Tue, 19 Jul 2011 20:36:09 +0000 (20:36 +0000)]
Follow-up r91518

12 years agoFollow up r92036. The global is not needed now.
Platonides [Tue, 19 Jul 2011 20:31:48 +0000 (20:31 +0000)]
Follow up r92036. The global is not needed now.

12 years agoFollow-up r91246. The global is no longer needed.
Platonides [Tue, 19 Jul 2011 20:28:02 +0000 (20:28 +0000)]
Follow-up r91246. The global is no longer needed.

12 years agor91784 forgot to change one instance of $wgUser to $user
Platonides [Tue, 19 Jul 2011 20:21:11 +0000 (20:21 +0000)]
r91784 forgot to change one instance of $wgUser to $user

12 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Tue, 19 Jul 2011 20:10:05 +0000 (20:10 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-07-19 19:45:00 UTC)

12 years agoFollow up r91561. Use canonical class names.
Platonides [Tue, 19 Jul 2011 20:06:01 +0000 (20:06 +0000)]
Follow up r91561. Use canonical class names.

12 years agoExpand the defines from JSTokenizer::__construct() placing them at the top of the...
Platonides [Tue, 19 Jul 2011 20:03:41 +0000 (20:03 +0000)]
Expand the defines from JSTokenizer::__construct() placing them at the top of the file.
This fixes the Notices that would be produced if several JSTokenizer were instantiated.
jsminplus was added in r91591.

Defines code was generated with:
$js = new JSTokenizer();
foreach ($js->opTypeNames as $operand => $name) echo "define('OP_$name', '$operand');\n";
foreach ($js->keywords as $keyword) echo "define('KEYWORD_" . strtoupper($keyword) . "', '$keyword');\n";

12 years agoRemove double ; and final ?> from jsminplus (imported in r91591).
Platonides [Tue, 19 Jul 2011 19:53:00 +0000 (19:53 +0000)]
Remove double ; and final ?> from jsminplus (imported in r91591).
This should be uncontroversial.

12 years agoProfiling errors. r92106 missed a wfProfileOut
Platonides [Tue, 19 Jul 2011 19:05:23 +0000 (19:05 +0000)]
Profiling errors. r92106 missed a wfProfileOut
r92118 added a wfProfileIn but not all returns were covered. Also changed its spaces to tabs.

12 years agoFollow up to r91561: Use the canonical class names.
Platonides [Tue, 19 Jul 2011 19:00:09 +0000 (19:00 +0000)]
Follow up to r91561: Use the canonical class names.

12 years agoFollow-up r92528:
Robin Pepermans [Tue, 19 Jul 2011 15:52:38 +0000 (15:52 +0000)]
Follow-up r92528:
* remove @static
* return database result directly (no need for while())
* getAllPrefixesDb() -> getAllPrefixesDB()

12 years agoFollow-up r92528: probably better to put it in the API & new features sections
Robin Pepermans [Tue, 19 Jul 2011 13:30:38 +0000 (13:30 +0000)]
Follow-up r92528: probably better to put it in the API & new features sections

12 years ago(bug 19838) API does not use interwiki cache.
Robin Pepermans [Tue, 19 Jul 2011 12:30:18 +0000 (12:30 +0000)]
(bug 19838) API does not use interwiki cache.

Patch by Beau; modified to work with current code.

12 years agomark a non-API function private; rename it to reflect what it does; call getPath...
Russ Nelson [Tue, 19 Jul 2011 03:44:28 +0000 (03:44 +0000)]
mark a non-API function private; rename it to reflect what it does; call getPath() rather than accessing object variable directly

12 years agostyle fix
Jeroen De Dauw [Tue, 19 Jul 2011 00:43:20 +0000 (00:43 +0000)]
style fix

12 years agoRefactored section assembly code to be more readable
Ian Baker [Mon, 18 Jul 2011 23:23:14 +0000 (23:23 +0000)]
Refactored section assembly code to be more readable
Added a hook that's called for each section.  This allows sections to be addressed separately at the document level, for example by wrapping each in a div (as in the reverted r50769).  This in-turn enables richer section-specific UI, like highlighting or in-line editing.

12 years agoRevert 2 from r92498
Sam Reed [Mon, 18 Jul 2011 23:04:09 +0000 (23:04 +0000)]
Revert 2 from r92498

12 years agoUpdate code comments that point to 1.18 to point to 1.19
Sam Reed [Mon, 18 Jul 2011 23:01:08 +0000 (23:01 +0000)]
Update code comments that point to 1.18 to point to 1.19

12 years agoAdd RELEASE-NOTES-1.18.old into RELEASE-NOTES-1.18
Sam Reed [Mon, 18 Jul 2011 22:53:52 +0000 (22:53 +0000)]
Add RELEASE-NOTES-1.18.old into RELEASE-NOTES-1.18

Needs svn copy in REL1_18

12 years agoRemoved testBug29116LoadWithEmptyIp. Fails due to wfDeprecated() call in load() and...
Aaron Schulz [Mon, 18 Jul 2011 22:30:38 +0000 (22:30 +0000)]
Removed testBug29116LoadWithEmptyIp. Fails due to wfDeprecated() call in load() and nothing uses that so it's not worth it.

12 years agoMove current RELEASE-NOTES-1.18 to RELEASE-NOTES-1.18.old
Sam Reed [Mon, 18 Jul 2011 22:27:25 +0000 (22:27 +0000)]
Move current RELEASE-NOTES-1.18 to RELEASE-NOTES-1.18.old

Moved RELEASE-NOTES-1.19 to RELEASE-NOTES-1.18

Wipe RELEASE-NOTES-1.19

Updating text where necessary

Keeping RELEASE-NOTES-1.18.old till we've established there's nothing that just went into that changelog

12 years agoAdd comment
Sam Reed [Mon, 18 Jul 2011 22:23:42 +0000 (22:23 +0000)]
Add comment

Remove unused wfGetDb()

12 years agoFix autoblocks in r92480 r92482 -- modified the wrong half
Andrew Garrett [Mon, 18 Jul 2011 22:02:11 +0000 (22:02 +0000)]
Fix autoblocks in r92480 r92482 -- modified the wrong half

12 years agoIt seems people don't either pay attention to code comments, or those comments lie
Sam Reed [Mon, 18 Jul 2011 22:01:40 +0000 (22:01 +0000)]
It seems people don't either pay attention to code comments, or those comments lie

r92461

12 years agoFix autoblocks in r92480
Andrew Garrett [Mon, 18 Jul 2011 21:56:59 +0000 (21:56 +0000)]
Fix autoblocks in r92480

12 years ago(bug 29959) Installer fatal when cURL and allow_url_fopen is disabled and user tries...
Chad Horohoe [Mon, 18 Jul 2011 21:56:10 +0000 (21:56 +0000)]
(bug 29959) Installer fatal when cURL and allow_url_fopen is disabled and user tries to subsribe to mediawiki-announce

Really, I'm not sure about the usefulness of exploding with a MWException anytime we can't do an external request, but at least we can stop the installer from exploding :)

12 years agoBlock.php fixes: Always store mExpiry as a TS_MW or "infinity". Convert as appropriate.
Andrew Garrett [Mon, 18 Jul 2011 21:48:56 +0000 (21:48 +0000)]
Block.php fixes: Always store mExpiry as a TS_MW or "infinity". Convert as appropriate.

12 years ago* (bug 29938) list=users&usprop=rights shows rights the user doesn't have
Sam Reed [Mon, 18 Jul 2011 21:26:33 +0000 (21:26 +0000)]
* (bug 29938) list=users&usprop=rights shows rights the user doesn't have

12 years agoLet Skin extend ContextSource instead of reinventing the wheel
Alexandre Emsenhuber [Mon, 18 Jul 2011 20:52:22 +0000 (20:52 +0000)]
Let Skin extend ContextSource instead of reinventing the wheel

12 years agoRefactored new getAutomaticGroups() function out of getEffectiveGroups()
Aaron Schulz [Mon, 18 Jul 2011 20:44:51 +0000 (20:44 +0000)]
Refactored new getAutomaticGroups() function out of getEffectiveGroups()

12 years agoDocumentation updates
Sam Reed [Mon, 18 Jul 2011 20:11:53 +0000 (20:11 +0000)]
Documentation updates

Add a couple of missing explicit class variables

12 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Mon, 18 Jul 2011 20:05:52 +0000 (20:05 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-07-18 19:50:00 UTC)

12 years agoSet explicit public modifier
Sam Reed [Mon, 18 Jul 2011 19:56:16 +0000 (19:56 +0000)]
Set explicit public modifier

Swap @private to private

12 years agochanged sessionkey to filekey to keep consistent with the rest of UploadStash (while...
Ian Baker [Mon, 18 Jul 2011 19:31:38 +0000 (19:31 +0000)]
changed sessionkey to filekey to keep consistent with the rest of UploadStash (while retaining sessionkey for backwards compatibility)