lhc/web/wiklou.git
12 years agoParser can take mw.user too along with male, female for {{gender:$1|..}}
Santhosh Thottingal [Mon, 2 Jan 2012 12:21:34 +0000 (12:21 +0000)]
Parser can take mw.user too along with male, female for {{gender:$1|..}}
If the parameter passed is mw.user, use the gender from mw.user.options. If not, use the passed gender.
Update the qunit tests.
Update the documentation.
Followup r107811

12 years ago* Always set 'userjs' and 'userjsprev' items to false since they are now incorporated...
Alexandre Emsenhuber [Mon, 2 Jan 2012 12:19:24 +0000 (12:19 +0000)]
* Always set 'userjs' and 'userjsprev' items to false since they are now incorporated in 'bottomscript' (only affects skins not using OutputPage::headElement())
* Removed SkinTemplate::setupUserJs() since it's no longer used and marked OutputPage::isUserJsAllowed() for removal in 1.20 since its last call is now gone

12 years ago* Moved wfReportTime() call just before executing 'SkinTemplateOutputPageBeforeExec...
Alexandre Emsenhuber [Mon, 2 Jan 2012 12:04:51 +0000 (12:04 +0000)]
* Moved wfReportTime() call just before executing 'SkinTemplateOutputPageBeforeExec' hook to take into account remaining calls
* Group similar stuff
* Factorise calls to $this->getLanguage()
* Facrorise calls to $user->is(Anon|LoggedIn)()
* Changed the code that wraps 'subtitle' and 'undelete' items to be more readable

12 years agoUpdated comment since $wgArticle is going to be removed in 1.20.
Alexandre Emsenhuber [Mon, 2 Jan 2012 11:59:56 +0000 (11:59 +0000)]
Updated comment since $wgArticle is going to be removed in 1.20.

12 years agoFollow-up r107806 - More extensive tests for Language::sprintfDate. Including test...
Brian Wolff [Mon, 2 Jan 2012 10:41:58 +0000 (10:41 +0000)]
Follow-up r107806 - More extensive tests for Language::sprintfDate. Including test to make sure not affected by php timezone.

Also adds a small test for converting numerals (formatNum) in Arabic.

12 years agoMake mw.jqueryMsg understand gender.
Santhosh Thottingal [Mon, 2 Jan 2012 09:44:59 +0000 (09:44 +0000)]
Make mw.jqueryMsg understand gender.
Add qunit testcases.
Followup r107808

12 years agoUse strict comparison for length property.
Santhosh Thottingal [Mon, 2 Jan 2012 09:21:03 +0000 (09:21 +0000)]
Use strict comparison for length property.
Follow up r107808

12 years agoAdd gender support. This method is useful only if we have parser that can understand...
Santhosh Thottingal [Mon, 2 Jan 2012 09:08:23 +0000 (09:08 +0000)]
Add gender support. This method is useful only if we have parser that can understand gender at client side.
Test cases and mw.jqueryMsg changes in next commit.

12 years ago(Half of bug 33454) The week based year number (format char 'o') was being calculated...
Brian Wolff [Mon, 2 Jan 2012 08:20:03 +0000 (08:20 +0000)]
(Half of bug 33454) The week based year number (format char 'o') was being calculated based on server timezone instead of UTC in sprintfDate. [follow-up r45208]

This would cause a couple incorrect results on new years day.

12 years agoAdd qunit test for mediawiki.jqueryMsg.js- Initial version.
Santhosh Thottingal [Mon, 2 Jan 2012 06:47:58 +0000 (06:47 +0000)]
Add qunit test for mediawiki.jqueryMsg.js- Initial version.

12 years ago(bug 31719) Revert r107359 and apply a proper solution for entity expansion in SVGs.
Tim Starling [Mon, 2 Jan 2012 03:15:42 +0000 (03:15 +0000)]
(bug 31719) Revert r107359 and apply a proper solution for entity expansion in SVGs.

12 years agoCleanup a few unused variables
Sam Reed [Sun, 1 Jan 2012 23:35:08 +0000 (23:35 +0000)]
Cleanup a few unused variables

Mainly indexes in foreach loops

12 years agoFollowup r106752
Sam Reed [Sun, 1 Jan 2012 23:33:33 +0000 (23:33 +0000)]
Followup r106752

Use $file in unlink, rather than the undefined $path

12 years agoFollowup r99892, actually use $options in query
Sam Reed [Sun, 1 Jan 2012 23:31:20 +0000 (23:31 +0000)]
Followup r99892, actually use $options in query

12 years agoTidyup outputChunk added in r104687, remove/update documentation
Sam Reed [Sun, 1 Jan 2012 23:28:18 +0000 (23:28 +0000)]
Tidyup outputChunk added in r104687, remove/update documentation

Don't use undefined $path variable on line 265

12 years agoLocalisation updates for core and extension messages from translatewiki.net
Raimond Spekking [Sun, 1 Jan 2012 20:29:00 +0000 (20:29 +0000)]
Localisation updates for core and extension messages from translatewiki.net

12 years agoFix fixme on r107744 (though, I'm guessing r107743 is at fault, for not adding a...
Sam Reed [Sun, 1 Jan 2012 20:16:08 +0000 (20:16 +0000)]
Fix fixme on r107744 (though, I'm guessing r107743 is at fault, for not adding a blockcomment variable after adding it higher up in messages.inc

12 years ago[mediawiki.api] Fix typo that was made consistently.
Krinkle [Sun, 1 Jan 2012 16:54:00 +0000 (16:54 +0000)]
[mediawiki.api] Fix typo that was made consistently.
* Follows-up r107011

12 years agoAlways set 'jsvarurl' to false (only affect skins not using OutputPage::headElement...
Alexandre Emsenhuber [Sun, 1 Jan 2012 15:44:42 +0000 (15:44 +0000)]
Always set 'jsvarurl' to false (only affect skins not using OutputPage::headElement()) since action=raw&gen=js always return an empty page, so it's pointless to link to it

12 years ago* Display all errors in showForm() instead of only the first one
Alexandre Emsenhuber [Sun, 1 Jan 2012 15:31:12 +0000 (15:31 +0000)]
* Display all errors in showForm() instead of only the first one
* First do some checks and then delete the target page instead of the opposite so we don't delete a page for no purpose if a problem arises
* Changed some empty() checks to count()
* Use Title::quickUserCan() to see whether to show the checkbox to delete the page or not instead of User::isAllowed()

12 years agoRemoved useless call to Title::getArticleID(); let WikiPage::doDeleteArticle() do...
Alexandre Emsenhuber [Sun, 1 Jan 2012 14:16:09 +0000 (14:16 +0000)]
Removed useless call to Title::getArticleID(); let WikiPage::doDeleteArticle() do this itself

12 years ago* (bug 32686) Tooltip on links to non-existing pages are now always in user's language
Alexandre Emsenhuber [Sun, 1 Jan 2012 14:01:49 +0000 (14:01 +0000)]
* (bug 32686) Tooltip on links to non-existing pages are now always in user's language

Fixed this by "abusing" of the $options parameter of Linker::link() to pass the Language object (as we did for wfMsgExt()), has the two following advantages:
* The tooltip is displayed in the requested language instead of depending on $wgLang
* The usage of the Language object is detected in the ParserOptions, thus the parser cache key will not have "*" for the language

12 years agor107770: Consistency tweak: Image -> File
Raimond Spekking [Sun, 1 Jan 2012 13:03:55 +0000 (13:03 +0000)]
r107770: Consistency tweak: Image -> File

12 years agoFollow-up r107769:
Alexandre Emsenhuber [Sun, 1 Jan 2012 12:44:28 +0000 (12:44 +0000)]
Follow-up r107769:
* do the same with getTouched(); removed its $db param since it's pretty useless now (and nothing is using it actually)
* also set $mIsNew in loadFromRow() when there's no DB row (i.e. the page doesn't exist)

Also forgot to say that I moved both functions near other related functions.

12 years ago(bug 33447) Link to the broken image tracking category from Special:Wantedfiles
Brian Wolff [Sun, 1 Jan 2012 12:30:26 +0000 (12:30 +0000)]
(bug 33447) Link to the broken image tracking category from Special:Wantedfiles

Also add a note about how if you use a foreign repo, you're going to get plenty false positives.

12 years agoTurn Title::isNewPage() into something useful by caching its result and preload it...
Alexandre Emsenhuber [Sun, 1 Jan 2012 12:23:17 +0000 (12:23 +0000)]
Turn Title::isNewPage() into something useful by caching its result and preload it from Title::loadFromRow()

12 years agoPrevent undefined offset when formatBitrate is given a significantly large enough...
Sam Reed [Sat, 31 Dec 2011 22:53:50 +0000 (22:53 +0000)]
Prevent undefined offset when formatBitrate is given a significantly large enough number (10^27)

> echo $wgLang->formatBitrate( pow( 10, 27 ) );
PHP Notice:  Undefined offset: 9 in /home/reedy/mediawiki/trunk/phase3/languages/Language.php on line 3827
PHP Stack trace:
PHP   1. {main}() /home/reedy/mediawiki/trunk/phase3/maintenance/eval.php:0
PHP   2. eval() /home/reedy/mediawiki/trunk/phase3/maintenance/eval.php:82
PHP   3. Language->formatBitrate() /home/reedy/mediawiki/trunk/phase3/maintenance/eval.php(82) : eval()'d code:1

Notice: Undefined offset: 9 in /home/reedy/mediawiki/trunk/phase3/languages/Language.php on line 3827

Call Stack:
    0.0006     650736   1. {main}() /home/reedy/mediawiki/trunk/phase3/maintenance/eval.php:0
   61.6539   21593432   2. eval(''echo $wgLang->formatBitrate( pow( 10, 27 ) );;'') /home/reedy/mediawiki/trunk/phase3/maintenance/eval.php:82
   61.6540   21593512   3. Language->formatBitrate() /home/reedy/mediawiki/trunk/phase3/maintenance/eval.php(82) : eval()'d code:1

1bps

12 years agoRELEASE-NOTES-1.19 to go with formatSize/formatBitrate work
Sam Reed [Sat, 31 Dec 2011 22:34:44 +0000 (22:34 +0000)]
RELEASE-NOTES-1.19 to go with formatSize/formatBitrate work

* (bug 33014) Language::formatSize()/formatBitrate() should be able to deal
  with larger numbers (tera-yotta).

12 years agoFixup and add rest of tests
Sam Reed [Sat, 31 Dec 2011 22:30:31 +0000 (22:30 +0000)]
Fixup and add rest of tests

Followup r107734

bug 33014 done too?

12 years agoFix 0bps or less
Sam Reed [Sat, 31 Dec 2011 21:57:47 +0000 (21:57 +0000)]
Fix 0bps or less

r107744

12 years agoFixup r107744, r107743
Sam Reed [Sat, 31 Dec 2011 21:54:28 +0000 (21:54 +0000)]
Fixup r107744, r107743

12 years agoFollowup r107743, use messages in formatBitrate
Sam Reed [Sat, 31 Dec 2011 21:32:42 +0000 (21:32 +0000)]
Followup r107743, use messages in formatBitrate

Add method description

12 years agoMessage-ify bitrate units
Sam Reed [Sat, 31 Dec 2011 21:30:48 +0000 (21:30 +0000)]
Message-ify bitrate units

Add to messageTypes.inc and messages.inc too

12 years ago[Core JS] More fixing of global config variable usage
Krinkle [Sat, 31 Dec 2011 21:25:00 +0000 (21:25 +0000)]
[Core JS] More fixing of global config variable usage
* mw.config is the new way, and global config variable lookups are deprecated

* Based on two phase3-wide quick searches:
-- of " wg": http://toolserver.org/~krinkle/wikimedia-svn-search/view.php?id=321&hash=81700bf7486e4fee3b7bc1f83eb9eba6
-- of "!wg": http://toolserver.org/~krinkle/wikimedia-svn-search/view.php?id=327&hash=47c9d54a7a1d5d58a724dd834585f40d

Related changes:
* Changed some php comments mentioning "wg" variables to include the dollar sign, and a typo when the wf function prefix was meant.
* Removed TODO comment in wikibits.js and made it use the JS equivalent of wfUrlencode, which we have now, mw.util.wikiUrlencode
* SpecialUpload.php: use OutputPage::addJsConfigVars instead of creating a new script tag through OutputPage::addScript(Skin::makeVariablesScript(..))
* Renamed wgUploadSetup in upload.js and made it local. Not used anywhere in ./trunk/phase3 and ./trunk/extensions
* Fix OutputPage::addJsConfigVars so that it can actually be called with an array instead of two arguments for key/value
* Some minor whitespace/convention stuff around the same line

12 years agoShut up Jenkins!
Sam Reed [Sat, 31 Dec 2011 21:01:30 +0000 (21:01 +0000)]
Shut up Jenkins!

Ping r107734

12 years agoFail, fix Ypbs from r107735
Sam Reed [Sat, 31 Dec 2011 20:36:43 +0000 (20:36 +0000)]
Fail, fix Ypbs from r107735

12 years agobug 33014 and r107734
Sam Reed [Sat, 31 Dec 2011 20:35:35 +0000 (20:35 +0000)]
bug 33014 and r107734

Add Tbps through Ybps (yay for code that just works (tm))

12 years agoStart adding tests for Language::formatBitrate()
Sam Reed [Sat, 31 Dec 2011 20:30:06 +0000 (20:30 +0000)]
Start adding tests for Language::formatBitrate()

1Gbps commented out as for some reason it's returning 1.1Gbps...

12 years agoFollowup r106791, r107692 and bug 33014
Sam Reed [Sat, 31 Dec 2011 20:20:15 +0000 (20:20 +0000)]
Followup r106791, r107692 and bug 33014

Make Language::formatNum() handle  TB through YB

Rewrote code to be simpler and less indenty

Though, something like formatBitrate might be be better in future... We'll see!

12 years agoFix for r106752: manually add the backend to the fake local repo to avoid exception...
Alexandre Emsenhuber [Sat, 31 Dec 2011 14:43:14 +0000 (14:43 +0000)]
Fix for r106752: manually add the backend to the fake local repo to avoid exception when running parser tests.
See https://www.mediawiki.org/wiki/Special:Code/MediaWiki/106752#c28264 for the report.

12 years agoPer Nikerabbit, fix for r107653: don't show the "missing revision" warning on non...
Alexandre Emsenhuber [Sat, 31 Dec 2011 11:54:06 +0000 (11:54 +0000)]
Per Nikerabbit, fix for r107653: don't show the "missing revision" warning on non-existing page (obviously)

12 years agoDon't use legacy globals
Niklas Laxström [Sat, 31 Dec 2011 09:05:55 +0000 (09:05 +0000)]
Don't use legacy globals

12 years agoRegister new message keys added with r107692 for maintenance files properly
Raimond Spekking [Sat, 31 Dec 2011 09:01:40 +0000 (09:01 +0000)]
Register new message keys added with r107692 for maintenance files properly

12 years agoPer GrafZahl, fix for r103202: forgot to change two instances of $title to $this...
Alexandre Emsenhuber [Sat, 31 Dec 2011 08:29:22 +0000 (08:29 +0000)]
Per GrafZahl, fix for r103202: forgot to change two instances of $title to $this->title

12 years agoAdded size units for tera through yotta
Sam Reed [Sat, 31 Dec 2011 02:22:19 +0000 (02:22 +0000)]
Added size units for tera through yotta

12 years agoAdd some tests for formatSize
Sam Reed [Sat, 31 Dec 2011 02:13:59 +0000 (02:13 +0000)]
Add some tests for formatSize

12 years agoFollowup r107393, treat '' the same as getting false from getExamples, the default...
Sam Reed [Sat, 31 Dec 2011 00:22:37 +0000 (00:22 +0000)]
Followup r107393, treat '' the same as getting false from getExamples, the default if it's not overridden

12 years agoAdd braces
Sam Reed [Sat, 31 Dec 2011 00:21:27 +0000 (00:21 +0000)]
Add braces

Fix documentation

12 years ago+ complementary <tbody> involved rules in wikitable definitions for browsers which...
Danny B [Sat, 31 Dec 2011 00:00:27 +0000 (00:00 +0000)]
+ complementary <tbody> involved rules in wikitable definitions for browsers which add <tbody> not only virtually (follow-up to r107669)

12 years ago* more specific selectors for wikitable - don't inherit properties to nested tables...
Danny B [Fri, 30 Dec 2011 23:23:50 +0000 (23:23 +0000)]
* more specific selectors for wikitable - don't inherit properties to nested tables which causes various rendering issues
** (bug 30485) Hieroglyphs look scary if embedded in tables with class="wikitable"
** (bug 33434) math extension: integral expressions display with boxes/frames/borders

12 years agoRelated to bug 33223
Sam Reed [Fri, 30 Dec 2011 22:44:07 +0000 (22:44 +0000)]
Related to bug 33223

Update static list of languages that support variants

12 years agoPer Raymond, fix for r107653: missed two changes from $section to $this->section
Alexandre Emsenhuber [Fri, 30 Dec 2011 21:34:19 +0000 (21:34 +0000)]
Per Raymond, fix for r107653: missed two changes from $section to $this->section

12 years agofix tablesorter unit test in ie7. Add semicolon to end of statement in tablesorter...
Rob Moen [Fri, 30 Dec 2011 21:30:17 +0000 (21:30 +0000)]
fix tablesorter unit test in ie7.  Add semicolon to end of statement in tablesorter class

12 years ago* Style fixes in EditPage::showEditForm() to more readable
Alexandre Emsenhuber [Fri, 30 Dec 2011 21:30:04 +0000 (21:30 +0000)]
* Style fixes in EditPage::showEditForm() to more readable
* Use style="display:none;" instead of non-existing type="hidden" for the textarea when asking user for confirmation to save the edit if the page was deleted during edition; also drop other attributes since they are useless in that case

12 years agoLocalisation updates for core and extension messages from translatewiki.net
Raimond Spekking [Fri, 30 Dec 2011 21:17:13 +0000 (21:17 +0000)]
Localisation updates for core and extension messages from translatewiki.net

12 years ago* Inverted the precedence between section edition and revision undoing, now undo...
Alexandre Emsenhuber [Fri, 30 Dec 2011 20:43:08 +0000 (20:43 +0000)]
* Inverted the precedence between section edition and revision undoing, now undo and undoafter will be ignored if the section (or even wpSection) is provided to be consistent the remaining of the interface
* Modified EditPage::getContent() to load the original content only when really needed
* Don't put the 'missing-article' in the textbox when a non-existing revision is provided, instead display it above the form
* Always diff to the current version when showing a conflict or a spam filter match
* Factorised code to get the current text on edit conflict
* Compare the correct text in EditPage::internalAttemptSave()
* Some little coding style fixes

12 years agoFollow up to r107645, corrected Russian.
Amir E. Aharoni [Fri, 30 Dec 2011 19:05:05 +0000 (19:05 +0000)]
Follow up to r107645, corrected Russian.

12 years agoFollowup r107559. Added male aliases for "User:" to Russian and Hebrew. Requested...
Amir E. Aharoni [Fri, 30 Dec 2011 19:01:48 +0000 (19:01 +0000)]
Followup r107559. Added male aliases for "User:" to Russian and Hebrew. Requested by nikerabbit and reedy.

12 years ago[mediawiki.debug] attempt at fixing off-screen mega wide cells for some queries.
Krinkle [Fri, 30 Dec 2011 18:21:49 +0000 (18:21 +0000)]
[mediawiki.debug] attempt at fixing off-screen mega wide cells for some queries.
* See also r107610 CR

12 years ago* Removed usage of Article where possible in EditPage
Alexandre Emsenhuber [Fri, 30 Dec 2011 16:12:46 +0000 (16:12 +0000)]
* Removed usage of Article where possible in EditPage
* Added Article::getRevisionFetched() and use it in EditPage instead of accessing the member directly

12 years ago* Moved post-deletion code from WikiPage::doDeleteArticle() to WikiPage::doDeleteUpda...
Alexandre Emsenhuber [Fri, 30 Dec 2011 15:54:11 +0000 (15:54 +0000)]
* Moved post-deletion code from WikiPage::doDeleteArticle() to WikiPage::doDeleteUpdates() so that it can be shared with page move
* Use WikiPage::doEditUpdates() and WikiPage::onArticleDelete() to do updates instead of reimplementing the whole thing in Title::moveTo(); avoids some bugs since the implementation differs from the one from WikiPage (notably the page and article count). This adds some more cache clearing, but they are needed depending on parameters (e.g. if the redirect is not created).

12 years agoPer Krinkle, fix for r102406: use strict comparison
Alexandre Emsenhuber [Fri, 30 Dec 2011 11:37:57 +0000 (11:37 +0000)]
Per Krinkle, fix for r102406: use strict comparison

12 years ago(bug 31469) Make sure tracking category messages expand variables like
Brian Wolff [Fri, 30 Dec 2011 06:44:38 +0000 (06:44 +0000)]
(bug 31469) Make sure tracking category messages expand variables like
{{NAMESPACE}} relative to the Title of the currently being parsed page.

Basically wfMsgForContent expands messages with wrong title while doing linksupdate stuff via job queue. For the broken file tracking category (r86534),Wikipedia folk want to sort the page into different categories based on namespace, and for some namespaces not categorize them at all (After all, a broken file link in a talk namespace is often not a bad thing).

Anyhow, explicitly set the title object for the message using wfMessage. There's probably deeper issues here in regards to why wfMsg et al is using wrong title, but this should fix the immediate issue.

12 years ago[mediawiki.debug] highlight current pane and styling
Krinkle [Fri, 30 Dec 2011 01:08:57 +0000 (01:08 +0000)]
[mediawiki.debug] highlight current pane and styling
* wrapping bits in container and centering tabs
* letting includes-pane use same markup and styling as queries
* move appendTo action into common function (more DRY)

12 years ago[mediawiki.debug] apply code conventions
Krinkle [Thu, 29 Dec 2011 23:49:38 +0000 (23:49 +0000)]
[mediawiki.debug] apply code conventions
* Quote "class"-key in object literals. It's stupid that JavaScript does not allow reserved words in this position but that's the way it is. As of ES5 (which Chrome/Firefox already started to implement) this is now part of the standard and no longer have to be quoted, still required for the browsers we support though.
* Fix usage of Array to Object. Arrays are for numeral keys only.
* Make usage of $() for building elements from HTML strings more consistent. Using shortag syntax for new elements creation. And valid HTML for snippets (as supposed to $("<div></div>") and $("<span class="foo">")). valid HTML is always okay, but shortag should only be used for creating plain elements (which jQuery recognizes and calls document-createElement for. Anything else goes into innerHTML which causes problems in browsers that require it to be valid and don't apply normalization.
* Remove empty style rule
* Moving declaration inside for-blocks to the function scope. JavaScript doesn't have just-in-time variables or block scope, only function scope.
* Apply general code conventions
* Follows-up r105122

12 years agoLocalisation updates for core and extension messages from translatewiki.net
Raimond Spekking [Thu, 29 Dec 2011 21:54:17 +0000 (21:54 +0000)]
Localisation updates for core and extension messages from translatewiki.net

12 years agoUse wfTimestampNow() instead of wfTimestamp() without second parameter
Alexandre Emsenhuber [Thu, 29 Dec 2011 20:45:47 +0000 (20:45 +0000)]
Use wfTimestampNow() instead of wfTimestamp() without second parameter

12 years ago* (bug 32702) Fix for r82273: readded Skin::makeGlobalVariablesScript() for backward...
Alexandre Emsenhuber [Thu, 29 Dec 2011 20:39:29 +0000 (20:39 +0000)]
* (bug 32702) Fix for r82273: readded Skin::makeGlobalVariablesScript() for backward compatibility and marked it as deprecated

12 years agoUse local context to get messages
Alexandre Emsenhuber [Thu, 29 Dec 2011 19:17:16 +0000 (19:17 +0000)]
Use local context to get messages

12 years agoUse WikiPage instead of Article to call doEdit()
Alexandre Emsenhuber [Thu, 29 Dec 2011 18:51:23 +0000 (18:51 +0000)]
Use WikiPage instead of Article to call doEdit()

12 years ago* Added Title::getLinksFrom() and Title::getTemplateLinksFrom() for consistency with...
Alexandre Emsenhuber [Thu, 29 Dec 2011 15:12:00 +0000 (15:12 +0000)]
* Added Title::getLinksFrom() and Title::getTemplateLinksFrom() for consistency with Title::getLinksTo() and Title::getTemplateLinksTo()
* Deprecated WikiPage::getUsedTemplates() in favour of Title::getTemplateLinksFrom() and updated to it in core

12 years ago* Group related functions
Alexandre Emsenhuber [Thu, 29 Dec 2011 14:21:15 +0000 (14:21 +0000)]
* Group related functions
* Put deprecated functions at the bottom

12 years agoRevert r107556 based on the discussion.
Santhosh Thottingal [Thu, 29 Dec 2011 14:06:12 +0000 (14:06 +0000)]
Revert r107556 based on the discussion.

12 years agoNon oldrc change lists were not displaying the names of new log types properly. While...
Niklas Laxström [Thu, 29 Dec 2011 12:58:43 +0000 (12:58 +0000)]
Non oldrc change lists were not displaying the names of new log types properly. While at it, drop support for displaying very old style log entries

12 years agoGender aliases for user and user talk pages.
Amir E. Aharoni [Thu, 29 Dec 2011 11:03:16 +0000 (11:03 +0000)]
Gender aliases for user and user talk pages.

12 years agoUse jqueryMsg wikitext parser to parse interface messages at client side. Support...
Santhosh Thottingal [Thu, 29 Dec 2011 09:29:07 +0000 (09:29 +0000)]
Use jqueryMsg wikitext parser to parse interface messages at client side. Support for PLURAL in javascript.

12 years agoLocalisation updates for core and extension messages from translatewiki.net
Raimond Spekking [Wed, 28 Dec 2011 22:31:07 +0000 (22:31 +0000)]
Localisation updates for core and extension messages from translatewiki.net

12 years agoRemoving wgLegacyJavaScriptGlobals from JavaScript output
Krinkle [Wed, 28 Dec 2011 22:29:07 +0000 (22:29 +0000)]
Removing wgLegacyJavaScriptGlobals from JavaScript output
* PHP config variable itself is still needed for sure, but not needed in JavaScript output. Did get into 1.18 (accidentally added to js output as part of r87856) but undocumented and unannounced.

12 years agoMove embedded ResourceLoader modules to the <head>
Krinkle [Wed, 28 Dec 2011 22:20:29 +0000 (22:20 +0000)]
Move embedded ResourceLoader modules to the <head>
* Embed "private" ResourceLoader modules in the <head> before the first loader link, instead of in the <body> after the last loader link
* Wow, was in the opposite place where it should've been :D
* Fixes bug 30914

12 years ago* Use User::newFromName() instead of calling setName() on an existing object
Alexandre Emsenhuber [Wed, 28 Dec 2011 19:49:44 +0000 (19:49 +0000)]
* Use User::newFromName() instead of calling setName() on an existing object
* Some code cleanup

12 years ago* Use WikiPage instead of Article to call doDeleteArticle()
Alexandre Emsenhuber [Wed, 28 Dec 2011 19:35:31 +0000 (19:35 +0000)]
* Use WikiPage instead of Article to call doDeleteArticle()
* Don't call DatabaseBase::commit() twice per deletion
* Some code refactoring

12 years agoUse local context to get messages
Alexandre Emsenhuber [Wed, 28 Dec 2011 19:15:10 +0000 (19:15 +0000)]
Use local context to get messages

12 years ago* Use Linker::getRevDeleteLink() where possible to remove code duplication
Alexandre Emsenhuber [Wed, 28 Dec 2011 18:41:36 +0000 (18:41 +0000)]
* Use Linker::getRevDeleteLink() where possible to remove code duplication
* Pass the User object to Revision::userCan() in Linker::getRevDeleteLink()
* Return the result Linker::revDeleteLinkDisabled() in Linker::getRevDeleteLink() instead of storing it in a variable that will not be used

12 years agoReverting r107496, r107497
Sam Reed [Wed, 28 Dec 2011 15:42:06 +0000 (15:42 +0000)]
Reverting r107496, r107497

Seems there is reasonable reason for it to be in core, and it will be becoming more used in the near future

12 years agoMove mediawiki.feedback.js to "Feedback" extension
Sam Reed [Wed, 28 Dec 2011 14:49:32 +0000 (14:49 +0000)]
Move mediawiki.feedback.js to "Feedback" extension

12 years ago* (bug 33398) Wrong escape in online documentation for usercontribs
Sam Reed [Wed, 28 Dec 2011 13:36:32 +0000 (13:36 +0000)]
* (bug 33398) Wrong escape in online documentation for usercontribs

12 years agoRevert the fix for bug 32858 (r105664, r105161, r103476): no consensus, backwards...
Tim Starling [Tue, 27 Dec 2011 22:50:10 +0000 (22:50 +0000)]
Revert the fix for bug 32858 (r105664, r105161, r103476): no consensus, backwards compatibility issues not addressed (e.g. {{selfsubst/now string}})

12 years ago* Follow-up r107447: removed dead code
Aaron Schulz [Tue, 27 Dec 2011 22:49:37 +0000 (22:49 +0000)]
* Follow-up r107447: removed dead code
* Broke some long lines

12 years agore Aaron's comment on r107351: remove double extension from temporary file
Mark A. Hershberger [Tue, 27 Dec 2011 22:39:10 +0000 (22:39 +0000)]
re Aaron's comment on r107351: remove double extension from temporary file

12 years agoComment and whitespace fixes
Tim Starling [Tue, 27 Dec 2011 22:38:44 +0000 (22:38 +0000)]
Comment and whitespace fixes

12 years agoUpdated comment and a call from Article to WikiPage
Alexandre Emsenhuber [Tue, 27 Dec 2011 21:22:47 +0000 (21:22 +0000)]
Updated comment and a call from Article to WikiPage

12 years agoPer Reedy, fix for r107386: fix usage of undefined variable
Alexandre Emsenhuber [Tue, 27 Dec 2011 21:16:20 +0000 (21:16 +0000)]
Per Reedy, fix for r107386: fix usage of undefined variable

12 years agoNeed to set mDataLoaded so that this works without a db
Platonides [Tue, 27 Dec 2011 20:48:06 +0000 (20:48 +0000)]
Need to set mDataLoaded so that this works without a db

12 years agoLocalisation updates for core and extension messages from translatewiki.net
Raimond Spekking [Tue, 27 Dec 2011 20:23:52 +0000 (20:23 +0000)]
Localisation updates for core and extension messages from translatewiki.net

12 years ago[mediawiki.js] function order
Krinkle [Tue, 27 Dec 2011 18:51:50 +0000 (18:51 +0000)]
[mediawiki.js] function order
* define before call
* Follows-up r107402, r107405

12 years ago[mediawiki.js] use simple IIFE closure with object literal
Krinkle [Tue, 27 Dec 2011 18:48:40 +0000 (18:48 +0000)]
[mediawiki.js] use simple IIFE closure with object literal
* Remove weird new () syntax. Simply use a IIFE and return an object literal
* Some blocks had to be moved
-- $(document).ready in mw.loader to between vars and functions (couldn't be after the return)
-- mw.legacy to near other place holders
* Follows-up r107402

(view diff with whitespace ignored: $ svn diff -x -wu)

12 years ago[mediawiki.js] code quality and clean up
Krinkle [Tue, 27 Dec 2011 18:25:20 +0000 (18:25 +0000)]
[mediawiki.js] code quality and clean up
* using local mw variable in file instead of reaching to global scope
* exposing to global object after initialization
* moving var statements to the top of the function, this uncovered a few risky re-use of variables. Fixed by using different names (in nested for-loops and unconnected if/else statements). This also made several awkward indentions go away (where the first definition would be indented for 'var', and later ones not).
* remove unused "messageQueue" variable
* enable strict mode in modern browsers (loose string ignored in other browsers)
* where looking to check for array, use $.isArray() (directly pointed to native code) instead of a typeof operation with string comparison for "object" (slightly faster and also semantically more correct)
* other best practices as popularized by JSLint/JSHint
* removed 'delete' operator for startUp, didn't' do anything in most modern browsers, only for object members.

@note: mw.loader.work really is big, now it's more obvious:
<code>
+var reqBase, splits, maxQueryLength, q, b, bSource, bGroup, bSourceGroup,
+ source, group, g, i, modules, maxVersion, sourceLoadScript,
+ currReqBase, currReqBaseLength, moduleMap, l,
+ lastDotIndex, prefix, suffix, bytesAdded;
</code>

12 years ago* Use local context to get messages
Alexandre Emsenhuber [Tue, 27 Dec 2011 16:35:40 +0000 (16:35 +0000)]
* Use local context to get messages
* Also set the reason for the block in content language

12 years agoFollow-up r107341: remove now-useless parameter
Alexandre Emsenhuber [Tue, 27 Dec 2011 16:26:47 +0000 (16:26 +0000)]
Follow-up r107341: remove now-useless parameter

12 years agoRe-instate most of the revisions for bug 33147 "API examples should explain what...
Sam Reed [Tue, 27 Dec 2011 16:22:35 +0000 (16:22 +0000)]
Re-instate most of the revisions for bug 33147 "API examples should explain what they do"

Using this to sync up my working copies

Should have the little niggles tidied up though