lhc/web/wiklou.git
11 years agoMerge "CologneBlue rewrite: rework otherLanguages(), CSS: serif font"
Brion VIBBER [Fri, 5 Oct 2012 17:39:26 +0000 (17:39 +0000)]
Merge "CologneBlue rewrite: rework otherLanguages(), CSS: serif font"

11 years agoMerge "SkinTemplate: extract formatLanguageName() from outputPage()"
Brion VIBBER [Fri, 5 Oct 2012 17:37:02 +0000 (17:37 +0000)]
Merge "SkinTemplate: extract formatLanguageName() from outputPage()"

11 years agoClear the cached edit count within User::clearInstanceCache
Marius Hoch [Fri, 5 Oct 2012 16:52:57 +0000 (18:52 +0200)]
Clear the cached edit count within User::clearInstanceCache

(After a question in r26457): Let User::clearInstanceCache
clear out the cached edit count as well, as a user session
can be open for a long time.

Change-Id: I4444f352e3b5df7b24f37668a5f1fbf9d64d6978

11 years agoCologneBlue rewrite: rework otherLanguages(), CSS: serif font
MatmaRex [Tue, 2 Oct 2012 19:47:07 +0000 (21:47 +0200)]
CologneBlue rewrite: rework otherLanguages(), CSS: serif font

We have to override SkinTemplate->formatLanguageName() in SkinCologneBlue
not to capitalize the language names, as they are not actually used in the
sidebar and look better this way.

This change revealed that CologneBlue does not set the base font for the
page, causing text marked as being in a different language (e.g., language
links) to be displayed in a different fond in some browsers. Adding
"font-family: serif" to body fixed the issue.

Change-Id: I8b56ccb6f9a2ba47613f135754b5a133a6870412

11 years agoSkinTemplate: extract formatLanguageName() from outputPage()
MatmaRex [Fri, 5 Oct 2012 16:00:49 +0000 (18:00 +0200)]
SkinTemplate: extract formatLanguageName() from outputPage()

This is to allow skins to override it; for example, CologneBlue needs the
names *not* to be uppercased, as they're not actually displayed in the
sidebar.

Change-Id: I91d505159c9e9e468182ebbff6002e5238e34f90

11 years agoMerge "Replace remaining Array occurences with array"
IAlex [Fri, 5 Oct 2012 15:38:54 +0000 (15:38 +0000)]
Merge "Replace remaining Array occurences with array"

11 years agoMerge "Pass user object to some Revision::getText/Title::userCan calls"
IAlex [Fri, 5 Oct 2012 15:36:35 +0000 (15:36 +0000)]
Merge "Pass user object to some Revision::getText/Title::userCan calls"

11 years agoPass user object to some Revision::getText/Title::userCan calls
umherirrender [Fri, 5 Oct 2012 14:25:01 +0000 (16:25 +0200)]
Pass user object to some Revision::getText/Title::userCan calls

Also passed some $wgUser direct (when already there), so it is seen by
someone, that the user should be passed to that method.

Change-Id: Id4d5504a05ea34d80d59262ad3aef28f09c807a6

11 years agoReplace remaining Array occurences with array
jeroendedauw [Fri, 5 Oct 2012 14:11:18 +0000 (16:11 +0200)]
Replace remaining Array occurences with array

Change-Id: Id7c2fdd6814a8239acbe050d857b56350e691a49

11 years agoChange Array to array
jeroendedauw [Fri, 5 Oct 2012 13:55:52 +0000 (15:55 +0200)]
Change Array to array

Change-Id: I22fd8b2aad037a12546d7c5f5167add1eec96c30

11 years agoShutup some trx warnings
Niklas Laxström [Fri, 5 Oct 2012 07:30:34 +0000 (07:30 +0000)]
Shutup some trx warnings

It's been two weeks and there hasn't been enough
effort in fixing the reported issues to justify
the flooding of logs in twn.

Change-Id: I3eacc5a9220b451bb94c4aa5ae35de4095528542

11 years agoelse { if } makes no sense
Niklas Laxström [Fri, 5 Oct 2012 07:29:36 +0000 (07:29 +0000)]
else { if } makes no sense

I complained about this in gerrit but looks like my
comment was not saved

Change-Id: Ie570bdaf89e93628de730102587064ee0495fb1b

11 years agoAdded tests for well-nested <noinclude> uses in html attr context.
Subramanya Sastry [Fri, 5 Oct 2012 00:01:45 +0000 (19:01 -0500)]
Added tests for well-nested <noinclude> uses in html attr context.

Change-Id: Ic1230371582cfab7bfdc367f1cfce1c6c192caac

11 years agoMerge "Added "posdump" option to syncFileBackend to dump the current position."
Reedy [Thu, 4 Oct 2012 21:27:13 +0000 (21:27 +0000)]
Merge "Added "posdump" option to syncFileBackend to dump the current position."

11 years agoCologneBlue rewrite: fix variantLinks()
MatmaRex [Sat, 29 Sep 2012 19:18:56 +0000 (21:18 +0200)]
CologneBlue rewrite: fix variantLinks()

They used to use some weird ifs to determine whether to display this list,
and broken implementation caused an additional separator to appear at the
beginning.

Change-Id: I71eb97e09af9ac1bcf88da2aaeba97322e8be252

11 years agoCologneBlue rewrite: #toplinks fixes
MatmaRex [Thu, 27 Sep 2012 17:01:49 +0000 (19:01 +0200)]
CologneBlue rewrite: #toplinks fixes

* use getPersonalTools()
* loop over stuff
* CSS cleanup

Change-Id: Ibb68cde6e837eec0fcaeea8a11088749ce2df1c2

11 years agoCologneBlue rewrite: kill the evil globals
MatmaRex [Fri, 28 Sep 2012 20:08:26 +0000 (22:08 +0200)]
CologneBlue rewrite: kill the evil globals

This is just some search&replace.

Change-Id: I0241942f56556754c6142e932c72af04bad37a75

11 years agoCologneBlue rewrite: fixup for unclickable site title
MatmaRex [Fri, 28 Sep 2012 19:47:58 +0000 (21:47 +0200)]
CologneBlue rewrite: fixup for unclickable site title

Change-Id: I322c79dfb8ddf87e380d711430138abf5696ca4f

11 years agoCologneBlue rewrite: fix beforeContent() and afterContent()
MatmaRex [Thu, 27 Sep 2012 17:38:33 +0000 (19:38 +0200)]
CologneBlue rewrite: fix beforeContent() and afterContent()

No functional changes here. The generated HTML is almost the same, changes
involve mostly whitespace.

Change-Id: I1455a49f0583440498bae7d328b8d182e92e7c8d

11 years agoCologneBlue rewrite: fix sysLinks()
MatmaRex [Thu, 27 Sep 2012 17:27:45 +0000 (19:27 +0200)]
CologneBlue rewrite: fix sysLinks()

* remove link to special pages, what was it even doing there
* kill extensionTabLinks(): SkinTemplateTabs hook, which it calls, has been
  (per [[mw:Manual:Hooks/SkinTemplateTabs]]) removed in 1.18
* split variantLinks()

Also assorted CSS.

Change-Id: I67fdbf80baf52721d0be6bb7c0597225c5010940

11 years agoCologneBlue rewrite: don't display login/out links in sidebar
MatmaRex [Thu, 27 Sep 2012 17:01:49 +0000 (19:01 +0200)]
CologneBlue rewrite: don't display login/out links in sidebar

They do not belong to "My pages".

Instead, display them properly in syslinks, respecting
$wgUseCombinedLoginLink and creating them via usual means.

Change-Id: I8e2cc25e41e46a471b98e0d18336c753b8645d0e

11 years agoCologneBlue rewrite: kill pageTitle(), pageSubtitle(), printableLink()
MatmaRex [Wed, 26 Sep 2012 19:53:58 +0000 (21:53 +0200)]
CologneBlue rewrite: kill pageTitle(), pageSubtitle(), printableLink()

Change-Id: I8280e882f312854cc8a8ee86106bbbd31cb897d3

11 years agoCologneBlue rewrite: kill pageStats() and rewrite pageTitleLinks()
MatmaRex [Wed, 26 Sep 2012 19:19:16 +0000 (21:19 +0200)]
CologneBlue rewrite: kill pageStats() and rewrite pageTitleLinks()

Use getFooterLinks instead. This removes "Printable version" from the
header links and add a "About" link instead.

Change-Id: I69ee93a9ce900651711274972f4dd79b766df78c

11 years agoMerge "CologneBlue rewrite: remove stuff from pageTitleLinks() that doesn't belong...
Brion VIBBER [Thu, 4 Oct 2012 19:26:42 +0000 (19:26 +0000)]
Merge "CologneBlue rewrite: remove stuff from pageTitleLinks() that doesn't belong in there"

11 years agoMerge "CologneBlue rewrite: get rid of some extra ugly HTML"
Brion VIBBER [Thu, 4 Oct 2012 19:25:59 +0000 (19:25 +0000)]
Merge "CologneBlue rewrite: get rid of some extra ugly HTML"

11 years agoMerge "CologneBlue rewrite: kill mWatchLinkNum, watchThisPage() is only called once...
Brion VIBBER [Thu, 4 Oct 2012 19:24:52 +0000 (19:24 +0000)]
Merge "CologneBlue rewrite: kill mWatchLinkNum, watchThisPage() is only called once now"

11 years agoMerge "CologneBlue rewrite: finally a proper sidebar using standard functions"
Brion VIBBER [Thu, 4 Oct 2012 19:23:20 +0000 (19:23 +0000)]
Merge "CologneBlue rewrite: finally a proper sidebar using standard functions"

11 years agoMerge "CologneBlue rewrite: adjust the quickbar contents to 2012"
Brion VIBBER [Thu, 4 Oct 2012 19:21:25 +0000 (19:21 +0000)]
Merge "CologneBlue rewrite: adjust the quickbar contents to 2012"

11 years agoMerge "CologneBlue rewrite: start cleaning up the quickbar code"
Brion VIBBER [Thu, 4 Oct 2012 19:19:18 +0000 (19:19 +0000)]
Merge "CologneBlue rewrite: start cleaning up the quickbar code"

11 years agoMerge "CologneBlue rewrite: fix search form(s) generation"
Brion VIBBER [Thu, 4 Oct 2012 19:17:12 +0000 (19:17 +0000)]
Merge "CologneBlue rewrite: fix search form(s) generation"

11 years agoMerge "Added @since tag to IDBAccessObject."
IAlex [Thu, 4 Oct 2012 19:16:43 +0000 (19:16 +0000)]
Merge "Added @since tag to IDBAccessObject."

11 years agoMerge "CologneBlue rewrite: remove hard dependency on SkinLegacy, kill Quickbar nonsense"
Brion VIBBER [Thu, 4 Oct 2012 19:15:54 +0000 (19:15 +0000)]
Merge "CologneBlue rewrite: remove hard dependency on SkinLegacy, kill Quickbar nonsense"

11 years agoAdded @since tag to IDBAccessObject.
Aaron Schulz [Thu, 4 Oct 2012 19:10:41 +0000 (12:10 -0700)]
Added @since tag to IDBAccessObject.

Change-Id: I83d47534e76eba41099da645e5f971d351f0260c

11 years agoAdded "posdump" option to syncFileBackend to dump the current position.
Aaron Schulz [Thu, 4 Oct 2012 18:43:59 +0000 (11:43 -0700)]
Added "posdump" option to syncFileBackend to dump the current position.

Change-Id: Iabb027788796e98e06e3c6e97d14f74819cc6c95

11 years agoA few action=info bugfixes and enhancements.
Alex Monk [Tue, 4 Sep 2012 13:02:32 +0000 (14:02 +0100)]
A few action=info bugfixes and enhancements.

(bug 39533) Merge action=credits into action=info.
(bug 39951) Remove redundant 'Page protection' text.
(bug 39953) Don't show irrelevant protection statuses.
(bug 39954) Use proper section headers.
(bug 39955) Link page creator and latest editor values.

Change-Id: I68308aac96b89c2aec296e2a4fa385fd1d42ab5a

11 years agoMerge "Show HTTP error (if any) when scary transclusion fails"
Reedy [Thu, 4 Oct 2012 15:11:25 +0000 (15:11 +0000)]
Merge "Show HTTP error (if any) when scary transclusion fails"

11 years agoMerge "(bug 16362) Add action=info link to toolbox."
Reedy [Thu, 4 Oct 2012 15:10:03 +0000 (15:10 +0000)]
Merge "(bug 16362) Add action=info link to toolbox."

11 years agoMerge "Support explicit 0 and 1 forms for plural in PHP"
Siebrand [Thu, 4 Oct 2012 07:04:23 +0000 (07:04 +0000)]
Merge "Support explicit 0 and 1 forms for plural in PHP"

11 years agoMerge "Minor parameter documentation improvements on External Store classes"
IAlex [Thu, 4 Oct 2012 04:41:46 +0000 (04:41 +0000)]
Merge "Minor parameter documentation improvements on External Store classes"

11 years agoShow a "(blocked)" hint on Special:ListUsers/ActiveUsers
umherirrender [Wed, 8 Aug 2012 14:25:40 +0000 (16:25 +0200)]
Show a "(blocked)" hint on Special:ListUsers/ActiveUsers

In ActiveUsers many of the code was there, but there was a mistake in
the query.
Allowing now also listing hidden active users for users with the
'hideuser' right.

Change-Id: I2a4db8433cb5a2dec497c0fa662459cb56df3c3c

11 years agoAdd 'expandurl' to prop=extlinks/list=exturlusage
umherirrender [Fri, 7 Sep 2012 18:29:22 +0000 (20:29 +0200)]
Add 'expandurl' to prop=extlinks/list=exturlusage

Allow prop=extlinks and list=exturlusage to expand protocol-relative
urls

See also bug 40052

Change-Id: I3fd661b51c44020dad9e95ac2fe6994c6e22aabb

11 years agoMinor parameter documentation improvements on External Store classes
Reedy [Thu, 4 Oct 2012 00:08:10 +0000 (01:08 +0100)]
Minor parameter documentation improvements on External Store classes

Changed the comment about returning ExternalStore subclasses, as neither ExternalStoreDB or ExternalStoreHttp subclass ExternalStore

Remove trailing whitespace

Change-Id: I90b61f93a99d5088edfadf83c846ec5fa7e40c2e

11 years ago(bug 32951) Do not register absolute internal externals
umherirrender [Sat, 29 Sep 2012 10:36:33 +0000 (12:36 +0200)]
(bug 32951) Do not register absolute internal externals

Setting $wgRegisterInternalExternals = false for proto server should not
store the http/https links in externallinks table

Also fix detection of own links for links with query or anchor or
nothing

new also detected:
//localhost
//localhost?query
//localhost#anchor

already detected:
//localhost/path

Change-Id: Idd03d309cc3b71728a8cbea460efa12b10348d64

11 years agoMerge "[FileBackend] Suppress less warnings in doGetFileContentsMulti()."
Brion VIBBER [Wed, 3 Oct 2012 21:14:39 +0000 (21:14 +0000)]
Merge "[FileBackend] Suppress less warnings in doGetFileContentsMulti()."

11 years agoMerge "Parsoid-centric tests to RT-test comments-ws-pre interactions."
GWicke [Wed, 3 Oct 2012 21:05:00 +0000 (21:05 +0000)]
Merge "Parsoid-centric tests to RT-test comments-ws-pre interactions."

11 years agoParsoid-centric tests to RT-test comments-ws-pre interactions.
Subramanya Sastry [Wed, 3 Oct 2012 20:53:04 +0000 (15:53 -0500)]
Parsoid-centric tests to RT-test comments-ws-pre interactions.

Change-Id: I2974d1451acbaeae4bce1aa890f0becea2dca32a

11 years ago[FileBackend] Suppress less warnings in doGetFileContentsMulti().
Aaron Schulz [Wed, 3 Oct 2012 20:34:30 +0000 (13:34 -0700)]
[FileBackend] Suppress less warnings in doGetFileContentsMulti().

Change-Id: I7c03b4204bc2173c73e11ca9091907f17e93d586

11 years agoFixed documentation typo.
Aaron Schulz [Wed, 3 Oct 2012 20:32:16 +0000 (13:32 -0700)]
Fixed documentation typo.

Change-Id: I31c7959d6feb2241984883e4a02882903a8475d4

11 years agoMerge "[FileBackend] Optimized concatenate() to use getLocalReferenceMulti()."
Brion VIBBER [Wed, 3 Oct 2012 20:03:35 +0000 (20:03 +0000)]
Merge "[FileBackend] Optimized concatenate() to use getLocalReferenceMulti()."

11 years agoMerge "[FileBackend] Added getFileContentsMulti() and improved it for Swift."
Brion VIBBER [Wed, 3 Oct 2012 20:01:46 +0000 (20:01 +0000)]
Merge "[FileBackend] Added getFileContentsMulti() and improved it for Swift."

11 years agoMerge "[FileBackend] Added getLocalCopyMulti() and getLocalReferenceMulti()."
Brion VIBBER [Wed, 3 Oct 2012 19:54:34 +0000 (19:54 +0000)]
Merge "[FileBackend] Added getLocalCopyMulti() and getLocalReferenceMulti()."

11 years agoMerge "Improved documentation"
IAlex [Wed, 3 Oct 2012 19:49:57 +0000 (19:49 +0000)]
Merge "Improved documentation"

11 years agoMerge "Reorder keys for fileStoragePathsForOps() function since its a list."
Demon [Wed, 3 Oct 2012 19:45:23 +0000 (19:45 +0000)]
Merge "Reorder keys for fileStoragePathsForOps() function since its a list."

11 years agoMerge "Localisation updates from http://translatewiki.net."
Siebrand [Wed, 3 Oct 2012 19:40:50 +0000 (19:40 +0000)]
Merge "Localisation updates from translatewiki.net."

11 years agoImproved documentation
jeroendedauw [Wed, 3 Oct 2012 16:56:31 +0000 (18:56 +0200)]
Improved documentation

Change-Id: If17de8dadefeb6a2fdfe7073ba84553c07cec229

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Wed, 3 Oct 2012 19:34:49 +0000 (19:34 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I766bdb2f0fd630144b1bd56f0fa5135af8fbdf5d

11 years agoMerge "Changed notifyOnPageChange() to use onTransactionIdle()."
Brion VIBBER [Wed, 3 Oct 2012 18:25:50 +0000 (18:25 +0000)]
Merge "Changed notifyOnPageChange() to use onTransactionIdle()."

11 years agoMerge "Removed useless begin()/commit() calls as DBO_TRX is not on in cli mode."
Brion VIBBER [Wed, 3 Oct 2012 18:18:36 +0000 (18:18 +0000)]
Merge "Removed useless begin()/commit() calls as DBO_TRX is not on in cli mode."

11 years agoUpdated comment and pre-interaction tests with more cases.
Subramanya Sastry [Wed, 3 Oct 2012 15:55:16 +0000 (10:55 -0500)]
Updated comment and pre-interaction tests with more cases.

Change-Id: Icb631dd8692e4d169c2599598add30a495ea02d7

11 years agoMerge "Convert valign HTML attribute into inline CSS"
Siebrand [Wed, 3 Oct 2012 15:05:04 +0000 (15:05 +0000)]
Merge "Convert valign HTML attribute into inline CSS"

11 years agoMerge "Fix documentation of $wgProxyList"
Siebrand [Wed, 3 Oct 2012 15:04:36 +0000 (15:04 +0000)]
Merge "Fix documentation of $wgProxyList"

11 years agoMerge "Improve documentation of maintenance scripts and test suite."
Siebrand [Wed, 3 Oct 2012 15:04:10 +0000 (15:04 +0000)]
Merge "Improve documentation of maintenance scripts and test suite."

11 years agoMerge "Rebuild MessagesEn.php"
Siebrand [Wed, 3 Oct 2012 15:00:33 +0000 (15:00 +0000)]
Merge "Rebuild MessagesEn.php"

11 years agoMerge "Stylize"
Siebrand [Wed, 3 Oct 2012 14:49:22 +0000 (14:49 +0000)]
Merge "Stylize"

11 years agoRebuild MessagesEn.php
Alexandre Emsenhuber [Wed, 3 Oct 2012 09:03:51 +0000 (11:03 +0200)]
Rebuild MessagesEn.php

Change-Id: I09969e009076f3298dde8a0773771d057e404989

11 years agoMerge "Defer the watchlist update query in EditPage."
IAlex [Wed, 3 Oct 2012 04:51:48 +0000 (04:51 +0000)]
Merge "Defer the watchlist update query in EditPage."

11 years agoUpdate messages.inc for Icd721011b4
Timo Tijhof [Wed, 3 Oct 2012 00:16:46 +0000 (02:16 +0200)]
Update messages.inc for Icd721011b4

Change-Id: I5b2fd3b3f913ee57cf26e2c079b2b3bece8df358

11 years agoMerge "Removed user-agent string from mw.feedback posts"
Krinkle [Wed, 3 Oct 2012 01:42:32 +0000 (01:42 +0000)]
Merge "Removed user-agent string from mw.feedback posts"

11 years agoRemoved user-agent string from mw.feedback posts
Trevor Parscal [Tue, 2 Oct 2012 23:23:10 +0000 (16:23 -0700)]
Removed user-agent string from mw.feedback posts

Legal found this to be unacceptable

Change-Id: Ib8746ece3a34b5e577dc08596b0ff7b1b96b5d73

11 years agoAdd warning for unused params inside api
umherirrender [Wed, 26 Sep 2012 08:30:53 +0000 (10:30 +0200)]
Add warning for unused params inside api

Now MediaWiki knows all used params, it can be helpful to get a list of
unused params. This can be spelling issues or the missing 'g' for
generator modules. When the client knows about this, he can correct
them.

Change-Id: I221b7cd02bed4a38aba161dc3f85eb8fd2aad52c

11 years agoMerge "Truncate SHA-1 indexes"
Aaron Schulz [Tue, 2 Oct 2012 23:54:16 +0000 (23:54 +0000)]
Merge "Truncate SHA-1 indexes"

11 years agoUse User::getGroupsWithPermission
umherirrender [Tue, 2 Oct 2012 20:18:04 +0000 (22:18 +0200)]
Use User::getGroupsWithPermission

Change-Id: Iba44440600484b9f2525805a1c80df50d5335c1a

11 years agoDefer the watchlist update query in EditPage.
Aaron Schulz [Tue, 2 Oct 2012 22:29:05 +0000 (15:29 -0700)]
Defer the watchlist update query in EditPage.

Change-Id: I9441a2778065b03593a0e42154bb0a6e44f0a196

11 years agoResourceLoader: Refactor style loading
Timo Tijhof [Wed, 25 Jul 2012 21:20:21 +0000 (14:20 -0700)]
ResourceLoader: Refactor style loading

Fixes:
* bug 31676: Work around IE stylesheet limit.
* bug 35562: @import styles broken in modules that combine
  multiple stylesheets.
* bug 40498: Don't output empty "@media print { }" blocks.
* bug 40500: Don't ignore media-type for urls in debug mode.

Approach:
* Re-use the same <style> tag so that we stay under the 31
  stylesheet limit in IE. Unless the to-be-added css text from
  the being-loaded module contains @import, in which case we do
  create a new <style> tag and then re-use that one from that
  point on (bug 31676).

* Return stylesheets as arrays, instead of a concatenated string.
  This fixes bug 35562, because @import only works when at the
  top of a stylesheet. By not unconditionally concatenating files
  within a module on the server side already, @import will work
  in e.g. module 'site' that contains 2 wiki pages.

  This is normalized in ResourceLoader::makeCombinedStyles(),
  so far only ResourceLoaderWikiModule makes use of this.

Misc. clean up and bug fixes:
* Reducing usage of jQuery() and mw.html.element() where
  native DOM would be very simple and faster. Aside from
  simplicity and speed, this is also working towards a more
  stand-alone ResourceLoader.
* Trim server output a little bit more
  - Redundant new line after minify-css (it is now an array, so
    no need to keep space afterwards)
  - Redundant semi-colon after minify-js if it ends in a colon
* Allow space in styleTest.css.php
* Clean up and extend unit tests to cover for these features
  and bug fixes.
* Don't set styleEl.rel = 'stylesheet'; that has no business
  on a <style> tag.
* Fix bug in mw.loader's addStyleTag(). It turns out IE6
  has an odd security measure that does not allow manipulation
  of elements (at least style tags) that are created by a
  different script (even if that script was served from the same
  domain/origin etc.). We didn't ran into this before because
  we only created new style tags, never appended to them. Now
  that we do, this came up. Took a while to figure out because
  it was created by mediawiki.js but it calls jQuery which did
  the actual dom insertion. Odd thing is, we load jquery.js and
  mediawiki.js in the same request even...
  Without this all css-url related mw.loader tests would fail
  in IE6.
* mediawiki.js and mediawiki.test.js now pass jshint again.

Tested (and passing qunit/?module=mediawiki; 123 of 123):
* Chrome 14, 21
* Firefox 3.0, 3.6, 4, 7, 14, 15, 16beta
* IE 6, 7, 8, 9
* Safari 4.0, 5.0, 5.1
* Opera 10.0, 11.1, 11.5, 11.6, 12.0, 12.5beta
* iPhone 3GS / iOS 3.0 / Mobile Safari 4.0
  iPhone 4 / iOS 4.0.1 / Mobile Safari 4.0.5
  iPhone 4S / iOS 6.0 Beta / Mobile Safari 6.0

Change-Id: I3e8227ddb87fd9441071ca935439fc6467751dab

11 years agoAdditional template and pre-wrapping interaction tests.
Subramanya Sastry [Tue, 2 Oct 2012 21:43:33 +0000 (16:43 -0500)]
Additional template and pre-wrapping interaction tests.

Change-Id: I84f5b223d2f7abba3668be6f13784664380cf82f

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Tue, 2 Oct 2012 20:33:24 +0000 (20:33 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I0b758741deecd9ab4836085ca9728b7dc274bd71

11 years agoImprove documentation of maintenance scripts and test suite.
Alexandre Emsenhuber [Tue, 2 Oct 2012 20:24:33 +0000 (22:24 +0200)]
Improve documentation of maintenance scripts and test suite.

Change-Id: If5d695dc3665635fbed73a713583c0b03c14ebb1

11 years agoReorder keys for fileStoragePathsForOps() function since its a list.
Aaron Schulz [Tue, 2 Oct 2012 17:40:25 +0000 (10:40 -0700)]
Reorder keys for fileStoragePathsForOps() function since its a list.

Change-Id: I83cf6f6db92c9a0b39c3229d688463c5cda61d69

11 years agoMerge "release note for bug 34495"
IAlex [Tue, 2 Oct 2012 12:05:22 +0000 (12:05 +0000)]
Merge "release note for bug 34495"

11 years agoMerge "Removed __NOHEADER__ magic word"
Siebrand [Tue, 2 Oct 2012 08:46:42 +0000 (08:46 +0000)]
Merge "Removed __NOHEADER__ magic word"

11 years agoSane whitespace
Niklas Laxström [Tue, 2 Oct 2012 08:39:30 +0000 (08:39 +0000)]
Sane whitespace

Change-Id: I849e9e672e50f033a24b5b42db93659d6e5fe899

11 years agorelease note for bug 34495
Antoine Musso [Tue, 2 Oct 2012 08:37:31 +0000 (10:37 +0200)]
release note for bug 34495

When [r111965] got backported in 1.19wmf branch, it was not applied to
the REL1_19 branch and thus is missing from the 1.19 releases. The fix
is already in 1.20, this merely add the forgotten release notes entry.

[r111965]
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/111965

Change-Id: I2de04fbe22a0b18a15755eac2db9683e5e179b0a

11 years agoRemoved __NOHEADER__ magic word
Niklas Laxström [Tue, 2 Oct 2012 08:36:09 +0000 (08:36 +0000)]
Removed __NOHEADER__ magic word

Followup that was not done by anybody in 4 years, see r41994
Reported in http://translatewiki.net/wiki/Thread:Support/MediaWiki_magic_word_"noheader"

Change-Id: Ieded9ca281762c2c42e26c7cfe7669580cbbac62

11 years agoFixup release notes
Timo Tijhof [Tue, 2 Oct 2012 05:59:12 +0000 (07:59 +0200)]
Fixup release notes

* This section shouldn'tve been moved to the 1.21 file, because
  the change that added it (4d4bfc27a1bedf6b0d1670707ac812fe36fe85ad)
  added it to REL1_20 for back porting (which happened).

Change-Id: I1128691e330bf816cd1bb7d8c8e3e665f919272c

11 years agoMerge "Additional indent-pre and template interaction tests."
GWicke [Tue, 2 Oct 2012 04:41:23 +0000 (04:41 +0000)]
Merge "Additional indent-pre and template interaction tests."

11 years agoMerge "Bug 40668 - "Return to Array." when logging in"
IAlex [Tue, 2 Oct 2012 04:33:48 +0000 (04:33 +0000)]
Merge "Bug 40668 - "Return to Array." when logging in"

11 years agoAdditional indent-pre and template interaction tests.
Subramanya Sastry [Tue, 2 Oct 2012 04:30:20 +0000 (23:30 -0500)]
Additional indent-pre and template interaction tests.

Change-Id: I445247130dea266beb8b94e2fa1f039f1886446a

11 years agoMerge "(bug 40448) Replace legacy mwsuggest with mediawiki.searchSuggest"
Catrope [Tue, 2 Oct 2012 03:41:25 +0000 (03:41 +0000)]
Merge "(bug 40448) Replace legacy mwsuggest with mediawiki.searchSuggest"

11 years agojquery.byteLimit: Rewrite (fix bug 38158, bug 38163)
Timo Tijhof [Fri, 14 Sep 2012 02:09:47 +0000 (04:09 +0200)]
jquery.byteLimit: Rewrite (fix bug 38158, bug 38163)

It used to be fairly simply and that seemed good enough. Listen
on keypress, get current value, add character from key code in
event object, and calculate the byteLength. If it is too long,
preventDefault().

However there were so many edge cases (too many of them to be
considered edge cases) where this failed whereas the native
maxLength handling was fine.

For example:
 - Cut and paste
 - Selecting text and replacing or removing it (by any of the
   methods on this list)
 - Custom javascript input methods (e.g. Narayam)
 - Spelling suggestions and corrections
 - Drag and drop
 - etc.

Now it acts on changes after the fact.

I considered building in a timeout loop in addition to this so
that when javascript gadgets change the input value it would
detect it, however I'd like to hold that off for now. We can
add that later if needed. For now scripts are expected to fire
the 'change' event if they change it, which seems reasonable.

The only challenge that it creates, however, is the need for
basic history reconstruction. Figure out what was already there
and what is new, and cut down the new part until the total sum
satisfies the limit.

This is the same behavior that WebKit browsers (and others) have.
e.g. of "barbaz" is pasted between "f" and "o" in "foo" with a
maxLength of 5, then the resulting string will be "fbaoo".

Also fixed bug 38158 while at it. Filed an upstream bug against
webkit/Chrome but was wont fixed. Either way, we'd have to be
compatible for a little while with old WebKit builds out there
(iOS 3, Safari 5, etc.).
http://code.google.com/p/chromium/issues/detail?id=136004

Use removeAttribute('maxlength') to let the browser internally
reset the maxLength property. Resetting it directly (to undefined
or with `delete el.maxLength') does not work and casts it to 0,
which blocks the input field entirely.

Updated unit tests, and also removed the "type=text" code
afterwards which that doesn't work in IE (Internet Explorer does
not support dynamic changing of input types), needs to be in the
HTML directly. So far it was passing in IE because 'text' is the
default. Tests now use attr('maxlength') everywhere for
consistency, though properties work the same. Browsers
synchronize these things (just like the "class" attribute and
"className" property).

References:
* Fixes bug 38158: Unexpected 0 maxLength.
* Fixes bug 38163: Incorrect limiting of input when using input
  methods other than basic per-char typing.
* Follows-up: 39cb0c19
* Supersedes: I70d09aae

Change-Id: I9c204243d0bdf7158aa86a62b591ce717a36fe27

11 years ago(bug 40448) Replace legacy mwsuggest with mediawiki.searchSuggest
Timo Tijhof [Sun, 23 Sep 2012 01:06:53 +0000 (03:06 +0200)]
(bug 40448) Replace legacy mwsuggest with mediawiki.searchSuggest

The module has been broken for a while now, but nobody noticed
because in plain core it is disabled by default, and in the
bundle we ship with Extension:Vector (and its SimpleSearch).

This commit removed the mediawiki.legacy.mwsuggest module (and
related components that become obsolete with its deletion) and
replaces it with the new mediawiki.searchSuggest module, which is
based on SimpleSearch from Extension:Vector (where it will be
removed soon).

The following and all references to it in core have been removed,
I also made sure that they weren't used in any of extensions/*.
Only matches in extensions/Settings and some file that dumped the startup module, and in extensions/Vector which are addressed in
I1d5bf81a8a0266c51c99d41eefacc0f4b3ae4b76.

Had to make a few updates to jquery.suggestions to make it work
in other skins. So far it was only used in Vector, but now that
it is used in mediawiki.searchSuggest, I noticed several issues
in other skins. Most importantly the fact that it assumed the
default offset was from the right corner, which isn't the case in
Monobook where the search bar is on the left (in the sidebar).

It now detects the appropiate origin corner automatically, and
also takes directionality of the page into account.

It also uses the correct font-size automatically. Previously it
used font-size: 0.8; but that only works in Vector. Every skin
seems to have its own way of making a sane font-size. In Monobook
the <body> has an extra small font-size which is then fixed in
div#globalWrapper, and in Vector it is extra large, which is then
fixed as well deeper in the document. Either way, the size on
<body> can't be used, and since this suggestions box is appended
to the <body> (it is a generic jQuery plugin without knowledge of
the document, and even if we could give it knowledge inside
the configuration, it'd have to be per-skin). So I removed the
Vector specific font-size and let it handle it automatically.
This was needed because it is now used in all skins.

Removed modules:
* mediawiki.legacy.mwsuggest:
  > Replaced with mediawiki.searchSuggest.

Removed messages:
* search-mwsuggest-enabled
* search-mwsuggest-disabled
  > No longer used.

Removed mw.config.values:
* wgMWSuggestTemplate
  > Obsolete.

* wgSearchNamespaces
  > Obsolete.

Removed server-side settings:
* $wgEnableMWSuggest
  > Suggestions are now enabled by default and can be disabled
    through the user preference `disablesuggest` still.
    They can be disabled by default site-wide or hidden from
    prefs through the standard mechanisms for that.

* $wgMWSuggestTemplate
  > Obsolete.

Removed methods
* SearchEngine::getMWSuggestTemplate()
  > Obsolete.

Filters:
 $ ack mwsuggest -i -Q --ignore-dir=languages/messages
 $ ack wgSearchNamespaces -Q

Message changes:
* vector-simplesearch-preference
  > It was wrong, it didn't activate search suggestions, that
    was handled by the Vector extension. This preference in
    MediaWiki core controls whether the SimpleSearch bar HTML
    and CSS will be used (e.g. the rectangle search box with
    the magnifying class instead of the browser-default input
    field with the plain submit buttons).

* searchsuggest-search
* searchsuggest-containing
  These come from Extension:Vector message and should be imported
  by translatewiki:
  - vector-simplesearch-search
  - vector-simplesearch-containing

Change-Id: Icd721011b40bb8d2c20aefa8b359a3e45413a07f

11 years agoMerge "Added test for parsing &nbsp; in wikilinks."
GWicke [Mon, 1 Oct 2012 23:44:27 +0000 (23:44 +0000)]
Merge "Added test for parsing &nbsp; in wikilinks."

11 years agoBug 40668 - "Return to Array." when logging in
Reedy [Mon, 1 Oct 2012 20:35:47 +0000 (21:35 +0100)]
Bug 40668 - "Return to Array." when logging in

Change-Id: I847684cdc474d0694bf4fa5eddaa0d0b19e7be4e

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Mon, 1 Oct 2012 19:57:47 +0000 (19:57 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Ib96d779a5d6b8a7cff6a181b5530d1dc2abe191f

11 years agoMerge "Use hasSubjectNamespace in Skin.php instead of namespace tests."
Hashar [Mon, 1 Oct 2012 19:17:57 +0000 (19:17 +0000)]
Merge "Use hasSubjectNamespace in Skin.php instead of namespace tests."

11 years agoMerge "more public accessors for Title class"
Hashar [Mon, 1 Oct 2012 19:17:47 +0000 (19:17 +0000)]
Merge "more public accessors for Title class"

11 years agoMerge "Bug 38955 - Don't include job_timestamp in checks for duplicate jobs"
Aaron Schulz [Mon, 1 Oct 2012 19:13:07 +0000 (19:13 +0000)]
Merge "Bug 38955 - Don't include job_timestamp in checks for duplicate jobs"

11 years agoFix documentation of $wgProxyList
Alexandre Emsenhuber [Mon, 1 Oct 2012 19:11:21 +0000 (21:11 +0200)]
Fix documentation of $wgProxyList

Change-Id: Iaac13bee34a978061605182123a90b3167e78129

11 years agoAdded test for parsing &nbsp; in wikilinks.
Subramanya Sastry [Mon, 1 Oct 2012 19:09:19 +0000 (14:09 -0500)]
Added test for parsing &nbsp; in wikilinks.

Change-Id: I3aa2c76e6fb03c3acaf2edb9fbeca6fd70c556c2

11 years agoUse hasSubjectNamespace in Skin.php instead of namespace tests.
Daniel Friesen [Thu, 30 Aug 2012 20:05:58 +0000 (13:05 -0700)]
Use hasSubjectNamespace in Skin.php instead of namespace tests.

Change-Id: I11c5657de868a99429d400e0edb05707ec6069fb

11 years agomore public accessors for Title class
Daniel Friesen [Thu, 30 Aug 2012 20:04:42 +0000 (13:04 -0700)]
more public accessors for Title class

This patch adds new public accessor to the Title class. They are merely
returning the already existing conventions.

Added tests for the four new methods:
 - Title::getBaseText()
 - Title::getRootText()
 - Title::getRootTitle()
 - Title::getSubpageText()

The later does not test with $wgNamespacesWithSubpages variants.

Change-Id: I4f7230c1a5487b82d06c78a45c50436085df57be