lhc/web/wiklou.git
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 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 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 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

11 years agoMerge "Fix doc and deprecated warning of Title::fixUrlQueryArgs"
jenkins-bot [Mon, 8 Apr 2013 20:55:15 +0000 (20:55 +0000)]
Merge "Fix doc and deprecated warning of Title::fixUrlQueryArgs"

11 years agoMerge "mw.loader: Fix regression that caused CSS load after scripts."
jenkins-bot [Mon, 8 Apr 2013 20:52:26 +0000 (20:52 +0000)]
Merge "mw.loader: Fix regression that caused CSS load after scripts."

11 years agoMerge "Localisation updates from http://translatewiki.net."
jenkins-bot [Mon, 8 Apr 2013 20:38:48 +0000 (20:38 +0000)]
Merge "Localisation updates from translatewiki.net."

11 years agomediawiki.jqueryMsg: Implement HTML support and improve HTML escaping.
Matthew Flaschen [Sun, 10 Mar 2013 08:23:43 +0000 (04:23 -0400)]
mediawiki.jqueryMsg: Implement HTML support and improve HTML escaping.

* Whitelisted elements.
* Whitelisted attributes allowed on all elements, and additional ones
  per element.
* Currently, only b (bold) and i (italics) and the common attributes are
  implemented, but more can be added.
* Treat error message as text
* Implement appendWithoutParsing as an extra safeguard to ensure
  jQuery never implicitly parses HTML.  Reuse this where a similar
  case was handled one-off.
* Rename some of the link functions and variables to be clearer about
  relationships.

Bug: 44525
Change-Id: Id8902af9568092d0318d0ac9d1ca6c9c195d36fe

11 years agoFix doc and deprecated warning of Title::fixUrlQueryArgs
umherirrender [Mon, 8 Apr 2013 18:30:06 +0000 (20:30 +0200)]
Fix doc and deprecated warning of Title::fixUrlQueryArgs

Break long line

Change-Id: Iaeef8ce87c3ffd4609651f7cc0e8340a0f4bebfc

11 years agomw.loader: Fix regression that caused CSS load after scripts.
Timo Tijhof [Fri, 29 Mar 2013 20:09:06 +0000 (21:09 +0100)]
mw.loader: Fix regression that caused CSS load after scripts.

Follows-up 705d50c which introduced cssText buffer (yielding
one tick of the event queue to reduce the number of forced
repaints).

However since that made CSS loading asynchronoous (be it only for
a split second) it caused some nasty side-effects.

This was also reflected in the unit tests that had to resort
to doing setTimeout from within the mw.loader implemented script
to assert the styles. This is now sane again: Scripts execute
after styles are inserted.

Bug: 46401
Change-Id: Ib54a3e78710b7f798c6730d3f540d3284001e2de

11 years agoRevert "mw.loader: Fix regression that caused CSS load after scripts."
Hashar [Mon, 8 Apr 2013 19:04:31 +0000 (19:04 +0000)]
Revert "mw.loader: Fix regression that caused CSS load after scripts."

Broke master tests since it causes a JSDuck issue. See bug 47018.

This reverts commit be5f73b595b8fef0697bf83e9ebd13e85756c099

Change-Id: I2d945b7ffb7cfbcc5024a1c3bdcf0c9506b0cf76

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Mon, 8 Apr 2013 19:03:40 +0000 (19:03 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I3f39cc877ae087d2833fbdce1778ac4487f7090f

11 years agoAdd missing wfProfileOut before throwing an exception
umherirrender [Sun, 7 Apr 2013 16:34:58 +0000 (18:34 +0200)]
Add missing wfProfileOut before throwing an exception

Change-Id: I1d830da0597f19efd0b2ae48642389975e736e23

11 years agoAdd missing wfProfileOut to LocalisationCache
umherirrender [Mon, 8 Apr 2013 17:37:17 +0000 (19:37 +0200)]
Add missing wfProfileOut to LocalisationCache

Follow up Ib94a8c18c4e270a7bd46faa17eb27a22ff950f75

Moved some empty lines to match the places of other profile calls in the
file.

Change-Id: I6616b18027cdb9e70b43948aaff999a2e25b07e0

11 years agoMerge "LocalisationCache: add profiling, fix doxygen warnings"
Aaron Schulz [Mon, 8 Apr 2013 17:12:20 +0000 (17:12 +0000)]
Merge "LocalisationCache: add profiling, fix doxygen warnings"

11 years agoMerge "FormatJson: microoptimizations for UTF8_OK mode"
jenkins-bot [Mon, 8 Apr 2013 16:57:03 +0000 (16:57 +0000)]
Merge "FormatJson: microoptimizations for UTF8_OK mode"

11 years agoMerge "mw.loader: Fix regression that caused CSS load after scripts."
Trevor Parscal [Mon, 8 Apr 2013 16:52:49 +0000 (16:52 +0000)]
Merge "mw.loader: Fix regression that caused CSS load after scripts."

11 years agoMerge "Call ApiPageSet::getFinalParamDescription"
jenkins-bot [Mon, 8 Apr 2013 14:54:00 +0000 (14:54 +0000)]
Merge "Call ApiPageSet::getFinalParamDescription"

11 years agoMerge "Normalize as and or language names"
jenkins-bot [Mon, 8 Apr 2013 14:39:58 +0000 (14:39 +0000)]
Merge "Normalize as and or language names"

11 years agoMerge "Avoid fatal errors with uselang=s"
jenkins-bot [Mon, 8 Apr 2013 14:36:17 +0000 (14:36 +0000)]
Merge "Avoid fatal errors with uselang=s"

11 years agoFormatJson: microoptimizations for UTF8_OK mode
Kevin Israel [Fri, 5 Apr 2013 19:15:02 +0000 (15:15 -0400)]
FormatJson: microoptimizations for UTF8_OK mode

* Replace strtr with str_replace where faster.
* Use addcslashes to escape json_encode's output. Because no control
  characters are included, the only characters that have to be
  escaped are \ and ". (irrelevant for PHP 5.4+ installations)

Re-encoding a ~1.5 MB API response from the Chinese Wikipedia:
* PHP 5.3: 32% faster (from 347 ms to 239 ms)
* PHP 5.4: 70% faster (from 51 ms to 15 ms)
* HHVM: 42% faster (from 326 ms to 191 ms)

Change-Id: I7c9342682986d40a2f2436ac978390b6018a3521

11 years agoFix release notes for I5e6f7d48d6904.
Timo Tijhof [Sun, 7 Apr 2013 23:00:09 +0000 (01:00 +0200)]
Fix release notes for I5e6f7d48d6904.

Change-Id: Id442e6fcbdc410798579bc0bf1088ccede08e21b

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Sun, 7 Apr 2013 19:26:28 +0000 (19:26 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I182906ee394da739d6b8fb64bc7743c05b3b6ac6

11 years agoMerge "Update formatting and docs"
jenkins-bot [Sun, 7 Apr 2013 15:32:52 +0000 (15:32 +0000)]
Merge "Update formatting and docs"

11 years agoUpdate formatting and docs
Siebrand Mazeland [Mon, 1 Apr 2013 21:28:27 +0000 (23:28 +0200)]
Update formatting and docs

Also remove some unneeded else{} statements and reverse if/else if that
reduces indentation.

Change-Id: I1f7bd26119850fc944fbe84ae78bdd95cafc7bbb

11 years agoMerge "startup: Add unit tests and add Firefox < 4 to blacklist."
MaxSem [Sun, 7 Apr 2013 08:18:03 +0000 (08:18 +0000)]
Merge "startup: Add unit tests and add Firefox < 4 to blacklist."

11 years agoRemove the "Quickbar" feature and all things related to it
MatmaRex [Sat, 6 Apr 2013 15:13:45 +0000 (17:13 +0200)]
Remove the "Quickbar" feature and all things related to it

"Quickbar" was a feature of the Standard and CologneBlue skins that
allowed the sidebar to be displayed on left or right side of the page,
floated or fixed, and hidden on diff pages.

Standard was removed (Ia6d73c2d), and CologneBlue doesn't support this
anymore (bug 41246), so all things quickbar can now be safely removed.

* Removed user prefs option + interface
* Removed related messages
* Removed code for this in SkinLegacy
* Removed dead code in DifferenceEngine and Language

Change-Id: I5e6f7d48d6904a052a3a11547d3ebe6161463018

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Sat, 6 Apr 2013 19:29:48 +0000 (19:29 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Icab7dc96cc3e81918512ea4f4b55fea2bd6cf7d5

11 years agoMerge "remove references to removed skins from mediawiki.util.js"
jenkins-bot [Sat, 6 Apr 2013 15:35:35 +0000 (15:35 +0000)]
Merge "remove references to removed skins from mediawiki.util.js"

11 years agoremove references to removed skins from mediawiki.util.js
MatmaRex [Sat, 6 Apr 2013 15:09:56 +0000 (17:09 +0200)]
remove references to removed skins from mediawiki.util.js

Dead code removal. Followup to Ia6d73c2d.

Change-Id: Ic43462d6775af682626e43a1bdfab3f8077f0101

11 years agoMerge "Remove link to Special:ActiveUsers from Special:Statistics"
Alex Monk [Sat, 6 Apr 2013 13:10:03 +0000 (13:10 +0000)]
Merge "Remove link to Special:ActiveUsers from Special:Statistics"

11 years agoMerge "fixed php doc in ApiBase"
Alex Monk [Sat, 6 Apr 2013 12:26:16 +0000 (12:26 +0000)]
Merge "fixed php doc in ApiBase"

11 years agoRemove link to Special:ActiveUsers from Special:Statistics
Niklas Laxström [Wed, 3 Apr 2013 10:39:54 +0000 (10:39 +0000)]
Remove link to Special:ActiveUsers from Special:Statistics

Besides being broken, causes PHP warnings.

Bug: 46719
Change-Id: I23d9c9bdc9d38eb4256d0f7061e225cf86b576f8

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Fri, 5 Apr 2013 21:44:25 +0000 (21:44 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I222f66b12c0d6bdb03c7105b3d598304f9ffd61c

11 years agoLocalisationCache: add profiling, fix doxygen warnings
Max Semenik [Fri, 5 Apr 2013 20:07:16 +0000 (00:07 +0400)]
LocalisationCache: add profiling, fix doxygen warnings

Change-Id: Ib94a8c18c4e270a7bd46faa17eb27a22ff950f75

11 years agoMerge "Protected function UploadBase->validateName changed to public"
jenkins-bot [Fri, 5 Apr 2013 21:11:08 +0000 (21:11 +0000)]
Merge "Protected function UploadBase->validateName changed to public"

11 years agoProtected function UploadBase->validateName changed to public
rahul21 [Fri, 29 Mar 2013 10:38:32 +0000 (16:08 +0530)]
Protected function UploadBase->validateName changed to public

*Any class that is not part of the UploadBase class
(so it can't call protected functions or members on an UploadBase object).
If you, for example,build an extension that uses an UploadBase instance,
there is no way to get the title validation error.

Bug: 38221

Change-Id: Ie6c3f95a09ef84777313c3ec2edd31c50c397e28

11 years agoMerge "Fixed fatal when using fake load balancers."
jenkins-bot [Fri, 5 Apr 2013 20:29:29 +0000 (20:29 +0000)]
Merge "Fixed fatal when using fake load balancers."

11 years agostartup: Add unit tests and add Firefox < 4 to blacklist.
Timo Tijhof [Fri, 5 Apr 2013 00:35:37 +0000 (02:35 +0200)]
startup: Add unit tests and add Firefox < 4 to blacklist.

Bug: 35906
Change-Id: Id8214c6a54f1bed2f9e1abb668248c46dcf7317e

11 years agoMerge "New parserTest: check interaction of italics and English possessives."
Subramanya Sastry [Fri, 5 Apr 2013 16:53:15 +0000 (16:53 +0000)]
Merge "New parserTest: check interaction of italics and English possessives."

11 years agoMerge "Move table parsing tests from Parsoid's whitelist into upstream parserTests."
Subramanya Sastry [Fri, 5 Apr 2013 16:52:38 +0000 (16:52 +0000)]
Merge "Move table parsing tests from Parsoid's whitelist into upstream parserTests."

11 years agoMerge "Move definition list parser tests from Parsoid's whitelist into upstream."
Subramanya Sastry [Fri, 5 Apr 2013 16:51:42 +0000 (16:51 +0000)]
Merge "Move definition list parser tests from Parsoid's whitelist into upstream."

11 years agoMerge "Move bold/italic parser tests from Parsoid's whitelist into upstream."
Subramanya Sastry [Fri, 5 Apr 2013 16:50:42 +0000 (16:50 +0000)]
Merge "Move bold/italic parser tests from Parsoid's whitelist into upstream."

11 years agoNew parserTest: check interaction of italics and English possessives.
C. Scott Ananian [Fri, 5 Apr 2013 15:26:29 +0000 (11:26 -0400)]
New parserTest: check interaction of italics and English possessives.

This documents a current bug in the Parsoid parser.

Change-Id: I242324237640dd21fb24c50fa164a45091e388b8

11 years agoMove table parsing tests from Parsoid's whitelist into upstream parserTests.
C. Scott Ananian [Thu, 4 Apr 2013 22:27:50 +0000 (18:27 -0400)]
Move table parsing tests from Parsoid's whitelist into upstream parserTests.

A few more differences between Parsoid and the PHP parser.

Change-Id: Ic12c93fef905b65ffa459bb15920ea7edd9f2238

11 years agoMove definition list parser tests from Parsoid's whitelist into upstream.
C. Scott Ananian [Thu, 4 Apr 2013 21:47:41 +0000 (17:47 -0400)]
Move definition list parser tests from Parsoid's whitelist into upstream.

Parsoid parses certain uses of definition lists differently than the PHP
parser.

Change-Id: I185a805e117fc1b9ee3c0cabc657b48cf39af52b

11 years agoMove bold/italic parser tests from Parsoid's whitelist into upstream.
C. Scott Ananian [Thu, 4 Apr 2013 17:37:10 +0000 (13:37 -0400)]
Move bold/italic parser tests from Parsoid's whitelist into upstream.

Parsoid has been maintaining a whitelist for tests where its output
diverges from the PHP parser.  This patch upstreams part of that whitelist,
creating separate PHP and Parsoid test cases to document in one place
where the parsed output diverges and why.  (Uses the recently-added
'php' and 'parsoid' options in parserTests.)

Change-Id: I07ca6ec1e039a2842c641fe543b2d92eb964d932

11 years agoCall ApiPageSet::getFinalParamDescription
umherirrender [Fri, 5 Apr 2013 15:09:18 +0000 (17:09 +0200)]
Call ApiPageSet::getFinalParamDescription

This allows extensions to modify the param description of the ApiPageSet
params at once for each module, which used the ApiPageSet.

Change-Id: I2ed6f3ad38d3d84182b8525a6b247f721be7f460

11 years agoAvoid fatal errors with uselang=s
Niklas Laxström [Wed, 3 Apr 2013 10:35:29 +0000 (10:35 +0000)]
Avoid fatal errors with uselang=s

languages is not a subclass of Language

Force valid built-in language codes to be at least two letters long.

Bug: 46710
Change-Id: Ife8885ed4bdb3a017a54e063f5dc58468ba231d5

11 years agofixed php doc in ApiBase
umherirrender [Fri, 5 Apr 2013 13:47:36 +0000 (15:47 +0200)]
fixed php doc in ApiBase

Change-Id: I9c893de8c067be3e926f5de5f0b87ac47b81772d

11 years agoMerge "Added "cluster" parameter to wfWaitForSlaves() for external DBs."
jenkins-bot [Fri, 5 Apr 2013 11:21:30 +0000 (11:21 +0000)]
Merge "Added "cluster" parameter to wfWaitForSlaves() for external DBs."

11 years agoMerge changes Ic22a190c,Ia5b37f99
jenkins-bot [Fri, 5 Apr 2013 03:59:35 +0000 (03:59 +0000)]
Merge changes Ic22a190c,Ia5b37f99

* changes:
  Removed duplicate class registration
  Removed pointless static declaration

11 years agoMerge "mergeMessageFileList.php: abort on read error"
jenkins-bot [Fri, 5 Apr 2013 03:21:29 +0000 (03:21 +0000)]
Merge "mergeMessageFileList.php: abort on read error"

11 years agoRemoved useless clear() call in WikiPage::doPurge().
Aaron Schulz [Tue, 2 Apr 2013 23:21:20 +0000 (16:21 -0700)]
Removed useless clear() call in WikiPage::doPurge().

Change-Id: I3bc251ea987f089342c054afd5a02ccf321f4fe7

11 years agomergeMessageFileList.php: abort on read error
Tim Starling [Fri, 5 Apr 2013 01:03:31 +0000 (12:03 +1100)]
mergeMessageFileList.php: abort on read error

If there is a parse error or if one of the files in the extension list
doesn't exist, exit with an error. mw-update-l10n has set -e so it will
abort without syncing the new file.

Change-Id: Idaad65783127b075626c102a8dc02e22df1588b7

11 years agoAdded "cluster" parameter to wfWaitForSlaves() for external DBs.
Aaron Schulz [Thu, 4 Apr 2013 23:10:56 +0000 (16:10 -0700)]
Added "cluster" parameter to wfWaitForSlaves() for external DBs.

Change-Id: I226a1793dfb901de8e1c0ac40c1dc3ad890de95a

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

11 years agoMerge "Set lang in api createaccount regardless of $wgLoginLanguageSelector"
jenkins-bot [Thu, 4 Apr 2013 19:19:30 +0000 (19:19 +0000)]
Merge "Set lang in api createaccount regardless of $wgLoginLanguageSelector"

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Thu, 4 Apr 2013 18:45:33 +0000 (18:45 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Id8c6772f24ba3a569be66e210a99b89c3091e9a3

11 years agoMake sure a job is logged as OK if the status is NULL for sanity.
Aaron Schulz [Thu, 4 Apr 2013 17:50:26 +0000 (10:50 -0700)]
Make sure a job is logged as OK if the status is NULL for sanity.

Change-Id: Ib1e194fc6d655c48b72f0cfae30a9ec78e54419f

11 years agoFixed fatal when using fake load balancers.
Aaron Schulz [Thu, 4 Apr 2013 17:29:09 +0000 (10:29 -0700)]
Fixed fatal when using fake load balancers.

The error was:
Catchable fatal error: Argument 1 passed to DatabaseMysql::masterPosWait()
must implement interface DBMasterPos, boolean given, called in
/var/www/DevWiki/core/includes/db/LoadBalancer.php on line 419

Change-Id: I230585930c1424b0868f9aa290167c66bc6848bd

11 years agoMerge "Adding wfLogWarning for production warnings."
jenkins-bot [Thu, 4 Apr 2013 16:52:45 +0000 (16:52 +0000)]
Merge "Adding wfLogWarning for production warnings."

11 years agoRemove ExternalUser authentication code
Chad Horohoe [Wed, 20 Mar 2013 19:48:28 +0000 (15:48 -0400)]
Remove ExternalUser authentication code

This was an experimental authentication system intoduced a couple
of years ago with a pretty narrow use-case. It's been pretty much
ignored since introduction, and makes login more complicated than
it needs to be.

I didn't drop the external_user table on the off-chance someone
out there actually has data in it, but they should use AuthPlugin
for their external authentication needs.

Change-Id: I794338dbb75961ee033d41fa44bb7aa22e54f447

11 years agoNormalize as and or language names
Niklas Laxström [Thu, 4 Apr 2013 12:39:15 +0000 (12:39 +0000)]
Normalize as and or language names

Compared which of these differ if run through UtfNormal::cleanup.
Not doing this causes all kind of nasty bugs if they end up used
for page titles. See the linked bug.

Bug: 38712

Change-Id: Ieaa429b921bc93e3a40b70a76da481c11dc9c3f6

11 years agoMerge "Drop ClickTracking integration from mw.user.bucket"
jenkins-bot [Thu, 4 Apr 2013 09:39:13 +0000 (09:39 +0000)]
Merge "Drop ClickTracking integration from mw.user.bucket"

11 years agoMerge "Add to/tweak mediawiki and jqueryMsg JS tests, fix comment"
jenkins-bot [Thu, 4 Apr 2013 09:17:19 +0000 (09:17 +0000)]
Merge "Add to/tweak mediawiki and jqueryMsg JS tests, fix comment"

11 years agoImprove mediawiki.js docs:
Matthew Flaschen [Thu, 4 Apr 2013 00:23:06 +0000 (20:23 -0400)]
Improve mediawiki.js docs:

* Fix an error in the Map.set documentation.
* Use JSDuck formatting in more places.

Change-Id: I5e2d271b45c1dbb33fa67abe4a2cc79380831a23

11 years agoHTMLForm button behaviour modifications
Matt Walker [Sat, 9 Mar 2013 01:30:49 +0000 (17:30 -0800)]
HTMLForm button behaviour modifications

- Buttons can now be marked disabled and they will not be clickable.
- The default submit button may now be opted out of.

Change-Id: I8293a3c09da51152bfc7f6f6951416c71ce0bb38

11 years agoDrop ClickTracking integration from mw.user.bucket
Ori Livneh [Mon, 28 Jan 2013 07:20:01 +0000 (23:20 -0800)]
Drop ClickTracking integration from mw.user.bucket

This change set drops the 'tracked' option from mw.user.bucket, which
previous triggered logging via the ClickTracking extension.

Change-Id: I1a57df2ba60dba6041ecad7dd5c87519eb5d143e

11 years agoMost important documentation fix
Chad Horohoe [Wed, 3 Apr 2013 18:53:05 +0000 (14:53 -0400)]
Most important documentation fix

Change-Id: I0482144112345ca76ed3d95e3ad3b846cce4d87b

11 years agoMerge "(bug 46615) updateCollation.php: sanity check the collation before proceeding"
Brian Wolff [Thu, 4 Apr 2013 01:15:46 +0000 (01:15 +0000)]
Merge "(bug 46615) updateCollation.php: sanity check the collation before proceeding"

11 years agoMerge "Remove non-functional handling of curl_error()"
jenkins-bot [Thu, 4 Apr 2013 00:08:20 +0000 (00:08 +0000)]
Merge "Remove non-functional handling of curl_error()"

11 years agoMerge "ResourceLoader: Honor $wgAllow* settings in site/user modules"
jenkins-bot [Wed, 3 Apr 2013 23:55:13 +0000 (23:55 +0000)]
Merge "ResourceLoader: Honor $wgAllow* settings in site/user modules"

11 years agoMerge "Test: Assert that modules loaded correctly."
jenkins-bot [Wed, 3 Apr 2013 23:51:52 +0000 (23:51 +0000)]
Merge "Test: Assert that modules loaded correctly."

11 years agoMerge "OutputPage: Set empty modules to state 'ready' instead of 'missing'."
jenkins-bot [Wed, 3 Apr 2013 23:49:03 +0000 (23:49 +0000)]
Merge "OutputPage: Set empty modules to state 'ready' instead of 'missing'."

11 years agoAdd to/tweak mediawiki and jqueryMsg JS tests, fix comment
Matthew Flaschen [Tue, 12 Feb 2013 21:51:35 +0000 (16:51 -0500)]
Add to/tweak mediawiki and jqueryMsg JS tests, fix comment

* Remove getOuterHtml.
* Use htmlEqual where getOuterHtml was used, among other places.
* The comment reflected a change I considered making, but did not in the end.
* Add a few link tests
* Minor tweaks to other test code for consistency
* Replace wikiGetlink with explicit output

Change-Id: Id6a857c9686901f8db4944fcc081d4b9c4457fa8

11 years agoSpecify the utf-8 charset on error messages.
Platonides [Wed, 3 Apr 2013 23:28:33 +0000 (01:28 +0200)]
Specify the utf-8 charset on error messages.

Although the contents of error messages are English text,
and thus it's irrelevant that it gets interpreted as
iso-8859-1 instead of utf-8, $wgSitename is printed by
DBConnectionError::searchForm(), and that can contain utf-8.

Cached pages may also be in utf-8.

Change-Id: I81c02493f0824cb010c80f4356f338787d78df6b

11 years agoMerge "jquery.makeCollapsible: events for collapsing/expanding, tests"
jenkins-bot [Wed, 3 Apr 2013 22:11:10 +0000 (22:11 +0000)]
Merge "jquery.makeCollapsible: events for collapsing/expanding, tests"

11 years agoMerge changes Icdd8f392,Ied13e5ab
jenkins-bot [Wed, 3 Apr 2013 22:08:07 +0000 (22:08 +0000)]
Merge changes Icdd8f392,Ied13e5ab

* changes:
  jquery.makeCollapsible: basic test suite
  jquery.makeCollapsible: use 'mw-collapsible' event namespace

11 years agoMerge "(bug 36400) API: Fix sorting for iwlinks, langlinks"
jenkins-bot [Wed, 3 Apr 2013 21:59:43 +0000 (21:59 +0000)]
Merge "(bug 36400) API: Fix sorting for iwlinks, langlinks"

11 years agoResourceLoader: Honor $wgAllow* settings in site/user modules
Timo Tijhof [Wed, 3 Apr 2013 20:50:08 +0000 (22:50 +0200)]
ResourceLoader: Honor $wgAllow* settings in site/user modules

Bug: 46858
Change-Id: I17b3a2c1df5d52458f92c715242003b34111432c

11 years agoTest: Assert that modules loaded correctly.
Timo Tijhof [Wed, 3 Apr 2013 19:17:08 +0000 (21:17 +0200)]
Test: Assert that modules loaded correctly.

Since mw.loader catches any uncaught exceptions that modules
throw at run time, it is hard for QUnit and/or the browser
(e.g. PhantomJS) to know about a failure because there is
no assert failure and no uncaught exception (window.onerror).

VisualEditor's init module, for example, has a problem (bug 45175)
that sometimes causes an error, causing none of the tests to run,
yet the QUnit run would finish successful with simply none of the
VE tests included in the results.

Bug: 44299
Change-Id: Ib6e2b8d1be3e38fd9f1b948407c62da550fce0b4