lhc/web/wiklou.git
11 years agoGet rid of wfScript in MediaWikiSite::normalizePageName
Tobias Gritschacher [Mon, 15 Apr 2013 09:50:07 +0000 (11:50 +0200)]
Get rid of wfScript in MediaWikiSite::normalizePageName

wfScript should not be used to construct URLs for calls to other wikis

Bug: 47242
Change-Id: Id5aaa58f10d513e082b217aeb8d88b8228341a48

11 years agoRemoved old cache update b/c code from 2007.
Aaron Schulz [Thu, 11 Apr 2013 18:12:52 +0000 (11:12 -0700)]
Removed old cache update b/c code from 2007.

Change-Id: Ia19062cb48f7748501c061544b2949bf3beaba4d

11 years agoMerge "Fixed incorrect parameter passed to LoginForm::userBlockedMessage()"
jenkins-bot [Sun, 14 Apr 2013 22:04:25 +0000 (22:04 +0000)]
Merge "Fixed incorrect parameter passed to LoginForm::userBlockedMessage()"

11 years agoMerge "Added spaces before and removed spaces after 'array'"
jenkins-bot [Sun, 14 Apr 2013 22:01:51 +0000 (22:01 +0000)]
Merge "Added spaces before and removed spaces after 'array'"

11 years agoFixed incorrect parameter passed to LoginForm::userBlockedMessage()
Alexandre Emsenhuber [Sun, 14 Apr 2013 20:43:58 +0000 (22:43 +0200)]
Fixed incorrect parameter passed to LoginForm::userBlockedMessage()

The error is Catchable fatal error: Argument 1 passed to
LoginForm::userBlockedMessage() must be an instance of Block, null given.

The problem is that User::$mBlock is not always the correct block, when
checking that a blocked logged-in user can create an account.

bug: 47138
Change-Id: I43f35cfa342737f05a08a693a86949c14348321f

11 years agoAdded spaces before and removed spaces after 'array'
umherirrender [Sun, 14 Apr 2013 19:57:46 +0000 (21:57 +0200)]
Added spaces before and removed spaces after 'array'

Fix some other spacing while at it

Change-Id: I13f81533eaf40e06c13cf377c0f08ef5cef01d00

11 years agoMerge "Use a provider for Xff blocking tests"
jenkins-bot [Sun, 14 Apr 2013 19:49:05 +0000 (19:49 +0000)]
Merge "Use a provider for Xff blocking tests"

11 years agoUpdate/add documentation
Siebrand Mazeland [Sun, 14 Apr 2013 19:18:38 +0000 (21:18 +0200)]
Update/add documentation

Change-Id: I897d5833cdaf7dc2d3bca5bb5551958611f22bd9

11 years agoUse a provider for Xff blocking tests
csteipp [Sat, 30 Mar 2013 17:05:15 +0000 (10:05 -0700)]
Use a provider for Xff blocking tests

Move the block insertion to addDBData(), and use a provider to
itterate through the test strings.

This seems like the more correct way to run these tests, although it
still seems hacky, since the db isn't cleaned up after each test.

Change-Id: Ib22ce69797ec03a61b0cc330e8572865290ebd31

11 years agoMerge "Added/Removed spaces around string concatenation"
jenkins-bot [Sun, 14 Apr 2013 08:41:20 +0000 (08:41 +0000)]
Merge "Added/Removed spaces around string concatenation"

11 years agoMerge "JSHint: Re-order jshintrc options to split common from project settings"
jenkins-bot [Sat, 13 Apr 2013 19:14:19 +0000 (19:14 +0000)]
Merge "JSHint: Re-order jshintrc options to split common from project settings"

11 years agoAdded/Removed spaces around string concatenation
umherirrender [Sat, 13 Apr 2013 11:36:24 +0000 (13:36 +0200)]
Added/Removed spaces around string concatenation

And added/removed spaces around some other tokens,
like +, -, *, /, <, >, =, !

Fixed windows newline style

Change-Id: I0b9c8c408f3f6bfc0d685a074d7ec468fb848fc8

11 years agoJSHint: Re-order jshintrc options to split common from project settings
Timo Tijhof [Sat, 13 Apr 2013 06:47:00 +0000 (08:47 +0200)]
JSHint: Re-order jshintrc options to split common from project settings

There are certain options required by our coding conventions.
The others are specifically overriding it for core. Either
because we have certain code that needs laxing or because we
can be stricter.

Comments can be used in jshintrc since a while now. Though
they are invalid JSON, many parsers (including JSHint) allow
them for documentation purposes.

Change-Id: I43ace21208121e866900b2cbe1efbcebadd2946a

11 years agoMerge "Various code and doc cleanups to ChronologyProtector."
jenkins-bot [Sat, 13 Apr 2013 01:26:59 +0000 (01:26 +0000)]
Merge "Various code and doc cleanups to ChronologyProtector."

11 years agoMerge "Fix sequence issue with /signup URL form"
Matthew Flaschen [Fri, 12 Apr 2013 23:19:35 +0000 (23:19 +0000)]
Merge "Fix sequence issue with /signup URL form"

11 years agoSome comments for Preferences.php
kaldari [Fri, 12 Apr 2013 21:01:30 +0000 (14:01 -0700)]
Some comments for Preferences.php

Change-Id: I65d448acf1a53c95efe94587b695718f3231f538

11 years agoMerge "Update/fix docs"
jenkins-bot [Fri, 12 Apr 2013 20:28:38 +0000 (20:28 +0000)]
Merge "Update/fix docs"

11 years agoUpdate/fix docs
Siebrand Mazeland [Mon, 1 Apr 2013 18:24:26 +0000 (20:24 +0200)]
Update/fix docs

Change-Id: Ifa3cfc6fe38ea45e70b50683c36e7cbf3bb4ef82

11 years agoFix sequence issue with /signup URL form
Matthew Flaschen [Fri, 12 Apr 2013 05:10:53 +0000 (01:10 -0400)]
Fix sequence issue with /signup URL form

/signup subpage affects form display and title (just like ?type=signup),
so check for it earlier in execute().
Also rename execute()'s $par parameter to $subPage to match SubPage.php.

Change-Id: Ida615a1039bfa1d8328f5fda24c4e3da66b9d162

11 years agoMerge "Update limit/urlwidth param doc of prop=imageinfo"
jenkins-bot [Fri, 12 Apr 2013 19:25:22 +0000 (19:25 +0000)]
Merge "Update limit/urlwidth param doc of prop=imageinfo"

11 years agoMerge "Localisation updates from http://translatewiki.net."
Translation updater bot [Fri, 12 Apr 2013 18:41:21 +0000 (18:41 +0000)]
Merge "Localisation updates from translatewiki.net."

11 years agoMade $wgMaxBacklinksInvalidate actually work.
Aaron Schulz [Fri, 12 Apr 2013 17:47:31 +0000 (10:47 -0700)]
Made $wgMaxBacklinksInvalidate actually work.

* The check never worked before due to the 200 limit passed to getNumLinks().

Change-Id: I009c757c6437f22544a8d7d09d3534950c32c887

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Fri, 12 Apr 2013 17:43:42 +0000 (17:43 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Ie707fb7d84d7ceb47089a618707a05c45c29e7f1

11 years agoMerge "Support for linking directly to sections in ApiFeedWatchlist. It works only...
jenkins-bot [Fri, 12 Apr 2013 15:02:41 +0000 (15:02 +0000)]
Merge "Support for linking directly to sections in ApiFeedWatchlist.  It works only if a section name is present in item's comment."

11 years agoUse wfAppendQuery to append a query
umherirrender [Thu, 11 Apr 2013 18:22:11 +0000 (20:22 +0200)]
Use wfAppendQuery to append a query

Also pass a array to wfAppendQuery, which than does the urlencoding.

Prefer a wfScript() over the global or string

Change-Id: Icada534cb4c99c9441938a2e8dcbc11a142360c6

11 years agoMerge "Add devunt to CREDITS as patch contributor"
jenkins-bot [Fri, 12 Apr 2013 00:54:25 +0000 (00:54 +0000)]
Merge "Add devunt to CREDITS as patch contributor"

11 years agoAdd devunt to CREDITS as patch contributor
JuneHyeon Bae [Sat, 16 Mar 2013 15:33:29 +0000 (00:33 +0900)]
Add devunt to CREDITS as patch contributor

Contributions to core are in Gerrit changes I316685262, I42be68c6a, and I45d04691a.

Change-Id: Ic917af8e0c7c9f49528a7309e22c0a60505ba5e8

11 years agoMerge "Revised design of Special:Userlogin"
jenkins-bot [Thu, 11 Apr 2013 23:31:51 +0000 (23:31 +0000)]
Merge "Revised design of Special:Userlogin"

11 years agoVarious code and doc cleanups to ChronologyProtector.
Aaron Schulz [Thu, 11 Apr 2013 23:20:57 +0000 (16:20 -0700)]
Various code and doc cleanups to ChronologyProtector.

Change-Id: I4d76e4c627e399f733d078c5cc97020f363094c4

11 years agoMerge "Add ChronologyProtector to ExternalLBs"
jenkins-bot [Thu, 11 Apr 2013 22:40:37 +0000 (22:40 +0000)]
Merge "Add ChronologyProtector to ExternalLBs"

11 years agoRevised design of Special:Userlogin
S Page [Tue, 5 Mar 2013 03:13:39 +0000 (19:13 -0800)]
Revised design of Special:Userlogin

If a global variable is set or if you add ?useNew=1 to the query string,
Special:Userlogin loads a different login template (UserloginVForm.php)
with the new Vertical Form appearance and different messaging.
Otherwise the current unchanged template renders so that wikis can cut
over to the new look when ready (with messages and links). Once they do
so, the variable and flag will be retired.

The new template applies mw-ui-vform and mw-ui-button styles defined in
a new 'mediawiki.ui' CSS module in core to create a compact vertical
form.  The mw-ui styles specify a Helvetica font stack (that we tested
in the Account creation experiment) in the form area, but NOT if the
user is using some other skin than Vector.

The CSS code is developed using Sass. The patch includes the
Sass scss files, along with a Makefile that uses their Compass build
configuration (config.rb).

The redesigned Special:Userlogin also:

* Displays a "secure login" link if HTTPS is available.
* Loads additional CSS for its form features (e.g. more attractive
  errorbox, "Join wiki" messaging).
* Defines new "userlogin-xx" messages; many are the same as
  existing messages but without ':' on the end.
* Uses a distinct title for Login instead of generic "Log in /
  Create account".
* Removes the [mailmypassword] code branch from its login template as it
  is never executed.

Bug: 44628
Change-Id: I489042c50aa060c90ca18b05097dbe25c4ae6395

11 years agoMerge "Moved ChronologyProtector to its own file."
Brion VIBBER [Thu, 11 Apr 2013 21:47:48 +0000 (21:47 +0000)]
Merge "Moved ChronologyProtector to its own file."

11 years agoMerge "Fixed use of __METHOD__ in a closure."
jenkins-bot [Thu, 11 Apr 2013 21:31:44 +0000 (21:31 +0000)]
Merge "Fixed use of __METHOD__ in a closure."

11 years agoMerge "phpcs: Fix Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore violations"
jenkins-bot [Thu, 11 Apr 2013 21:20:58 +0000 (21:20 +0000)]
Merge "phpcs: Fix Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore violations"

11 years agoMoved ChronologyProtector to its own file.
Aaron Schulz [Thu, 11 Apr 2013 21:08:45 +0000 (14:08 -0700)]
Moved ChronologyProtector to its own file.

Change-Id: I01bf0206322454e36633921887d10356a48ab5cb

11 years agoFixed use of __METHOD__ in a closure.
Aaron Schulz [Thu, 11 Apr 2013 21:04:23 +0000 (14:04 -0700)]
Fixed use of __METHOD__ in a closure.

Change-Id: I41dc0ba4aff39d5a65cd1ccb3fba6c102974e6c2

11 years agoMerge "Localisation updates from http://translatewiki.net."
Translation updater bot [Thu, 11 Apr 2013 20:29:10 +0000 (20:29 +0000)]
Merge "Localisation updates from translatewiki.net."

11 years agoMerge "Disable Special:PasswordReset when $wgEnableEmail is false"
jenkins-bot [Thu, 11 Apr 2013 20:02:08 +0000 (20:02 +0000)]
Merge "Disable Special:PasswordReset when $wgEnableEmail is false"

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Thu, 11 Apr 2013 19:56:07 +0000 (19:56 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I6c19864b175b2cbb84273326a981467af2db8610

11 years agoDisable Special:PasswordReset when $wgEnableEmail is false
JuneHyeon Bae [Tue, 12 Mar 2013 06:10:17 +0000 (15:10 +0900)]
Disable Special:PasswordReset when $wgEnableEmail is false

Previously one could still navigate to the page by entering its URL directly,
and from there be able to request a password reset e-mail for any user who has
an e-mail address configured. This patch adds a check for $wgEnableEmail in the
SpecialPage code, replacing the interface with an error message when e-mail is
not enabled.

Change-Id: I42be68c6a068aafdf45623eb35bb21aa684f54f6

11 years agoMerge "Minor fix to redis queue docs."
jenkins-bot [Thu, 11 Apr 2013 19:50:21 +0000 (19:50 +0000)]
Merge "Minor fix to redis queue docs."

11 years agoMerge "Consistency tweak: Wrap variable names into <code></code>"
Yuvipanda [Thu, 11 Apr 2013 19:27:21 +0000 (19:27 +0000)]
Merge "Consistency tweak: Wrap variable names into <code></code>"

11 years agoMinor fix to redis queue docs.
Aaron Schulz [Thu, 11 Apr 2013 18:50:19 +0000 (11:50 -0700)]
Minor fix to redis queue docs.

Change-Id: I27394ddc8187ab3e9c275e2d72911318cc496604

11 years agoMerge "Added a quick test for getAllQueuedJobs()."
jenkins-bot [Thu, 11 Apr 2013 17:25:43 +0000 (17:25 +0000)]
Merge "Added a quick test for getAllQueuedJobs()."

11 years agoUpdate limit/urlwidth param doc of prop=imageinfo
umherirrender [Thu, 4 Apr 2013 15:34:22 +0000 (17:34 +0200)]
Update limit/urlwidth param doc of prop=imageinfo

Follow up Id0ec6a and to clarify things like bug 46782

Change-Id: I2215d022a47cd8ceeadd2f5d38064495f3197772

11 years agoMerge "Remove externaledit/externaldiff preference"
jenkins-bot [Thu, 11 Apr 2013 16:15:27 +0000 (16:15 +0000)]
Merge "Remove externaledit/externaldiff preference"

11 years agoUpdate documentation and styling
Siebrand Mazeland [Mon, 8 Apr 2013 12:09:48 +0000 (14:09 +0200)]
Update documentation and styling

Remove some trailing whitespace, break long lines, make PHPDoc consistent
and update it in places.

Change-Id: I340b43a47e121a44ebd4aaa2a45dff12e945e645

11 years agoAdd ChronologyProtector to ExternalLBs
Matthias Mullie [Thu, 11 Apr 2013 13:22:40 +0000 (15:22 +0200)]
Add ChronologyProtector to ExternalLBs

Change-Id: Ic6c4e86b520f7899172e3ab43e81c4d1d9637d82

11 years agoRemove externaledit/externaldiff preference
Chad Horohoe [Thu, 11 Apr 2013 13:20:36 +0000 (09:20 -0400)]
Remove externaledit/externaldiff preference

Change-Id: Ic3791d188688f556753ab5556a4d9733bbf2e85e

11 years agogiven name correction in CREDITS
Wikinaut [Thu, 11 Apr 2013 10:39:14 +0000 (12:39 +0200)]
given name correction in CREDITS

Change-Id: I1afdad0129980a988e5626351cff94c38d01688f

11 years agophpcs: Fix Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore violations
Timo Tijhof [Thu, 11 Apr 2013 05:29:05 +0000 (07:29 +0200)]
phpcs: Fix Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore violations

ERROR: Closing brace must be on a line by itself
Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore

- For non-empty scopes it means the closing brace must be on a separate
  line. This is already the case in most classes in some cases the "lazy
  closing" is still used.
  array(
   'x' ); // Moved } to next line
  function () { return 'x'; } // Moved } to next line
  case 1:
    stuff; break; // Moved break to next line
- For empty function it serves as a visual distinction between there not
  being a scope block / function body and there being an empty function
  body.
  function foo(); // No body
  function foo() {} // Empty body - violation
  function bar() { // Empty body corrected
  }

Change-Id: I0310ec379c6d41cc7d483671994d027a49f32164

11 years agoAdd @since line for User::groupHasPermission()
Kevin Israel [Thu, 11 Apr 2013 02:18:43 +0000 (22:18 -0400)]
Add @since line for User::groupHasPermission()

Change-Id: Ibcd20a3921058a010334e0e0983e2d9541aea734
Follows-up: I41edb091fa35c8c68b6f95cc5fd208ea99418cdb

11 years agoMerge "Minor coding style whitespace cleanup"
jenkins-bot [Wed, 10 Apr 2013 22:35:11 +0000 (22:35 +0000)]
Merge "Minor coding style whitespace cleanup"

11 years agoMinor coding style whitespace cleanup
Amir E. Aharoni [Thu, 14 Mar 2013 22:23:30 +0000 (00:23 +0200)]
Minor coding style whitespace cleanup

Change-Id: Ic066eda3a1a2db51b2a953a81829ce7f92568125

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Wed, 10 Apr 2013 20:02:19 +0000 (20:02 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Id27f47305ed695264d422df9fa51d6492b838b88

11 years agoVector: Move 'editwarning' feature from Vector extension
rahul21 [Sun, 31 Mar 2013 21:55:52 +0000 (03:25 +0530)]
Vector: Move 'editwarning' feature from Vector extension

* Created a new Resource Loader module
* Created an entry for the RL module in the Resources.php
* Added messages to languages/MessagesEn.php and languages/MessagesQqq.php
* Called the new RL module from the EditPage.php
* Added required entries in the messages.inc, DefaultSettings.php

Corresponding change in the Vector extension: I164f17255bc927

Bug: 46514
Change-Id: I7bdbd09f4083ccb316156307400ccfacdfec79e1

11 years agoMerge "Use HTMLForm::setWrapperLegendMsg() in FormSpecialPage::getForm()"
jenkins-bot [Wed, 10 Apr 2013 17:13:09 +0000 (17:13 +0000)]
Merge "Use HTMLForm::setWrapperLegendMsg() in FormSpecialPage::getForm()"

11 years agoAdd release notes for Iea1f7842
Brad Jorsch [Wed, 10 Apr 2013 13:38:56 +0000 (09:38 -0400)]
Add release notes for Iea1f7842

Change Iea1f7842 (Add timezone support to Language::sprintfDate) did not
include an update for RELEASE-NOTES-1.22.

Change-Id: Icad1228b90b1e30130cc820faaba7c0c8f2254a2

11 years agoUse HTMLForm::setWrapperLegendMsg() in FormSpecialPage::getForm()
Alexandre Emsenhuber [Wed, 10 Apr 2013 10:04:48 +0000 (12:04 +0200)]
Use HTMLForm::setWrapperLegendMsg() in FormSpecialPage::getForm()

There is no need to call $this->msg() directly for the fieldset legend
as there is already a method in HTMLForm to do it.

Change-Id: I771520ea230301b51cece685f47e6a606ad860be

11 years agoMerge "Remove dependency on ORMTable from ORMRow"
jenkins-bot [Wed, 10 Apr 2013 09:09:20 +0000 (09:09 +0000)]
Merge "Remove dependency on ORMTable from ORMRow"

11 years agomake error message pretty
JuneHyeon Bae [Wed, 20 Mar 2013 05:14:49 +0000 (14:14 +0900)]
make error message pretty

Change-Id: I45d04691aca8a1e2c7bb94537da8e04d2bbf0481

11 years agoAdd nosummary, minor and watchthis to Special:MyPage and friends
umherirrender [Sat, 6 Apr 2013 17:42:04 +0000 (19:42 +0200)]
Add nosummary, minor and watchthis to Special:MyPage and friends

These are options usable with action=edit and allows better options
for the inital edit view from urls or the InputBox extension.

Change-Id: I696c47ddf9f29764bc8cc6136c618c56dbc2d726

11 years agoRemove dependency on ORMTable from ORMRow
jeroendedauw [Mon, 18 Feb 2013 19:43:03 +0000 (20:43 +0100)]
Remove dependency on ORMTable from ORMRow

IORMRow implementing objects take a IORMTable object in their constructor.
The later is a hard to construct service object while the former ideally
should just be a simple wrapper around a database row. This means IORMRow
objects are tightly coupled with IORMTable objects, which makes them
inflexible and makes various things such as testing logic contained in
them needlessly difficult.

This commit gets rid of this nonsense by allowing for construction of
ORMRow objects without providing an ORMTable. All methods dependent on
the table field have been deprecated. Most of these methods have a new
alternative in ORMTable. For instance, saving an ORMRow can now be done
by passing an instance of ORMRow to the updateRow method of an ORMTable
instance, rather then calling save on the ORMRow instance.

Backwards compatibility has been retained except for the fields passed
in the constructor no longer undergoing magical unserialization if it
looks like this is needed. I do not expect this will affect any existing
code though.

Change-Id: I86368821fc2cd0729df5342b8572eb470c0f77a0

11 years agostartup: Lower blacklist for Firefox from 4 to 3.
Timo Tijhof [Wed, 10 Apr 2013 07:37:19 +0000 (09:37 +0200)]
startup: Lower blacklist for Firefox from 4 to 3.

Though Firefox is 3.6 is both unsupported by Mozilla, by jQuery
and by MediaWiki JS, it is not known to have fatal errors in
javascript run time execution so moving from Grade B (blacklist)
to Grade X (unsupported but given Grade A source code at own risk).

This is done following a thread in English Wikipedia's Village
pump requesting to get the Grade A resources again.

Follows-up 02fe025e6364ebf6f.

Change-Id: Ia54dd738b3ce0995fab6aae7a2729cc7b1a0dcb1

11 years agoFix message cache expiry semantics
Tim Starling [Wed, 3 Apr 2013 10:54:34 +0000 (21:54 +1100)]
Fix message cache expiry semantics

* Use the stale message cache while the new one is being generated
* Revert I811755d4 (make message cache load failure fatal). This
  escalated several very plausible temporary site issues from barely
  noticeable to complete downtime -- for example, memcached being down
  on a site with only one memcached server.
* Remove $wgLocalMessageCacheSerialized, it's always been pointless
* Clarify a couple of comments.
* Increased lock wait timeout to 30s
* Make lock() fail immediately on memcached connection refused

Tests done:
* With local cache enabled: normal cold refill; refill local from
  global cache; use stale local cache during remote refill; use stale
  global cache during remote refill; cold cache wait for remote refill;
  saveToCaches() failure; memcached connection refused.
* With local cache disabled: saveToCaches() failure; cache disabled due
  to "error" status key; memcached connection refused.

Setting a 1-day expiry in memcached, with a ~10s CPU cost to replace, is
not the best idea since it inevitably leads to a cache stampede. Dealing
with the stampede by waiting for a lock is not ideal, even if it were
implemented properly, since it's not necessary to deliver perfectly
fresh message cache data to all clients.

This is especially obvious when you note that barring bugs, expiry and
regeneration always gives you back the exact same data, because we have
incremental updates (MessageCache::replace()). Keeping all clients
waiting for 10s just to give them the data they have already is pretty
pointless.

So, continue to serve the site from the stale message cache while the
new one is being generated.

One caveat: if local caching enabled, when the message cache becomes
stale, a sudden spike in network bandwidth may result due to the full
array (also typically stale) being fetched from the shared cache.

Bug: 43516
Change-Id: Ia145fd90da33956d8aac127634606aaecfaa176b

11 years agoApiFormatXml: remove broken xmldoublequote param
Kevin Israel [Tue, 9 Apr 2013 00:25:47 +0000 (20:25 -0400)]
ApiFormatXml: remove broken xmldoublequote param

r55641 was a refactoring of ApiFormatXml::recXmlPrint() that added
a $doublequote parameter, yet the parameter was not actually passed
along in recursive calls, rendering the formatter's xmldoublequote
parameter useless.

XPath support was the sole reason this parameter was added. It was
argued that because in the XPath 1.0 grammar, a Literal is:

    '"' [^"]* '"' | "'" [^']* "'"

it is not possible to match attribute values that contain both an
apostrophe and a double quote.

However, conforming XPath implementations include a concat() function
that can be used to work around this limitation. Furthermore, XPath 2.0
allows escaping a double-quoted " as "" (and a single-quoted ' as '').

Because there was no Bugzilla report (other than mine) filed in the
last 3-1/2 years, and working around the XPath flaw is possible, I
think it's safe to remove the parameter. The worst that could happen
is that a not-very-robust API client chokes on the "Unrecognized
parameter" warning.

Bug: 46626
Change-Id: I9a4d8c13b78ffd2634d03c8c8b4bbeff69f4bc08

11 years agoMerge "add htmlform-no and htmlform-yes messages for generic yes-no questions"
jenkins-bot [Tue, 9 Apr 2013 23:48:06 +0000 (23:48 +0000)]
Merge "add htmlform-no and htmlform-yes messages for generic yes-no questions"

11 years agoMerge "Added a script to copy jobs from one queue to another."
jenkins-bot [Tue, 9 Apr 2013 23:39:55 +0000 (23:39 +0000)]
Merge "Added a script to copy jobs from one queue to another."

11 years agoMerge "Honor transform limit for images with many old revisions"
jenkins-bot [Tue, 9 Apr 2013 23:30:42 +0000 (23:30 +0000)]
Merge "Honor transform limit for images with many old revisions"

11 years agoMerge "(bug 33454) Add timezone support to Language::sprintfDate"
jenkins-bot [Tue, 9 Apr 2013 23:23:06 +0000 (23:23 +0000)]
Merge "(bug 33454) Add timezone support to Language::sprintfDate"

11 years agoAdded a script to copy jobs from one queue to another.
Aaron Schulz [Tue, 9 Apr 2013 07:01:32 +0000 (00:01 -0700)]
Added a script to copy jobs from one queue to another.

Change-Id: I9173f21563089e094d67deaf203797d90aa84990

11 years agoMerge "ResourceLoader: Don't cache ob_get_level"
jenkins-bot [Tue, 9 Apr 2013 23:08:04 +0000 (23:08 +0000)]
Merge "ResourceLoader: Don't cache ob_get_level"

11 years agoHonor transform limit for images with many old revisions
Brad Jorsch [Wed, 3 Apr 2013 16:03:44 +0000 (12:03 -0400)]
Honor transform limit for images with many old revisions

When preparing Id0ec6a0a, for some reason I thought the thumbnailing
only applied to the current revision. Fix that oversight.

Change-Id: I2e8aecc76a1190bac353a2b9855bc6a19ec06dec

11 years ago(bug 33454) Add timezone support to Language::sprintfDate
Brad Jorsch [Fri, 22 Mar 2013 16:41:03 +0000 (12:41 -0400)]
(bug 33454) Add timezone support to Language::sprintfDate

Add an optional timezone parameter to Language::sprintfDate, add format
characters eIOPTZ, and correct crU.

While we're at it, remove backwards-compatability code for 'N' and then
merge the existing switch cases for cr and wNzWtLoU that are basically
identical, since all those cases need to be changed anyway.

Bug: 33454
Change-Id: Iea1f78428bc0d32d6395818311dbe4b94d776c42

11 years agoMerge "Fixes to Special:PagesWithProp"
jenkins-bot [Tue, 9 Apr 2013 22:26:08 +0000 (22:26 +0000)]
Merge "Fixes to Special:PagesWithProp"

11 years agoMerge "Add SVG version of user icon in Vector personal portlet"
jenkins-bot [Tue, 9 Apr 2013 22:22:09 +0000 (22:22 +0000)]
Merge "Add SVG version of user icon in Vector personal portlet"

11 years agoResourceLoader: Don't cache ob_get_level
Timo Tijhof [Tue, 9 Apr 2013 22:16:22 +0000 (00:16 +0200)]
ResourceLoader: Don't cache ob_get_level

Follows-up I0eba7fcc9ce. This was br

Bug: 46836
Change-Id: Ida0e48931781be77327073dc4ed3966949f4b082

11 years agoMerge "mediawiki.jqueryMsg: Implement HTML support and improve HTML escaping."
jenkins-bot [Tue, 9 Apr 2013 22:14:40 +0000 (22:14 +0000)]
Merge "mediawiki.jqueryMsg: Implement HTML support and improve HTML escaping."

11 years agoAdd SVG version of user icon in Vector personal portlet
Pau Giner [Fri, 22 Feb 2013 09:36:55 +0000 (10:36 +0100)]
Add SVG version of user icon in Vector personal portlet

An SVG version of the user icon is provided only for browsers supporting
SVG. To ensure browser compatibility, the SVG version is provided in a
two-layer background where the first layer is a transparent gradient.

The fact that browsers supporting CSS gradients are a strict subset of
those supporting SVG guarantees an appropriate fallback.
Embedding is used to avoid extra http requests.

Bug: 35341
Change-Id: I914da0649459744ccca9e1a78e9f48fe66e1a77f

11 years agoAdded a quick test for getAllQueuedJobs().
Aaron Schulz [Tue, 9 Apr 2013 21:32:20 +0000 (14:32 -0700)]
Added a quick test for getAllQueuedJobs().

Change-Id: Ia39461bc1e2356da1a694bf1898b8ca8e4200ff8

11 years agoMerge "Localisation updates from http://translatewiki.net."
Translation updater bot [Tue, 9 Apr 2013 20:40:33 +0000 (20:40 +0000)]
Merge "Localisation updates from translatewiki.net."

11 years agoMerge "Cleared ResourceLoader blob store after update.php finishes."
jenkins-bot [Tue, 9 Apr 2013 19:54:47 +0000 (19:54 +0000)]
Merge "Cleared ResourceLoader blob store after update.php finishes."

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Tue, 9 Apr 2013 19:23:54 +0000 (19:23 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I83961608dc6bc3c0cea008592300972c027b5de1

11 years agoBatch all StatCounter stats into one datagram in flush().
Aaron Schulz [Tue, 2 Apr 2013 17:22:17 +0000 (10:22 -0700)]
Batch all StatCounter stats into one datagram in flush().

Change-Id: I50a2cd24764e0a284c4a1138f8424ebf3990792e

11 years agoMerge "Make sure a job is logged as OK if the status is NULL for sanity."
jenkins-bot [Tue, 9 Apr 2013 18:24:43 +0000 (18:24 +0000)]
Merge "Make sure a job is logged as OK if the status is NULL for sanity."

11 years agoSupport for linking directly to sections in ApiFeedWatchlist.
kaligula [Tue, 9 Apr 2013 18:16:08 +0000 (20:16 +0200)]
Support for linking directly to sections in ApiFeedWatchlist.
 It works only if a section name is present in item's comment.

Change-Id: I2547c10b01fab2f835fce856f6213386f309f0af

11 years agoCleared ResourceLoader blob store after update.php finishes.
Tyler Anthony Romeo [Tue, 9 Apr 2013 18:14:57 +0000 (18:14 +0000)]
Cleared ResourceLoader blob store after update.php finishes.

Update.php is supposed to clear all localization caches. This
makes sure to clear the ResourceLoader's own message cache
as well.

Bug: 44524
Change-Id: I15ceb60f5e2e4d3ed9ba818fe6cd619f9adce5b2

11 years agoMerge "jsduck-gen: Add --version parameter"
jenkins-bot [Tue, 9 Apr 2013 09:44:41 +0000 (09:44 +0000)]
Merge "jsduck-gen: Add --version parameter"

11 years agoMerge "startup: Blacklist incompatible mobile browsers"
jenkins-bot [Tue, 9 Apr 2013 09:34:05 +0000 (09:34 +0000)]
Merge "startup: Blacklist incompatible mobile browsers"

11 years agojsduck-gen: Add --version parameter
Timo Tijhof [Sat, 6 Apr 2013 01:21:37 +0000 (03:21 +0200)]
jsduck-gen: Add --version parameter

Follows-up I1d5b626.

Change-Id: I7a48e549e6acd2bdb7be9f6f2c34ff0554bb791c

11 years agoMerge "Revert "Remove is_numeric check from Title::checkUserBlock""
Hashar [Tue, 9 Apr 2013 08:45:11 +0000 (08:45 +0000)]
Merge "Revert "Remove is_numeric check from Title::checkUserBlock""

11 years agoRevert "Remove is_numeric check from Title::checkUserBlock"
Hashar [Tue, 9 Apr 2013 08:20:12 +0000 (08:20 +0000)]
Revert "Remove is_numeric check from Title::checkUserBlock"

Breaks unit testing (see bug 47031). The commit managed to land in
the branch because of a bug in Jenkins (bug 46723).

This reverts commit 8cc0b601aa2db6db09ac0e4d70847293d75875aa

Change-Id: I4b3fadccaae9c35964a0c47d63b22c4f35148a24

11 years agoMerge "Remove is_numeric check from Title::checkUserBlock"
jenkins-bot [Tue, 9 Apr 2013 02:54:44 +0000 (02:54 +0000)]
Merge "Remove is_numeric check from Title::checkUserBlock"

11 years agoRemove is_numeric check from Title::checkUserBlock
Kevin Israel [Wed, 3 Apr 2013 21:44:00 +0000 (17:44 -0400)]
Remove is_numeric check from Title::checkUserBlock

This should allow the usernames of administrators such as "7"
to show correctly on permissions error pages.

I extracted the working code from UserBlockedError::__construct
into a separate method Block::getPermissionsError, called from
both places with context provided as an argument.

Bug: 46768
Change-Id: Ic3fa926a5a4c109faff35fffbccb60fb06ea4a18

11 years agoGet rid of preg_replace( '/.../e', ... )
Kevin Israel [Mon, 18 Mar 2013 01:09:02 +0000 (21:09 -0400)]
Get rid of preg_replace( '/.../e', ... )

This is deprecated as of PHP 5.5, and the remaining uses are quite
silly. Tim said I should remove his easter egg from Special:Version,
as it already was broken, and a new one can be added in a separate
commit.

Change-Id: I0f09f4efc7afe5933c8317462026a475530a5324

11 years agoAllow search backends to return statuses instead of result sets
Chad Horohoe [Wed, 3 Apr 2013 19:16:33 +0000 (15:16 -0400)]
Allow search backends to return statuses instead of result sets

This will allow a backend to propogate more useful errors up
the stack.

Bug: 43544
Change-Id: I54ab520762381e8f46d5ca17c0bad8820eacb964

11 years agostartup: Blacklist incompatible mobile browsers
Max Semenik [Fri, 22 Mar 2013 23:58:12 +0000 (03:58 +0400)]
startup: Blacklist incompatible mobile browsers

These user agents have been blacklisted on the mobile site for some time.

They have been re-reviewed alongside the A grade phones supported by
jQuery mobile [1] and jQuery [2]

[1] http://jquerymobile.com/gbs/
[2] http://jquery.com/browser-support/

Change-Id: If7743c476e95002174763514428c17dfcbe7da4c

11 years agoMerge "bug 42649 - PHP Fatal error: Call to a member function isLocal() on a non...
jenkins-bot [Mon, 8 Apr 2013 23:19:55 +0000 (23:19 +0000)]
Merge "bug 42649 - PHP Fatal error: Call to a member function isLocal() on a non-object in Title.php"

11 years agoRemove first letters that have an overlapping prefix.
Brian Wolff [Sun, 24 Mar 2013 03:09:43 +0000 (00:09 -0300)]
Remove first letters that have an overlapping prefix.

First letters are supposed to be primary collation elements.
However, we do not want expansions to be considered
as firstletters (aka thorn "þ" -> "th" which isn't
the same as any other first letter (since "t" !== "th" )
however if þ was a first letter, the word "the" and
even worse the word "too" would be sorted under it, which
is wrong.

Looking for feedback if this all sounds sane. I have tested
it, it got rid of the contractions while at the same time
not removing any letter it wasn't supposed to.

Once this is merged, we could get rid of all the
-<langcode> entries. The other firstLetter array
entries for tailorings could be merged into
generateCollationData.php too, since incorrect
things would get pruned automatically, which
would probably make the logic in Collation.php
simpler.

Bug: 43740
Change-Id: I4bd3d39ec2938a53e2c6728adc48ee6cf9778d74

11 years agobug 42649 - PHP Fatal error: Call to a member function isLocal() on a non-object...
Reedy [Mon, 8 Apr 2013 22:29:57 +0000 (23:29 +0100)]
bug 42649 - PHP Fatal error: Call to a member function isLocal() on a non-object in Title.php

Change-Id: Ie6027c818785b12f6be9c47caab77ffa4a587a79