lhc/web/wiklou.git
12 years agor92054: Some IE fixes
Leo Koppelkamm [Mon, 25 Jul 2011 16:51:11 +0000 (16:51 +0000)]
r92054: Some IE fixes

12 years agoUpdated hooks docs per r91123. The UI methods are not part of the object anymore.
Aaron Schulz [Mon, 25 Jul 2011 16:44:57 +0000 (16:44 +0000)]
Updated hooks docs per r91123. The UI methods are not part of the object anymore.

12 years agoReverted r92489 and added/use hideDeprecated() to MW test framework
Aaron Schulz [Mon, 25 Jul 2011 16:27:33 +0000 (16:27 +0000)]
Reverted r92489 and added/use hideDeprecated() to MW test framework

12 years agoTest for external links in the sidebar
Antoine Musso [Mon, 25 Jul 2011 15:42:50 +0000 (15:42 +0000)]
Test for external links in the sidebar

follow up r90949
Note: this does NOT test the parser external links only externals
links inside the sidebar.  This might help rewrite r90949.

12 years agoRemoving redundant check from $.fn.goIn/Out code.
Krinkle [Mon, 25 Jul 2011 08:58:51 +0000 (08:58 +0000)]
Removing redundant check from $.fn.goIn/Out code.

12 years agoUpdate JSMin+ to the newly released 1.4
Platonides [Sun, 24 Jul 2011 21:46:51 +0000 (21:46 +0000)]
Update JSMin+ to the newly released 1.4
This upstream release incorporates r92560 and r92563

12 years agoFix margin of r90743 (margin is different between ul & ol)
Robin Pepermans [Sun, 24 Jul 2011 21:40:35 +0000 (21:40 +0000)]
Fix margin of r90743 (margin is different between ul & ol)

12 years agoAdding documentation for mw.loader.register
Krinkle [Sun, 24 Jul 2011 21:36:54 +0000 (21:36 +0000)]
Adding documentation for mw.loader.register

12 years agoTrim trailing whitespace
Sam Reed [Sun, 24 Jul 2011 21:36:04 +0000 (21:36 +0000)]
Trim trailing whitespace

Add documentation

Remove unused variables

Remove an extract from ImageFunctionsTest

12 years agoMore mediawiki.js cleanup (addScript AJAX)
Krinkle [Sun, 24 Jul 2011 20:38:49 +0000 (20:38 +0000)]
More mediawiki.js cleanup (addScript AJAX)
- Update and merge in jQuery fixes:
-- Dereference script (added)
-- Order of actions
-- Regex instead of two string comparisons
-- Unit tests still pass :)

Follows up: r92933, 93012

12 years agoMore mediawiki.js cleanup
Krinkle [Sun, 24 Jul 2011 20:22:36 +0000 (20:22 +0000)]
More mediawiki.js cleanup
- Convert prototype object modifications into object literal. Saves bandwidth (less characters) and speeds up execution (no need to access 2 level deep object member repetitively). Local testing (Chrome Web Inspector) shows 14.80KB to 14.67KB (non-cached, debug=false), and execution time on cached request 32ms to 25ms.
- Un-indent 1 tab for d.setTime (Follows up r92964)
- Whitespace consistency
- Move var statements to top of loader's addScript

Follows up: r92933

12 years agoRename class to match change of method location
Sam Reed [Sun, 24 Jul 2011 19:59:42 +0000 (19:59 +0000)]
Rename class to match change of method location

12 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Sun, 24 Jul 2011 19:14:49 +0000 (19:14 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-07-24 19:00:00 UTC)

12 years agoFollowup r92796, r93002
Sam Reed [Sun, 24 Jul 2011 18:55:57 +0000 (18:55 +0000)]
Followup r92796, r93002

Move addition of config table to 1.19 section

12 years agoFollow-up r92924, set special page group for ChangeEmail
Aaron Schulz [Sun, 24 Jul 2011 18:54:07 +0000 (18:54 +0000)]
Follow-up r92924, set special page group for ChangeEmail

12 years agoFix for r92984: correct method name, thanks Jack Phoenix (oops!)
Alexandre Emsenhuber [Sun, 24 Jul 2011 17:37:00 +0000 (17:37 +0000)]
Fix for r92984: correct method name, thanks Jack Phoenix (oops!)

12 years agoSome misc fixes to Skin and SkinTemplate:
Alexandre Emsenhuber [Sun, 24 Jul 2011 17:05:42 +0000 (17:05 +0000)]
Some misc fixes to Skin and SkinTemplate:
* Removed Skin::getStylesheet(), not called from anywhere
* Removed Skin::setMembers() and moved the definition of the $userpage member to SkinTemplate::outputPage() since it's only used in that class
* Removed useless $out parameter of Skin::bottomScripts()
* Call Linker methods statically
* Use Linker::linkKnown() instead of Linker::link() if possible
* Escape 'mainpage' message when used for description
* Removed some variables from SkinTemplate::outputPage(): nscanonical, nsnumber, currevisionid that were used when the JavaScript global variables were defined in the template. Also changed pageclass and skinnameclass to be defined only when $useHeadElement is false
* Removed some unused members of SkinTemplate: $iscontent and $iseditable
* Refactored the part of SkinTemplate::outputPage() that sets copyright, viewcount, lastmod, credits and numberofwatchingusers to always define them to false first and set them when needed. Also modified the check to display the copyright; it will now only be displayed when $out->isArticle() is true and the page exists, since it is currently possible to display it on any page by adding the oldid parameter to the url.

12 years agoFixing messages.inc and rebuilding languages en and he.
Rotem Liss [Sun, 24 Jul 2011 09:25:19 +0000 (09:25 +0000)]
Fixing messages.inc and rebuilding languages en and he.

12 years agoAdd lang & dir attributes around the recentchangestext message, because it is in...
Robin Pepermans [Sun, 24 Jul 2011 00:56:59 +0000 (00:56 +0000)]
Add lang & dir attributes around the recentchangestext message, because it is in the content language.

12 years agofix doc
Jeroen De Dauw [Sat, 23 Jul 2011 20:58:18 +0000 (20:58 +0000)]
fix doc

12 years agofu r92933 - fix breakage
Jeroen De Dauw [Sat, 23 Jul 2011 20:56:08 +0000 (20:56 +0000)]
fu r92933 - fix breakage

12 years agoIt is stupid to test that a void method returns null. Add a comment explaining that
Platonides [Sat, 23 Jul 2011 20:23:26 +0000 (20:23 +0000)]
It is stupid to test that a void method returns null. Add a comment explaining that
what we are testing is actually the function existence (see r91123 summary)
Change the onArticle* to is_callable()s, so that a db is not needed.

12 years agoMake wfUrlEncode(null) reset the static. Two skipped tests work now.
Platonides [Sat, 23 Jul 2011 20:14:12 +0000 (20:14 +0000)]
Make wfUrlEncode(null) reset the static. Two skipped tests work now.

12 years agoChanged Maintenance::shouldExecute() to allow for multiple requires() in the stack...
Aaron Schulz [Sat, 23 Jul 2011 19:50:19 +0000 (19:50 +0000)]
Changed Maintenance::shouldExecute() to allow for multiple requires() in the stack. This avoids failing over requires due to Het wrappers.

12 years agoDifferenceEngine: introduce setDiffLang() to change the language in which the diff...
Robin Pepermans [Sat, 23 Jul 2011 19:03:54 +0000 (19:03 +0000)]
DifferenceEngine: introduce setDiffLang() to change the language in which the diff text is written.
Translate: set the the diff text according to the source language, on Special:PageTranslation and the translation messages. (Also fix direction of CSS class mw-translate-fuzzy).

12 years agoLocalization update for he.
Rotem Liss [Sat, 23 Jul 2011 18:50:07 +0000 (18:50 +0000)]
Localization update for he.

12 years agoDummy-proof incLoginThrottle/clearLoginThrottle with trim()
Aaron Schulz [Sat, 23 Jul 2011 09:49:54 +0000 (09:49 +0000)]
Dummy-proof incLoginThrottle/clearLoginThrottle with trim()

12 years agotrim $this->mUserName var so that login attempt throttle key isn't fragmented with...
Aaron Schulz [Sat, 23 Jul 2011 09:49:03 +0000 (09:49 +0000)]
trim $this->mUserName var so that login attempt throttle key isn't fragmented with spaces

12 years agoFix typo in r92933 that resulted in global variable leakage
Roan Kattouw [Sat, 23 Jul 2011 09:19:53 +0000 (09:19 +0000)]
Fix typo in r92933 that resulted in global variable leakage

12 years agoMinor mw.loader fixes
Krinkle [Sat, 23 Jul 2011 09:09:28 +0000 (09:09 +0000)]
Minor mw.loader fixes
- No functional changes
- Whitespace correction
- Comment fixes
- Combine var statements
- A few [[JSPERF]]ies
- Using mw instead of mediaWiki
- Putting global alias on top, to avoid a ReferenceError in case the immediately invoked "new function(){}" refers to mw during the construction
- "class" -> "constructor"
- caching "typeof dependencies" in mw.loader.using
- fix var "group" collision in mw.loader.work
- move var statements to top of functions
- fixing some occurrences of var statements in for-loops by declaring them before the loop
- Remove space before slash in html-fragement for jQuery html regex in <link /> and <br />

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