lhc/web/wiklou.git
12 years ago* (bug 29748) Add API search prefix support
Sam Reed [Tue, 26 Jul 2011 15:10:57 +0000 (15:10 +0000)]
* (bug 29748) Add API search prefix support

Patch by TheDJ

12 years agoFollowup r93157, missing another one of the stray )'s.
Daniel Friesen [Tue, 26 Jul 2011 03:36:27 +0000 (03:36 +0000)]
Followup r93157, missing another one of the stray )'s.

12 years agoFollowup r93132, misplaced ) caused 'dirname() expects exactly 1 parameter, 3 given...
Daniel Friesen [Tue, 26 Jul 2011 02:44:27 +0000 (02:44 +0000)]
Followup r93132, misplaced ) caused 'dirname() expects exactly 1 parameter, 3 given' error.

12 years agoImproved r93149 error message
Aaron Schulz [Tue, 26 Jul 2011 00:33:39 +0000 (00:33 +0000)]
Improved r93149 error message

12 years agoMade addWiki update wikiversions dat and cdb files for multiversion
Aaron Schulz [Tue, 26 Jul 2011 00:27:43 +0000 (00:27 +0000)]
Made addWiki update wikiversions dat and cdb files for multiversion

12 years agoAdd support for relative-protocol urls in mw.loader.load
Krinkle [Mon, 25 Jul 2011 23:04:30 +0000 (23:04 +0000)]
Add support for relative-protocol urls in mw.loader.load

12 years agoAdded a workaround for the lack of RequestContext in 1.17, so this code can be rolled...
Ian Baker [Mon, 25 Jul 2011 22:39:52 +0000 (22:39 +0000)]
Added a workaround for the lack of RequestContext in 1.17, so this code can be rolled into production.
This code can be removed in 1.18+, but it'll work either way.

12 years agoWhitespace fix
Roan Kattouw [Mon, 25 Jul 2011 22:03:08 +0000 (22:03 +0000)]
Whitespace fix

12 years agoAdding __METHOD__ to parameters passed to wfMkdirParents()
Sam Reed [Mon, 25 Jul 2011 22:01:19 +0000 (22:01 +0000)]
Adding __METHOD__ to parameters passed to wfMkdirParents()

12 years agostyle fix
Jeroen De Dauw [Mon, 25 Jul 2011 21:49:39 +0000 (21:49 +0000)]
style fix

12 years agoadded since tag
Jeroen De Dauw [Mon, 25 Jul 2011 21:11:58 +0000 (21:11 +0000)]
added since tag

12 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Mon, 25 Jul 2011 21:04:23 +0000 (21:04 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-07-25 20:48:00 UTC)

12 years agoRemoved code lost in r93105, wtf.
Aaron Schulz [Mon, 25 Jul 2011 20:20:13 +0000 (20:20 +0000)]
Removed code lost in r93105, wtf.

12 years agoMake Chad happy ;)
Aaron Schulz [Mon, 25 Jul 2011 20:11:00 +0000 (20:11 +0000)]
Make Chad happy ;)

12 years agor85886 broke $wgSharedPrefix
Platonides [Mon, 25 Jul 2011 20:08:49 +0000 (20:08 +0000)]
r85886 broke $wgSharedPrefix

12 years agoAdded include_once to shouldExecute() check
Aaron Schulz [Mon, 25 Jul 2011 19:54:14 +0000 (19:54 +0000)]
Added include_once to shouldExecute() check

12 years agoFollow-up r79518: added getCachedLastEditTime/getCachedLastEditTime methods to WikiPa...
Aaron Schulz [Mon, 25 Jul 2011 19:24:43 +0000 (19:24 +0000)]
Follow-up r79518: added getCachedLastEditTime/getCachedLastEditTime methods to WikiPage and check them in loadPageData() to see if we should hit the  This should lower the risk of stale data (by not just relying on cookie/session master position waiting).

12 years ago* Ignore any <nowiki> or comment sections
Leo Koppelkamm [Mon, 25 Jul 2011 19:03:26 +0000 (19:03 +0000)]
* Ignore any <nowiki> or comment sections
* More natural messages
* Respect wgCaseSensitiveNamespaces
* Regex: Add possible whitespace between "[[Category:" and the category name. ( [[Category: Foo]] )
* Make nearly all functions publicly accessible
* Add "cancel all" button
* Submit on enter keypress
* Check for redirects
* Color links correctly based on existance of category page
* Add a summary of the changes done into the edit summary ('+Category:foo, -Category:Bar: Foo is not correct...')
* Add more error handlers
* Add more hooks ( afterChange/Delete/add ).
* Pass category names to the hooks
* Allow hooks to abort by returning false
* Handle sortkey correctly in all operations
* Move addCategory form below categories.
* Fix any known IE6 and IE7 bugs.
* Add more documentation

12 years agoReplacing my nick with my real name in CREDITS
Leo Koppelkamm [Mon, 25 Jul 2011 18:58:05 +0000 (18:58 +0000)]
Replacing my nick with my real name in CREDITS

12 years agoFixed newFromArchiveRow to check for ar_page_id
Aaron Schulz [Mon, 25 Jul 2011 18:19:48 +0000 (18:19 +0000)]
Fixed newFromArchiveRow to check for ar_page_id

12 years agoMarked canChangePassword protected, w/s fixes
Aaron Schulz [Mon, 25 Jul 2011 18:05:54 +0000 (18:05 +0000)]
Marked canChangePassword protected, w/s fixes

12 years agoMake SideBarTest work with a Language other than English set.
Platonides [Mon, 25 Jul 2011 17:17:21 +0000 (17:17 +0000)]
Make SideBarTest work with a Language other than English set.
Follow up r93050

12 years agoChanged storeResult to storeStatus (more informative), removed leftover stack trace...
Ian Baker [Mon, 25 Jul 2011 16:55:19 +0000 (16:55 +0000)]
Changed storeResult to storeStatus (more informative), removed leftover stack trace call.  Followup to r92009

12 years agomw.user.js: Make sessionId public
Leo Koppelkamm [Mon, 25 Jul 2011 16:54:36 +0000 (16:54 +0000)]
mw.user.js: Make sessionId public

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