lhc/web/wiklou.git
10 years agoautoloader missed some entries
Antoine Musso [Tue, 21 May 2013 09:56:26 +0000 (11:56 +0200)]
autoloader missed some entries

Jenkins does not run the autoloader test (will be fixed in a different
commit).  This patch fix the main and test autoloader to add in all the
missing entries.

bug: 47750
Change-Id: I285fa7ed24a6fc45a4dc475b54d80cf3816436fb

10 years agoMerge "Add $namespaceGenderAliases for 'eo'"
jenkins-bot [Tue, 21 May 2013 05:56:14 +0000 (05:56 +0000)]
Merge "Add $namespaceGenderAliases for 'eo'"

10 years agoAdd $namespaceGenderAliases for 'eo'
raymond [Wed, 8 May 2013 10:11:58 +0000 (12:11 +0200)]
Add $namespaceGenderAliases for 'eo'

Per discussion on
https://de.wikipedia.org/w/index.php?title=Benutzer_Diskussion:Raymond&oldid=118297156#Benutzernamensraum_ignoriert_Einstellung_bei_.22Geschlecht.22

Change-Id: I4a46d0d50a247b028d8cf84a7da30300b19cf07b

10 years agoDeprecate $wgJsMimeType
Timo Tijhof [Mon, 20 May 2013 22:43:49 +0000 (00:43 +0200)]
Deprecate $wgJsMimeType

It hasn't been used for its documented purpose for a while.
In fact the one significant thing it can cause wasn't even
documented. If set to anything other than "text/javascript"
it will cause action=raw to no longer respond to
ctype=text/javascript requests (such as done by wikibits'
importScript function).

Follows-up 97caae596d5493.

Change-Id: Ib04ff5b21eb0ae172b94e31bc0dc16c9649e1864

10 years agoDrop redundant attributes in hardcoded html
Timo Tijhof [Mon, 20 May 2013 21:47:56 +0000 (23:47 +0200)]
Drop redundant attributes in hardcoded html

Follows-up 97caae596d5493 which makes HTML5 the default
and removes support for XHTML 1.0 and HTML < 5.

* <script type>
* <style type>
* <html xmlns>
* Quick-closing slash in non-XML HTML5 documents

Change-Id: I71855fa8d4095a5a448ebdc3dc36506ddab6f70c

10 years agoImprove doc for mw.util.getParamValue
Matthew Flaschen [Mon, 20 May 2013 21:02:25 +0000 (17:02 -0400)]
Improve doc for mw.util.getParamValue

Change-Id: I4f008617c278a30eb43d21c942e1ab06a6db1c0a

10 years agoresourceloader: Write to debug log for all fatal errors
Timo Tijhof [Thu, 2 May 2013 01:27:58 +0000 (03:27 +0200)]
resourceloader: Write to debug log for all fatal errors

There's various fatal errors that can happen in ResourceLoader.
Since in a javascript/css response there is no error page we can
show, we currently catch them all and output them in a block
comment on top of load.php.

This maintains valid syntax for the response and keeps the error
easy to view (if you're looking for it in the browser).

However from a debugging perspective it is a nightmare. Literally
the only visible difference from a normal request response is
the cache maxage (if hasErrors: use unversionsed maxage).

For all errors we currently already catch and write to request
response outpout, also write to debug log.

This also helps in fixing bug #.

This commit basically changes the following pattern:

    // Add exception to the output as a comment
    $errors .= $this->makeComment( $e->__toString() );
    $this->hasErrors = true;

to:

    wfDebugLog( 'resourceloader', __METHOD__ . ": <failure summary>: $e\n" );
    $this->hasErrors = true;
    // Add exception to the output as a comment
    $errors .= $this->makeComment( $e->__toString() );

Bug: 44018
Change-Id: I684f6492f839a6c6adb07b0640e88cfea21fcf60

10 years agoresourceloader: Consistently use 'resourceloader' log group
Timo Tijhof [Thu, 2 May 2013 02:13:13 +0000 (04:13 +0200)]
resourceloader: Consistently use 'resourceloader' log group

Some were using generic wfDebug().

Removed obsolete new-line which is already added by wfDebugLog.

Bug: 44018
Change-Id: I9907b374fa868c04ff2ce40964238936b9084a4a

10 years agoMerge "Update formatting"
jenkins-bot [Mon, 20 May 2013 19:30:10 +0000 (19:30 +0000)]
Merge "Update formatting"

10 years agoMerge "Make checkUsernames.php use batches"
jenkins-bot [Mon, 20 May 2013 19:25:20 +0000 (19:25 +0000)]
Merge "Make checkUsernames.php use batches"

10 years agoMake checkUsernames.php use batches
Reedy [Fri, 17 May 2013 00:32:13 +0000 (01:32 +0100)]
Make checkUsernames.php use batches

Bug: 3507
Change-Id: Idb4b84b853f4f86e90a470e937af9017cee15e44

10 years agoUpdate formatting
Siebrand Mazeland [Mon, 20 May 2013 18:28:37 +0000 (20:28 +0200)]
Update formatting

Fixes for issues CodeSniffer complained about at
https://integration.wikimedia.org/ci/job/mediawiki-core-phpcs-HEAD/9920/console
for 4f98011fdd98328028d152baf27627fea0c28d3e.

Change-Id: I2cc0cee6ff8260e74ad8b1721614ae16a360e68d

10 years agoFix fatal, use Message::isDisabled()
Siebrand Mazeland [Mon, 20 May 2013 18:14:37 +0000 (20:14 +0200)]
Fix fatal, use Message::isDisabled()

Follow-up to dd85e115075661e9e0bb92c7f6d4ab9604efd980 where this issue was
introduced.

Change-Id: I46bd11ca7158d1dec4d8a3533d2607dde9928cc2

10 years agoMerge "Non existent user subpages should return 404"
jenkins-bot [Mon, 20 May 2013 17:40:59 +0000 (17:40 +0000)]
Merge "Non existent user subpages should return 404"

10 years agoMerge "Move the global to the place it is needed."
jenkins-bot [Mon, 20 May 2013 14:25:06 +0000 (14:25 +0000)]
Merge "Move the global to the place it is needed."

10 years agoMerge "Localisation updates from http://translatewiki.net."
jenkins-bot [Mon, 20 May 2013 12:20:03 +0000 (12:20 +0000)]
Merge "Localisation updates from translatewiki.net."

10 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Mon, 20 May 2013 12:08:40 +0000 (12:08 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Ic862c638ed6ce33d3fe4dad9743c88136d832433

10 years agoMerge "Remove the $wgHandheldStyle config variable entirely"
TheDJ [Mon, 20 May 2013 12:04:03 +0000 (12:04 +0000)]
Merge "Remove the $wgHandheldStyle config variable entirely"

10 years agoMove the global to the place it is needed.
Platonides [Mon, 20 May 2013 09:28:27 +0000 (11:28 +0200)]
Move the global to the place it is needed.

Follow-up 8be2e118

Change-Id: Ic72a8f24fdcbafcb689370c845dcf6df4f864493

10 years agoMerge "SpecialWatchlist: Page header cleanup"
jenkins-bot [Mon, 20 May 2013 08:26:40 +0000 (08:26 +0000)]
Merge "SpecialWatchlist: Page header cleanup"

10 years agoMerge "(bug 17602) fix Monobook action tabs not quite touching the page body"
TheDJ [Sun, 19 May 2013 19:44:43 +0000 (19:44 +0000)]
Merge "(bug 17602) fix Monobook action tabs not quite touching the page body"

10 years agoNon existent user subpages should return 404
Marius Hoch [Sun, 19 May 2013 17:27:53 +0000 (19:27 +0200)]
Non existent user subpages should return 404

Bug: 46491
Change-Id: I900f1542b077b569ed64306ecf9f965ddabe59f8

10 years agoRemoved Closure type hints where not needed.
Tyler Anthony Romeo [Fri, 15 Mar 2013 02:09:14 +0000 (22:09 -0400)]
Removed Closure type hints where not needed.

Closures are not the only types of callable objects in PHP.
Specifically, any string referencing a valid function, any object with a __call(),
or any class with a __callStatic() can all be called.
Therefore, removed type hinting for Closures in places where a callable is expected.
(Unfortunately, the callable type-hint only comes in PHP 5.4.)

Change-Id: I6bff7e4a95716ef63aa7e07d3d9fef6d20eb65a6

10 years agoSpecialWatchlist: Page header cleanup
MatmaRex [Sun, 19 May 2013 15:53:14 +0000 (17:53 +0200)]
SpecialWatchlist: Page header cleanup

Format the three messages in header as one paragraph with three
sentences, instead of a paragraph and two split unordered lists with
one item each and inconsistent full stops.

Message changes: In 'wlheader-enotif' and 'wlheader-showupdated',
remove initial bullet point if present and add final full stop if
missing. First used the regexes below, then went through each language
file and manually changed the messages if applicable (e.g., Thai not
using full stops at all, Asian languages using '。', Devanagari
languages using '।' etc.)
  Find: ('wlheader-[^']+'\s*=>\s*)(['"])(?:\*\s*)?([\s\S]+?)\.?\2,\n
  Replace with: $1$2$3.$2,\n

Bug: 48615
Change-Id: I856f71f36d7f4b4baff5e968d88e4d3f7aeecce2

10 years agoRemove the $wgHandheldStyle config variable entirely
MatmaRex [Mon, 22 Apr 2013 12:39:53 +0000 (14:39 +0200)]
Remove the $wgHandheldStyle config variable entirely

Added back in 2008 (dc821ec1 / r38116), it was only ever implemented
for Monobook and didn't do anything in other skins.

The only use-case given was using Chick's CSS for mobile devices with
Monobook being the default skin - and now Chick is no more and
Monobook isn't the default.

It was also used to decide whether to load styles from
MediaWiki:Handheld.css (they were loaded if it was set to anything).
That message has been removed as well.

Bug: 47504
Change-Id: Ia8d79b4a637a227eb1879fbb874173fdd9bd6d99

10 years agoMerge "ForeignAPIRepo: Fetch thumb error from foreign repo"
TheDJ [Sun, 19 May 2013 13:20:17 +0000 (13:20 +0000)]
Merge "ForeignAPIRepo: Fetch thumb error from foreign repo"

10 years agodisplay: inline-block for .errorbox, .warningbox, .successbox
MatmaRex [Mon, 6 May 2013 14:34:31 +0000 (16:34 +0200)]
display: inline-block for .errorbox, .warningbox, .successbox

It previously used float: left to generate a box with intrinsic width,
which required the next element to have clear: left to avoid display
quirks. display: inline-block is the proper way to do this.

Includes hacks for IE6 and FF2.

Bug: 33438
Change-Id: Ibb9371eecb99b627ba9dfca5b0a60143fbd6f84f

10 years agoUpdate formatting
Siebrand Mazeland [Thu, 9 May 2013 14:51:30 +0000 (16:51 +0200)]
Update formatting

Also removed some commented out code and one or more unneeded elses.

Change-Id: I8a7f5c683e3aa570522fb31b027b695f195a3970

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

10 years agoMerge "Make sure job runner exceptions get logged."
jenkins-bot [Fri, 17 May 2013 20:41:50 +0000 (20:41 +0000)]
Merge "Make sure job runner exceptions get logged."

10 years agoMerge "[FileBackend] Avoid concurrency for the 1 op case in doQuickOperationsInternal()."
jenkins-bot [Fri, 17 May 2013 20:21:09 +0000 (20:21 +0000)]
Merge "[FileBackend] Avoid concurrency for the 1 op case in doQuickOperationsInternal()."

10 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Fri, 17 May 2013 18:09:29 +0000 (18:09 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Ic916a0853dda60a68eab6ad9284fca04e4775c05

10 years agoMerge "deleteEqualMessages: Refactor to support all langcode subpages"
jenkins-bot [Fri, 17 May 2013 17:42:02 +0000 (17:42 +0000)]
Merge "deleteEqualMessages: Refactor to support all langcode subpages"

10 years agoMerge "Slight improvements to FormSpecialPage behavior."
jenkins-bot [Fri, 17 May 2013 17:29:01 +0000 (17:29 +0000)]
Merge "Slight improvements to FormSpecialPage behavior."

10 years agodeleteEqualMessages: Refactor to support all langcode subpages
Timo Tijhof [Fri, 3 May 2013 15:48:36 +0000 (17:48 +0200)]
deleteEqualMessages: Refactor to support all langcode subpages

Previously it ran for either the base pages (comparing against
content language) or 1 lang-code subpage.

And the latter was actually broken as it forgot to add the
subpage back on, thus resulting in incorrect deletions
(deleting MediaWiki:Foo instead of MediaWiki:Foo/nl).

Also fixed a bug where it used the subpage lang-code to create
a Language object and call ucfirst(). Page titles should only be
capitalized by content language.

Bug: 48050
Bug: 43917
Change-Id: I2680413c276365a44c935a6f6fdd740daa86341e

10 years agoFixed spacing and removed unneeded parenthesis
umherirrender [Fri, 17 May 2013 14:47:00 +0000 (16:47 +0200)]
Fixed spacing and removed unneeded parenthesis

Added spaces after/before parenthesis
Removed unneeded parenthesis around some statements
Broke a long line

Change-Id: I7fbe129f7bbf524dd0598ece2a9708643f08453b

10 years agoDeprecate OutputPage::out.
Daniel Friesen [Sun, 12 May 2013 09:00:16 +0000 (02:00 -0700)]
Deprecate OutputPage::out.

OutputPage is supposed to be a container for output. It should NOT be used as a replacement for echo.

Only one seemingly unmaintained extension uses this method.
This method is deprecated now and should be removed in the next release.

Change-Id: I82711cee7204604a47cfbb5e4496b4cc737a837c

10 years agoAdd RC_EXTERNAL to comment in tables.sql
umherirrender [Fri, 17 May 2013 14:59:26 +0000 (16:59 +0200)]
Add RC_EXTERNAL to comment in tables.sql

Change-Id: If3156984e9ff447fec6644681d96c1095b709a99

10 years agoMerge "Add helpurls to some api modules"
jenkins-bot [Fri, 17 May 2013 14:42:54 +0000 (14:42 +0000)]
Merge "Add helpurls to some api modules"

10 years agoDelete translatations. English message was set to ''
raymond [Fri, 17 May 2013 13:16:24 +0000 (15:16 +0200)]
Delete translatations. English message was set to ''

Followup to Ie0888cd0582dc3f63ae569097159a4d9b171a5df
https://gerrit.wikimedia.org/r/#/c/61395

Change-Id: I20e598fdbb1ba5b35e9665afd11c7e57ff460488

10 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

10 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"

10 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

10 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

10 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

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

10 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

10 years agoMake sure job runner exceptions get logged.
Aaron Schulz [Thu, 16 May 2013 20:51:36 +0000 (13:51 -0700)]
Make sure job runner exceptions get logged.

Change-Id: Ie468e7009c45a2b637df38309fd7b8368e021b6d

10 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

10 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."

10 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

10 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"

10 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"

10 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

10 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"

10 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

10 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"

10 years agoAdd helpurls to some api modules
umherirrender [Thu, 16 May 2013 07:08:18 +0000 (09:08 +0200)]
Add helpurls to some api modules

Change-Id: I41cc20ea5daf089e5fb26d1548d3b58cfe5f4d31

10 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

10 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

10 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

10 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."

10 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

10 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."

10 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

10 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

10 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

10 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

10 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."

10 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"

10 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

10 years ago[FileBackend] Avoid concurrency for the 1 op case in doQuickOperationsInternal().
Aaron Schulz [Wed, 15 May 2013 17:34:31 +0000 (10:34 -0700)]
[FileBackend] Avoid concurrency for the 1 op case in doQuickOperationsInternal().

Change-Id: I6526d3b77fc078d80a0fb537d504a7fabcbb4c41

10 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()."

10 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

10 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

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

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

10 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

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

10 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

10 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

10 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

10 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

10 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

10 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"

10 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

10 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"

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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."

10 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

10 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

10 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."

10 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."

10 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"