lhc/web/wiklou.git
11 years agoOutputPage: Move our <meta charset="...> so it's placed above the title
Daniel Friesen [Sat, 11 May 2013 09:31:30 +0000 (02:31 -0700)]
OutputPage: Move our <meta charset="...> so it's placed above the title

It's recommended for the meta charset to be placed before the <title> since
<title> contains text which is inside the character set defined by the meta charset.

Use of meta charset inside XHTML also seems to be redundant, not recommended,
and is very likely completely ignored.

Change-Id: I335b0598a9615540dc5e917682508b4a8d32d96e

11 years agoMerge "HTMLCheckMatrix support for forcing options on/off"
jenkins-bot [Fri, 17 May 2013 00:34:32 +0000 (00:34 +0000)]
Merge "HTMLCheckMatrix support for forcing options on/off"

11 years agoHTMLCheckMatrix support for forcing options on/off
ebernhardson [Sat, 27 Apr 2013 01:49:02 +0000 (18:49 -0700)]
HTMLCheckMatrix support for forcing options on/off

Bug: 47743
Renamed remove-options parameter of HTMLCheckMatrix to force-options-on
and added additional force-options-off. Minor refactor of
PreferencesForm::filterDataForSubmit to move class specific code into their
respective classes.

Change-Id: I61a6b2bcce3102e2350088912ee77620a9f678f9

11 years ago(bug 47216) API: indicate default and skipped skins in meta=siteinfo
Brad Jorsch [Mon, 15 Apr 2013 14:54:51 +0000 (10:54 -0400)]
(bug 47216) API: indicate default and skipped skins in meta=siteinfo

action=query&meta=siteinfo&siprop=skins can easily indicate which of the
returned skins is the default and which are unusable (e.g. because
they're listed in $wgSkipSkins). So we may as well do so.

Bug: 47216
Change-Id: Ib4ea5fe85e1b02895dba15f3a245c7a7d8724470

11 years agoDairikiDiff: Optimise method WordLevelDiff._split()
Boris Nagaev [Thu, 2 May 2013 14:33:15 +0000 (18:33 +0400)]
DairikiDiff: Optimise method WordLevelDiff._split()

_split() copied two arrays N times, where N is number of lines in diff.
This was done by $a = array_merge($a, ...);
Instead of doing this, new words are appended to the end of array
using []= syntax.

Bug: 47989
Change-Id: I41338a2a82fbc20d7511f4c79581880febeeeea5

11 years agoMerge "document NullJob example usage"
jenkins-bot [Thu, 16 May 2013 22:37:36 +0000 (22:37 +0000)]
Merge "document NullJob example usage"

11 years agoChanging "private" to "protected" on a few functions in User.php
Peter Gehres [Thu, 16 May 2013 22:18:57 +0000 (15:18 -0700)]
Changing "private" to "protected" on a few functions in User.php

This is required for auth plugins to be able to send customized
email confirmation and migration emails.  For example, we need to
send emails from CentralAuth that will both confirm the email
address and then run through Special:MergeAccount attempting to
attach as many local accounts as possible.

Change-Id: If281aa6219e5a0b80252b0deac7ee0c4f74c3d58

11 years agoBlank some new Create account messages by default
S Page [Mon, 29 Apr 2013 16:34:48 +0000 (18:34 +0200)]
Blank some new Create account messages by default

Do not show the "(help me choose)" and "Can't see the image?  _Request
an account_" links.  They can still be customized on-wiki, but the
default value is empty.

The content and URLs that we encourage for these messages on WMF wikis
are now in extension WikimediaMessages (change I28b0079b).

Add comment to vform create account JavaScript.

Bug: 47801
Change-Id: Ie0888cd0582dc3f63ae569097159a4d9b171a5df

11 years agoMerge "Reposition nested FancyCaptcha, conditional help."
jenkins-bot [Thu, 16 May 2013 20:05:50 +0000 (20:05 +0000)]
Merge "Reposition nested FancyCaptcha, conditional help."

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Thu, 16 May 2013 19:13:05 +0000 (19:13 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I844a34ef9b83791f86e2b76b8be07fb35bf7f3b8

11 years agoMerge "Add Parsoid-specific tests for link trail and -prefix escaping"
MarkTraceur [Thu, 16 May 2013 17:35:32 +0000 (17:35 +0000)]
Merge "Add Parsoid-specific tests for link trail and -prefix escaping"

11 years agoMerge "SpecialStatistics::getOtherStats use standard language instead of inContentLan...
jenkins-bot [Thu, 16 May 2013 17:14:28 +0000 (17:14 +0000)]
Merge "SpecialStatistics::getOtherStats use standard language instead of inContentLanguage"

11 years agoSpecialStatistics::getOtherStats use standard language instead of inContentLanguage
mwjames [Thu, 16 May 2013 16:51:32 +0000 (01:51 +0900)]
SpecialStatistics::getOtherStats use standard language instead of inContentLanguage

Use user language instead of inContentLanguage.

Bug: 48542
Change-Id: Ib7d9cb5aa3051b5d602f7a0838425d92fc7a515f

11 years agoMerge "Fix global objects and singletons in NewParserTest"
jenkins-bot [Thu, 16 May 2013 16:19:44 +0000 (16:19 +0000)]
Merge "Fix global objects and singletons in NewParserTest"

11 years agodocument NullJob example usage
Antoine Musso [Thu, 16 May 2013 13:09:27 +0000 (15:09 +0200)]
document NullJob example usage

This provide a very simple example to use NullJob class for test
purposes.

Change-Id: I04fa83d4e143451c290f0978ff25b20e9dbe8bef

11 years agoMerge "Drop support for XHTML 1.0"
jenkins-bot [Thu, 16 May 2013 12:17:51 +0000 (12:17 +0000)]
Merge "Drop support for XHTML 1.0"

11 years agoFix badcontinue in possible errors of paraminfo
umherirrender [Thu, 16 May 2013 06:55:39 +0000 (08:55 +0200)]
Fix badcontinue in possible errors of paraminfo

Badcontinue results in
<error code="unknownerror" info="Unknown error: &quot;badcontinue&quot;"
/>
because there is one array deep too much.

Change-Id: Iff88c3864f65e5da6cd31594396dffdaa71b5593

11 years agoDrop support for XHTML 1.0
Daniel Friesen [Fri, 10 May 2013 04:04:33 +0000 (21:04 -0700)]
Drop support for XHTML 1.0

* $wgHtml5 = false; is now ignored completely.
* $wgDocType and $wgDTD have been removed.
* $wgXhtmlDefaultNamespace is now ignored.
* XHTML5 will be output if $wgMimeType is set to an XML mime type (according to HTML5's rules).
* For backwards compatibility with extensions $wgHtml5 and $wgXhtmlDefaultNamespace are set
  in Setup.php but depending on them is deprecated.

Change-Id: Iad9634e2ee420b5a3bbffe550421fde4fa1819b0

11 years agoRevert "(bug 46615) updateCollation.php: sanity check the collation before proceeding"
Brian Wolff [Thu, 4 Apr 2013 12:27:19 +0000 (12:27 +0000)]
Revert "(bug 46615) updateCollation.php: sanity check the collation before proceeding"

Sorry, forgot that method was not in the base class, and I had only tested with uca based collations. This breaks on uppercase type collations.

This reverts commit 6eb84144df605feb717efc91c84c00eaec62a5f6

Change-Id: Ib7b9597ff842a76185ba5c153922834ffb741237

11 years agoMerge "Localisation updates from http://translatewiki.net."
Translation updater bot [Wed, 15 May 2013 21:16:18 +0000 (21:16 +0000)]
Merge "Localisation updates from translatewiki.net."

11 years agoAdd Parsoid-specific tests for link trail and -prefix escaping
Gabriel Wicke [Wed, 15 May 2013 21:01:48 +0000 (14:01 -0700)]
Add Parsoid-specific tests for link trail and -prefix escaping

This is intended to test the escaping code developed in I627dd609d4eb0. The
link prefix code does not pass yet, possibly because of some bug in
language-specific tests or our local islandic language config.

Change-Id: I53289110e3f9e4f840b2f45594e819c9655a17b4

11 years agoMerge "Fixed total breakage of HashRing in 9d1cd9a."
jenkins-bot [Wed, 15 May 2013 20:21:42 +0000 (20:21 +0000)]
Merge "Fixed total breakage of HashRing in 9d1cd9a."

11 years agoFixed total breakage of HashRing in 9d1cd9a.
Aaron Schulz [Wed, 15 May 2013 18:16:16 +0000 (11:16 -0700)]
Fixed total breakage of HashRing in 9d1cd9a.

* This had PHP warnings but no errors, but was broken.
* Added some unit tests for this class.

Change-Id: I7c7ea2c30ca747aae7a3c3951fc33c69052de085

11 years agoFixed bug where FORCE INDEX did not make it to the SQL.
Aaron Schulz [Wed, 15 May 2013 20:00:29 +0000 (13:00 -0700)]
Fixed bug where FORCE INDEX did not make it to the SQL.

Change-Id: Id19d7b2e9453faf9031a7409329376b98a2fbb17

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Wed, 15 May 2013 19:29:03 +0000 (19:29 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I9428a80e060d8c544ed0dc342fa198a7cd3dca4d

11 years ago[JobQueue] Added a function to delete all jobs from a queue.
Aaron Schulz [Wed, 15 May 2013 02:29:22 +0000 (19:29 -0700)]
[JobQueue] Added a function to delete all jobs from a queue.

Change-Id: Ibad122148bdd2f7baf528929e15bae803fccfeea

11 years agoMerge "Localisation updates from http://translatewiki.net."
jenkins-bot [Wed, 15 May 2013 17:52:52 +0000 (17:52 +0000)]
Merge "Localisation updates from translatewiki.net."

11 years agoMerge "[JobQueue] In addition to flushing any transaction, be sure to avoid new ones"
jenkins-bot [Wed, 15 May 2013 17:49:51 +0000 (17:49 +0000)]
Merge "[JobQueue] In addition to flushing any transaction, be sure to avoid new ones"

11 years agoLocalisation updates from http://translatewiki.net.
Siebrand Mazeland [Wed, 15 May 2013 17:45:48 +0000 (19:45 +0200)]
Localisation updates from translatewiki.net.

Updates for magic words translations.

Change-Id: I964a572cb36c9eca7c23f98c46148bdf5b82b2cb

11 years agoMerge "Fixed bug in LocalFile::isCacheable()."
jenkins-bot [Wed, 15 May 2013 17:18:47 +0000 (17:18 +0000)]
Merge "Fixed bug in LocalFile::isCacheable()."

11 years agoLocalisation updates from http://translatewiki.net.
Siebrand Mazeland [Wed, 15 May 2013 16:36:48 +0000 (18:36 +0200)]
Localisation updates from translatewiki.net.

Updates for special page aliases.

Change-Id: If62552c379f34c6298df0e5144c85c08e41a9a7e

11 years agoDo not bold all entries of an unvisited page on the Watchlist
umherirrender [Mon, 31 Dec 2012 19:41:00 +0000 (20:41 +0100)]
Do not bold all entries of an unvisited page on the Watchlist

When a page is unvisited (wl_notificationtimestamp IS NOT NULL) all
entries of that page on the watchlist gets bold (class=mw-changeslist-line-watched),
because wl_notificationtimestamp is only checked for null.

wl_notificationtimestamp should be compared against rc_timestamp to
find only the really unvisited pages since the last visit on that page.

It is confusing, when all entries of a page on the watchlist gets bold,
but only some of the newer are unvisited.

Support for old and enhanced watchlist.

Change-Id: I7265141a6c84bcbdd7b651bd2983a08b73c6ddfe

11 years agoMerge "Clean up sublime ignores"
jenkins-bot [Wed, 15 May 2013 15:09:53 +0000 (15:09 +0000)]
Merge "Clean up sublime ignores"

11 years agoMerge "Made DatabaseBase::getSoftwareLink() dynamic."
jenkins-bot [Wed, 15 May 2013 14:37:58 +0000 (14:37 +0000)]
Merge "Made DatabaseBase::getSoftwareLink() dynamic."

11 years ago(bug 41337) Fix fatal error in Special:Preferences
Alexandre Emsenhuber [Thu, 1 Nov 2012 21:07:37 +0000 (22:07 +0100)]
(bug 41337) Fix fatal error in Special:Preferences

The error is Fatal error: Call to a member function msg() on a
non-object at includes/Preferences.php on line 1207.

The problem is that fields created in Preferences::getPreferences() for
validation don't have their parent set and thus an error occurs when the
validation fails since they want to use their parent to get a Message
object.

This commit adds a dummy parent object to these fields to fix the error.

bug: 41337
Change-Id: I5826d6e3f1262c8d26af0cfe7074a939f80bcaca

11 years agoMerge "Fix inconsistent docs"
jenkins-bot [Wed, 15 May 2013 08:24:06 +0000 (08:24 +0000)]
Merge "Fix inconsistent docs"

11 years agodocs: Remove odd colons after @todo
Timo Tijhof [Wed, 15 May 2013 01:12:35 +0000 (03:12 +0200)]
docs: Remove odd colons after @todo

Most were this way already:
https://doc.wikimedia.org/mediawiki-core/master/php/html/todo.html

Ran a find/replace on the odd ones. Also made them all
lower case.

Change-Id: I70c6a69344ddebc603e9a1c1d87e3cc4f4f4c560

11 years agoMade DatabaseBase::getSoftwareLink() dynamic.
Aaron Schulz [Wed, 15 May 2013 04:13:02 +0000 (21:13 -0700)]
Made DatabaseBase::getSoftwareLink() dynamic.

* All callers are calling it this way and it breaks
  hhvm when declared statically and called dynamically.

Change-Id: I894e615fd828615384aa8457a16a759c8aa416ef

11 years ago[JobQueue] In addition to flushing any transaction, be sure to avoid new ones
Aaron Schulz [Wed, 15 May 2013 01:52:33 +0000 (18:52 -0700)]
[JobQueue] In addition to flushing any transaction, be sure to avoid new ones

* This probably only matters when jobs are not run via CLI scripts.

Change-Id: Ie04c8baac218f5df770388e17096dcb4f2eb9cba

11 years agodocs: Consistently use "since" phrasing in @deprecated
Timo Tijhof [Wed, 15 May 2013 00:53:49 +0000 (02:53 +0200)]
docs: Consistently use "since" phrasing in @deprecated

Most have it already:
https://doc.wikimedia.org/mediawiki-core/master/php/html/deprecated.html

Ran a find/replace on "@deprecated \d" to fix the odd ones.

Change-Id: I5217aaf75264a0036b5426cd8536116b4bb8f535

11 years agocleanup: variable referenced without initialization
Yuri Astrakhan [Mon, 11 Mar 2013 03:19:45 +0000 (23:19 -0400)]
cleanup: variable referenced without initialization

declared so that IDE knows how to use it and initialized

Change-Id: I4841fd3f03220f837c981951f07c1c21ddbd76af

11 years agoMerge "Remove the space from between headline and its section edit link"
jenkins-bot [Tue, 14 May 2013 21:35:03 +0000 (21:35 +0000)]
Merge "Remove the space from between headline and its section edit link"

11 years agoOutputPage: Guard jQuery.ready() against absence of jQuery
Timo Tijhof [Tue, 14 May 2013 20:58:18 +0000 (22:58 +0200)]
OutputPage: Guard jQuery.ready() against absence of jQuery

We already wrap usage of global "mediaWiki" in a condition
for window.mw (see method
ResourceLoader::makeLoaderConditionalScript) because:
1) The startup module blacklists certain
   browsers in which we won't load jquery+mediawiki.
2) It might have failed to load (for whatever reason).

Adding guard for window.jQuery for the same reasons.

Follows-up Ic3d0c937268d09, which caused a TypeError
'ready of undefined not a function' in browsers where
jquery+mediawiki isn't loaded by the startup module.

Change-Id: I9dcd8d347c6b00efe207d031a480e5b85bf78936

11 years agoMerge "add basic print styles to CologneBlue"
TheDJ [Tue, 14 May 2013 20:14:15 +0000 (20:14 +0000)]
Merge "add basic print styles to CologneBlue"

11 years agoUpdate messages.inc and rebuild MessagesEn.php.
Alexandre Emsenhuber [Tue, 14 May 2013 20:02:32 +0000 (22:02 +0200)]
Update messages.inc and rebuild MessagesEn.php.

Change-Id: Id8fdb78452da385f364baf8b886c6e1276fd8a9c

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Tue, 14 May 2013 19:39:34 +0000 (19:39 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Id1c3618e6ce426dd5ecb73253b56badef06b366c

11 years agoFixed bug in LocalFile::isCacheable().
Aaron Schulz [Tue, 14 May 2013 18:45:34 +0000 (11:45 -0700)]
Fixed bug in LocalFile::isCacheable().

* The metadata field is actually defaulting to "" not null.

Change-Id: I745441c7061494db26de7f64dda30b80171c9443

11 years agoFixed LocalFile::isCacheable() to account for object type metadata.
Aaron Schulz [Tue, 14 May 2013 18:06:35 +0000 (11:06 -0700)]
Fixed LocalFile::isCacheable() to account for object type metadata.

Change-Id: I8104201c84ea008446df587650a098f6732b8d39

11 years agoFix typo in RELEASE-NOTES
Alexandre Emsenhuber [Tue, 14 May 2013 06:33:27 +0000 (08:33 +0200)]
Fix typo in RELEASE-NOTES

Follow-up a2c6734 (I42be68c6a0): a "is false" was missing.

Change-Id: Ia81fbcded13c2da4354f1dce383bf5b854b99e49

11 years ago(bug 41545) Allow kbd, samp, and var to be nested.
Daniel Friesen [Tue, 30 Oct 2012 13:34:56 +0000 (06:34 -0700)]
(bug 41545) Allow kbd, samp, and var to be nested.

HTML5 has various semantics that allow -- or rather require --
<kbd> and <samp> and even <var> to be nested.

eg: <kbd><kbd>Shift</kbd>+<kbd>F3</kbd></kbd>
eg: <var>x<sub><var>i</var></sub></var>, <var>y<sub><var>i</var></sub></var>

This fixes the sanitizer to permit their nesting and adds test cases to ensure that some
of HTML5's special semantics are permitted by our sanitizer and not broken.

Change-Id: I6ad64e6eb4c9b5bdc15be513f55c58f6717c3939

11 years agoClean up sublime ignores
Chad Horohoe [Mon, 13 May 2013 23:08:29 +0000 (19:08 -0400)]
Clean up sublime ignores

Change-Id: Ia7e22c2219040c7137a0f4ddc1dbb8ec1861a2d3

11 years agoMerge "Clear stat cache before determining local copy error message."
jenkins-bot [Mon, 13 May 2013 22:13:01 +0000 (22:13 +0000)]
Merge "Clear stat cache before determining local copy error message."

11 years agoFix Qqq link for userlogin-resetpassword-link
Matthew Flaschen [Mon, 13 May 2013 21:33:13 +0000 (17:33 -0400)]
Fix Qqq link for userlogin-resetpassword-link

* ResetPassword redirects to ChangePassword, which doesn't work logged out
* PasswordReset is the actual "forgot my password".

Change-Id: I4b9a7c3fe80feb8d2a8e4fe3be1238d2cc55d348

11 years agoClear stat cache before determining local copy error message.
Aaron Schulz [Mon, 13 May 2013 17:37:03 +0000 (10:37 -0700)]
Clear stat cache before determining local copy error message.

* This makes it clearer if the listings are just wonky.

Change-Id: I78078fb9fac88b17e010b0eb990dbbeb83ea48f1

11 years agoMerge "Localisation updates from http://translatewiki.net."
Translation updater bot [Mon, 13 May 2013 20:02:21 +0000 (20:02 +0000)]
Merge "Localisation updates from translatewiki.net."

11 years agoMerge "Strengthened validation for HashRing a bit."
jenkins-bot [Mon, 13 May 2013 18:53:40 +0000 (18:53 +0000)]
Merge "Strengthened validation for HashRing a bit."

11 years agoMerge "Use Html::element() to build the links used in 'alphaindexline' message"
jenkins-bot [Mon, 13 May 2013 18:52:01 +0000 (18:52 +0000)]
Merge "Use Html::element() to build the links used in 'alphaindexline' message"

11 years agoMerge "Remove "will be removed in ..." comments"
jenkins-bot [Mon, 13 May 2013 18:50:19 +0000 (18:50 +0000)]
Merge "Remove "will be removed in ..." comments"

11 years agoMerge "jquery.tablesorter.test: Reset transform tables in mw.config"
jenkins-bot [Mon, 13 May 2013 18:42:56 +0000 (18:42 +0000)]
Merge "jquery.tablesorter.test: Reset transform tables in mw.config"

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Mon, 13 May 2013 18:41:30 +0000 (18:41 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Ic2a29f252b16e103c55841e39935c74aabcc4532

11 years agojquery.tablesorter.test: Reset transform tables in mw.config
umherirrender [Mon, 13 May 2013 16:45:21 +0000 (18:45 +0200)]
jquery.tablesorter.test: Reset transform tables in mw.config

Having $wgLanguageCode set to "de" will pre-populate the transform tables
in mw.config for German, but the English transform tables are expected
(which are empty) for the jquery.tablesorter tests to pass.

Change-Id: Ief16ff9d0767c6c9332bc4e56c96be3d7d4f6ac8

11 years agoMerge "Disambiguate buildForm docs, add TODO"
jenkins-bot [Mon, 13 May 2013 18:25:35 +0000 (18:25 +0000)]
Merge "Disambiguate buildForm docs, add TODO"

11 years agoMerge "Whitelist a bunch of url protocols."
jenkins-bot [Mon, 13 May 2013 18:23:40 +0000 (18:23 +0000)]
Merge "Whitelist a bunch of url protocols."

11 years agoStrengthened validation for HashRing a bit.
Aaron Schulz [Mon, 13 May 2013 18:20:11 +0000 (11:20 -0700)]
Strengthened validation for HashRing a bit.

Change-Id: Ib0331662c785d806063ca730905dd88b6545d8f0

11 years agoAdded wiki ID to backend copy script errors.
Aaron Schulz [Mon, 13 May 2013 17:51:01 +0000 (10:51 -0700)]
Added wiki ID to backend copy script errors.

Change-Id: Ibe1fc6037d20f6669578295b6db62a4e414ee6b7

11 years agoDisambiguate buildForm docs, add TODO
Mark Holmquist [Mon, 13 May 2013 17:47:45 +0000 (10:47 -0700)]
Disambiguate buildForm docs, add TODO

Xml::buildForm needs some love. I've given it a better documentation
string, but left a TODO for accessibility: We need to use labels for
input labelling, not table elements.

Change-Id: I4a9ff174e83c8ca3242c82bbe7cb0da0b8be7785

11 years ago(Bug 5798) Prevent overflow in the footer when there are no links
Felipe Schenone [Mon, 13 May 2013 13:00:04 +0000 (15:00 +0200)]
(Bug 5798) Prevent overflow in the footer when there are no links

Simple pure CSS solution to a minor overflow bug.

Change-Id: I337bab53600efb4cb27b65b01d62f59968a4fba9

11 years agoReposition nested FancyCaptcha, conditional help.
S Page [Sat, 4 May 2013 05:45:25 +0000 (22:45 -0700)]
Reposition nested FancyCaptcha, conditional help.

There's less work to do here when the Refresh link is already nicely
positioned over the FancyCaptcha image (in extension/ConfirmEdit's
I57be0bc8aa , merged and deployed).  It still needs separate divs, one
with a border exactly 270px wide (display: table-cell) and one to act as
the positioning parent of the Refresh link (display: inline-block).

Also, only show the help msg for the captcha if it exists.

Bug: 47699
Change-Id: I003c5f1b75471cce32b149037198c314ce9489ea

11 years agoWhitelist a bunch of url protocols.
Daniel Friesen [Mon, 13 May 2013 02:41:13 +0000 (19:41 -0700)]
Whitelist a bunch of url protocols.

Our url whitelisting is just to reject unsafe protocols like javascript:.
We have no reason to reject a bunch of urls to open standardized schemes.

Whitelist a bunch of them:
ftps, ssh, sftp, xmpp, sip, sips, tel, sms, bitcoin, magnet, urn, and geo.

Change-Id: I941190203ee1442d912d46144584bf2e7733f32c

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Sun, 12 May 2013 19:10:03 +0000 (19:10 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I7805de9f5046bf94f0800d07564548711373e2e0

11 years agoAdded missing continue to avoid fatal error.
Aaron Schulz [Sat, 11 May 2013 07:48:48 +0000 (00:48 -0700)]
Added missing continue to avoid fatal error.

Change-Id: Ibb87c9e59e424fa84d662bb42349085d186dcc99

11 years agoMerge "(bug 34666) Escape URLs in XML files created by generateSitemap.php"
jenkins-bot [Sun, 12 May 2013 17:14:16 +0000 (17:14 +0000)]
Merge "(bug 34666) Escape URLs in XML files created by generateSitemap.php"

11 years ago(bug 34666) Escape URLs in XML files created by generateSitemap.php
Liangent [Sun, 12 May 2013 15:36:59 +0000 (15:36 +0000)]
(bug 34666) Escape URLs in XML files created by generateSitemap.php

Bug: 34666
Change-Id: Ifb6ddb0bc6ca03c411f938837b2f89a5a30e4fc3

11 years agoChange default importImages comment to "Importing file"
Reedy [Sun, 28 Apr 2013 23:15:37 +0000 (00:15 +0100)]
Change default importImages comment to "Importing file"

Change-Id: Id65de095d7d7b697092a369f429b9e3b171d3e38

11 years agoMerge "Variable $wgRestrictionLevels unused since 1cbaa921"
jenkins-bot [Sun, 12 May 2013 14:34:25 +0000 (14:34 +0000)]
Merge "Variable $wgRestrictionLevels unused since 1cbaa921"

11 years agoVariable $wgRestrictionLevels unused since 1cbaa921
Platonides [Sun, 12 May 2013 14:18:25 +0000 (16:18 +0200)]
Variable $wgRestrictionLevels unused since 1cbaa921

Change-Id: I251ecaf319b2b4379ef80417ba23022a56064a94

11 years agoMerge "Fix unit tests when $wgEmailAuthentication is set to false"
jenkins-bot [Sun, 12 May 2013 08:13:15 +0000 (08:13 +0000)]
Merge "Fix unit tests when $wgEmailAuthentication is set to false"

11 years agoMerge "Made copyFileBackend.php skip files that cannot be copied instead of stopping."
jenkins-bot [Sun, 12 May 2013 01:36:19 +0000 (01:36 +0000)]
Merge "Made copyFileBackend.php skip files that cannot be copied instead of stopping."

11 years agoMade copyFileBackend.php skip files that cannot be copied instead of stopping.
Aaron Schulz [Sun, 12 May 2013 01:10:40 +0000 (18:10 -0700)]
Made copyFileBackend.php skip files that cannot be copied instead of stopping.

Change-Id: Ib15efdd35f38adefe3db500b4b6e5a71ea1858c7

11 years agoAdd $wgCascadingRestrictionLevels
MatmaRex [Wed, 24 Apr 2013 19:16:51 +0000 (21:16 +0200)]
Add $wgCascadingRestrictionLevels

A page can only be protected with cascading protection if the
requested restriction level is included in this array.

This replaces previously hard-coded values of 'sysop' and 'protect'.

This is necessary, because if any protection could be
cascading, users could who cannot normally protect pages could
"protect" them by transcluding them on protected pages they are
allowed to edit.

Bug: 47617
Change-Id: I5f8bcc899b46d466161894606cd27bf3b8624bd0

11 years agoFix unit tests when $wgEmailAuthentication is set to false
Alexandre Emsenhuber [Sat, 11 May 2013 20:14:18 +0000 (22:14 +0200)]
Fix unit tests when $wgEmailAuthentication is set to false

Since d2a5cf3 (I0b906b23de), 'emailaddress' and 'emailauthentication'
fields don't have any more CSS classes when $wgEmailAuthentication is
set to false which is breaking the tests.

Force $wgEmailAuthentication to true, so that the tests work in all cases.

Change-Id: Idc156f88ff1bc8595009056166f13191cf5c5c25

11 years agoRemove "will be removed in ..." comments
Alexandre Emsenhuber [Sat, 11 May 2013 20:04:21 +0000 (22:04 +0200)]
Remove "will be removed in ..." comments

All of them are wrong, since 1.20 is out for a while now, and
these methods are still here.

Change-Id: I3b59b61490c9aea5252e25623b0b282295dcc3f6

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

Change-Id: I32706ffc47ccd85835a8a0ee1e716648b054854b

11 years agoRemove the space from between headline and its section edit link
MatmaRex [Sat, 11 May 2013 18:40:39 +0000 (20:40 +0200)]
Remove the space from between headline and its section edit link

I kept it in I6a6c12a9, but really there's no reason for it to be
there, as the link is delineated with square brackets and visually
with a 1 em padding. It only causes funkiness when copying text.

Change-Id: I7bde0e4fd646108f9319d5d5d00e7ea49fee9252

11 years agoDon't shown red box around unconfirmed email address in preferences if authentication...
Alex Monk [Fri, 10 May 2013 21:05:22 +0000 (22:05 +0100)]
Don't shown red box around unconfirmed email address in preferences if authentication is disabled

Susan and Base-w in #wikimedia discovered that a red box is always shown around
their email address on foundationwiki. This is because the box is shown by
default - even when email address authentication is disabled.

Change-Id: I0b906b23dec6018bc21a179e2cf950b705100c4c

11 years agoMerge "Message changes for new login form"
jenkins-bot [Sat, 11 May 2013 08:32:59 +0000 (08:32 +0000)]
Merge "Message changes for new login form"

11 years agoMessage changes for new login form
S Page [Thu, 9 May 2013 23:55:07 +0000 (16:55 -0700)]
Message changes for new login form

Shorter "Reset your password" (new key userlogin-resetpassword-link).
Shorter "Use secure connection" (existing key userlogin-signwithsecure).
Better explanations.

Change-Id: Ia8e4219b200c25a61cbbade36841bb2c45cc9704

11 years agoFix --file parameter description in MediaWikiPHPUnitCommand.php
Alexandre Emsenhuber [Sat, 11 May 2013 06:01:36 +0000 (08:01 +0200)]
Fix --file parameter description in MediaWikiPHPUnitCommand.php

Change-Id: Ie134c06943be38cd65f8dae54332d38278ea0f96

11 years agoMerge "[FileBackend] Moved short-circuit check from 6b1194b9 up to FileBackend."
jenkins-bot [Sat, 11 May 2013 03:56:43 +0000 (03:56 +0000)]
Merge "[FileBackend] Moved short-circuit check from 6b1194b9 up to FileBackend."

11 years agoAdd identifying info (img_timestamp and img_sha1) to upload log.
Brian Wolff [Wed, 17 Apr 2013 23:39:58 +0000 (20:39 -0300)]
Add identifying info (img_timestamp and img_sha1) to upload log.

I came across people complaining that it was hard to associate
upload log events to actual images since img_timestamp could
be different from log_timestamp, and generally no unique id.

Well I was there I made uploads use the new logging system.

Change-Id: Icd8662ecb9eb0f6c0ff9841bdbd5736d6dd0d015

11 years ago[FileBackend] Moved short-circuit check from 6b1194b9 up to FileBackend.
Aaron Schulz [Fri, 10 May 2013 20:55:39 +0000 (13:55 -0700)]
[FileBackend] Moved short-circuit check from 6b1194b9 up to FileBackend.

Change-Id: I57566a1779f353c18d96c59c47112c753aea6b90

11 years agoFix global objects and singletons in NewParserTest
Alexandre Emsenhuber [Sat, 4 May 2013 12:21:39 +0000 (14:21 +0200)]
Fix global objects and singletons in NewParserTest

- Don't set $wgMemc, $parserMemc and $messageMemc on each test,
  the correct values for $wgMainCacheType and such are already set
  in phpunit.php, so those objects are already the good ones
- Only destroy RepoGroup and FileBackendGroup once before starting
  the tests instead of two
- No need to clear the MessageCache in addDBData(), it is already
  destroyed in setupGlobals() (also avoids creating an object on
  some tests to only call clear() on it)
- Group singleton cleanup after the test in tearDown()

Change-Id: Ib2d6522019160f63f3f968e69940413a1def2f8b

11 years ago[FileBackend] Optimize the case were no operations are provided.
Aaron Schulz [Fri, 10 May 2013 20:45:34 +0000 (13:45 -0700)]
[FileBackend] Optimize the case were no operations are provided.

Change-Id: Iaf858ce2e8b21e031d27b984029f0424518201af

11 years agoMerge "[FileBackend] Cleaned up resyncFiles() and added conservative resync option...
jenkins-bot [Fri, 10 May 2013 20:02:00 +0000 (20:02 +0000)]
Merge "[FileBackend] Cleaned up resyncFiles() and added conservative resync option to FileBackendMultiWrite."

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

11 years agoAdd value to add() call when locking
csteipp [Fri, 10 May 2013 18:19:31 +0000 (11:19 -0700)]
Add value to add() call when locking

When BagOStuff::lock() was called, it called $this->add() with only
two parameters, the key and the timeout. But BagOStuff::add() takes
three parameters (key, value, timeout), so all locks got an infinite
timeout.

Change-Id: I82bed11b0b799f2cda13a8a0bd0cd94908b6ce8e

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Fri, 10 May 2013 19:15:57 +0000 (19:15 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Iae8a69a2054039f19fe1ae5de1e06b4d7fe51bb5

11 years agotests: mock parser tests file access
Antoine Musso [Sun, 28 Apr 2013 21:13:49 +0000 (23:13 +0200)]
tests: mock parser tests file access

I eventually got tired of our parser tests creating and deleting fixture
files over and over.  This patch mock the files in memory and just
expose the file metadata which is all we need for parser tests.

The mocked classes are under /tests/phpunit/mocks/ and respect the
hierarchy of /includes/.

The wiki.png and headbg.jpg files are still copied on each test :/

Change-Id: Iccdff67222e66d48d01dd1596d09df2ea24b8c2a

11 years agoMerge "Increasing z-index of personal toolbar from 1 to 100"
jenkins-bot [Fri, 10 May 2013 17:12:59 +0000 (17:12 +0000)]
Merge "Increasing z-index of personal toolbar from 1 to 100"

11 years agoMerge "Removed unused join array from ActiveUser conds."
jenkins-bot [Fri, 10 May 2013 15:14:43 +0000 (15:14 +0000)]
Merge "Removed unused join array from ActiveUser conds."