lhc/web/wiklou.git
12 years ago* (bug 33483) One space to much in header of auto-generated documentation
Sam Reed [Tue, 3 Jan 2012 15:49:10 +0000 (15:49 +0000)]
* (bug 33483) One space to much in header of auto-generated documentation

12 years agoFixup some returns/return documentation
Sam Reed [Tue, 3 Jan 2012 15:36:46 +0000 (15:36 +0000)]
Fixup some returns/return documentation

12 years agoFix non reverted job_insert_timestamp
Sam Reed [Tue, 3 Jan 2012 15:14:35 +0000 (15:14 +0000)]
Fix non reverted job_insert_timestamp

Fixup timestamp addition per Roan

Ping r107886

12 years ago* (bug 27724) Add timestamp to job queue.
Sam Reed [Tue, 3 Jan 2012 15:08:05 +0000 (15:08 +0000)]
* (bug 27724) Add timestamp to job queue.

Designed for administration purposes, not to be exposed to front end users

Useful for administration purposes (like WMF with job runners), we can look at the "highest" jobs, and find out whether enwiki is just busy, or the jobs have been there a while (signalling that the job runners potentially have issues)

12 years agoFix gender on Special:Userrights
Antoine Musso [Tue, 3 Jan 2012 12:48:39 +0000 (12:48 +0000)]
Fix gender on Special:Userrights

r99312 added gender supports to group message. On Special:Userrights, messages
were not passed the username for GENDER support.

This patch update the French localisation as an example.

12 years agoremove useless gender for english group name
Antoine Musso [Tue, 3 Jan 2012 11:57:48 +0000 (11:57 +0000)]
remove useless gender for english group name

Follow r99312

12 years agoMissing check for ISMULTI on help parameters, thanks santhosh
John Du Hart [Tue, 3 Jan 2012 11:05:55 +0000 (11:05 +0000)]
Missing check for ISMULTI on help parameters, thanks santhosh

12 years agoBug 33482 - Api incorrectly calls ApiBase::parseMultiValue if allowed values is given...
John Du Hart [Tue, 3 Jan 2012 11:02:26 +0000 (11:02 +0000)]
Bug 33482 - Api incorrectly calls ApiBase::parseMultiValue if allowed values is given as an array

Simply means that if you have an array of acceptable values and you only accept one at a time, you can have pipes in the allowed values.

12 years agogit: add ignore file
Antoine Musso [Tue, 3 Jan 2012 09:55:41 +0000 (09:55 +0000)]
git: add ignore file

This is the same as the svn:ignore property with the addition of '.svn'

12 years agoFollow-up r107859: use the proper *Internal functions for doMoveInternal()
Aaron Schulz [Tue, 3 Jan 2012 06:37:55 +0000 (06:37 +0000)]
Follow-up r107859: use the proper *Internal functions for doMoveInternal()

12 years agoImplemented console panel in debug toolbar
John Du Hart [Tue, 3 Jan 2012 05:56:36 +0000 (05:56 +0000)]
Implemented console panel in debug toolbar

12 years agoUsing wfTime in place of microtime
John Du Hart [Tue, 3 Jan 2012 04:02:35 +0000 (04:02 +0000)]
Using wfTime in place of microtime

12 years agoAdd RequestContextCreateSkin hook to allow extensions to override the loading of...
Daniel Friesen [Tue, 3 Jan 2012 01:58:27 +0000 (01:58 +0000)]
Add RequestContextCreateSkin hook to allow extensions to override the loading of skins.

12 years agoUse FileOp when file exists ($this->backend has a null reference)
Markus Glaser [Tue, 3 Jan 2012 00:53:01 +0000 (00:53 +0000)]
Use FileOp when file exists ($this->backend has a null reference)

12 years ago* Fix for r107559: set $namespaceGenderAliases to an empty array in all languages...
Tim Starling [Mon, 2 Jan 2012 22:54:57 +0000 (22:54 +0000)]
* Fix for r107559: set $namespaceGenderAliases to an empty array in all languages with fallback=ru but with overridden namespaceNames, so that user namespaces don't get converted to Russian.
* Fix duplicated array keys from r107648.

12 years agoLocalisation updates for core and extension messages from translatewiki.net
Raimond Spekking [Mon, 2 Jan 2012 20:46:12 +0000 (20:46 +0000)]
Localisation updates for core and extension messages from translatewiki.net

12 years agoRevert r107835 - breaks my wiki "unknown function'
Niklas Laxström [Mon, 2 Jan 2012 18:26:09 +0000 (18:26 +0000)]
Revert r107835 - breaks my wiki "unknown function'

12 years agoTypofix r107842
Niklas Laxström [Mon, 2 Jan 2012 18:22:26 +0000 (18:22 +0000)]
Typofix r107842

12 years ago* Removed WikiPage::$mTouched and use the value from Title; that member is not used...
Alexandre Emsenhuber [Mon, 2 Jan 2012 17:26:47 +0000 (17:26 +0000)]
* Removed WikiPage::$mTouched and use the value from Title; that member is not used anywhere else and is marked protected
* Fix some spaces and added description for WikiPage::$mTouched

12 years agoFix for r107825: forgot to change one instance of $oldFashionedRestrictions to $this...
Alexandre Emsenhuber [Mon, 2 Jan 2012 17:22:25 +0000 (17:22 +0000)]
Fix for r107825: forgot to change one instance of $oldFashionedRestrictions to $this->mOldRestrictions

12 years agoUse $wgUser instead of the User from the context in Article::view() and Article:...
Alexandre Emsenhuber [Mon, 2 Jan 2012 17:16:10 +0000 (17:16 +0000)]
Use $wgUser instead of the User from the context in Article::view() and Article::showDiffPage() for consistency

12 years agoremove an extra space
Chad Horohoe [Mon, 2 Jan 2012 15:34:35 +0000 (15:34 +0000)]
remove an extra  space

12 years agosimplify r107833 per CR, just use wfExpandUrl()
Chad Horohoe [Mon, 2 Jan 2012 15:31:28 +0000 (15:31 +0000)]
simplify r107833 per CR, just use wfExpandUrl()

12 years ago* follow up to r107673 - adding universal selector, because <thead> and <tfoot> are...
Danny B [Mon, 2 Jan 2012 14:58:11 +0000 (14:58 +0000)]
* follow up to r107673 - adding universal selector, because <thead> and <tfoot> are being eventually added as well

12 years agoRevert r107042 (bug 32219, make InstantCommons protocol-relative) and do it properly...
Chad Horohoe [Mon, 2 Jan 2012 14:38:19 +0000 (14:38 +0000)]
Revert r107042 (bug 32219, make InstantCommons protocol-relative) and do it properly + release notes.

apibase is used for fetching content from the server as well as determining description pages, so should use a full-qualified protocol when the site's in https.

12 years ago* Store the value of the page.page_restrictions field in Title::loadFromRow() and...
Alexandre Emsenhuber [Mon, 2 Jan 2012 12:49:50 +0000 (12:49 +0000)]
* Store the value of the page.page_restrictions field in Title::loadFromRow() and defers loading restrictions until when it's really needed; this reuses the Title::$mOldRestrictions member which is not used anywhere yet
* Removed $oldFashionedRestrictions parameter from Title::loadRestrictions*(); the only extension using it is LiquidThreads and it's using Title::newFromRow() to create the Title object, so the field is already cached (and this even allows to cache that field when there's no row for that page in the page_restrictions table)
* Also reset $mTouched and $mIsNew members on resetArticleId() calls
* Updated FakeTitle a bit

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