lhc/web/wiklou.git
11 years agoRemove hphpc support and deprecate related functions
Tim Starling [Wed, 8 May 2013 06:48:56 +0000 (16:48 +1000)]
Remove hphpc support and deprecate related functions

hphpc has been superseded by hhvm, so support for hphpc is no longer
needed.

* Continue to use Preprocessor_Hash under HipHop since it is still
  faster under hhvm
* Keep $wgCompiledFiles for now, so that wikihiero doesn't give an error
  before Ic9d1e795 is merged
* Migrate the run-server script and associated configuration file to
  hhvm. Enable EnableStaticContentFromDisk since it doesn't seem
  ridiculously inefficient at first glance. Run from $IP rather than
  $IP/.. since hhvm is apparently not picky about sourcing files from
  outside of the current directory.

Change-Id: Ic3e769f1fbad4f7ad26dd819406796fee48c6b45

11 years agoMerge "Make Special:MovePage's "Reason" field an input, not a textarea"
MarkTraceur [Wed, 8 May 2013 04:06:57 +0000 (04:06 +0000)]
Merge "Make Special:MovePage's "Reason" field an input, not a textarea"

11 years agotests: Don't set wgStyleSheetPath in addition to wgStylePath
Timo Tijhof [Tue, 7 May 2013 23:32:21 +0000 (01:32 +0200)]
tests: Don't set wgStyleSheetPath in addition to wgStylePath

Because 1) `$wgStyleSheetPath = &$wgStylePath;` in default
settings, so setting one sets the other. No need to set both
and 2) in wmf-branches this variable is unset, thus this
caused an E_NOTICE internally when Test::setMwGlobals is
trying to access it to preserve the current value,
and 3) wgStyleSheetPath is deprecated.

Follows-up I1362932db223.

Change-Id: Ibd3f28e460fef995f68dfe1292d25fb75950dcf5

11 years agoparserTests: fix broken parsoid-only tests.
C. Scott Ananian [Tue, 7 May 2013 22:54:01 +0000 (18:54 -0400)]
parserTests: fix broken parsoid-only tests.

A few of the parsoid-only tests had broken/wrong output HTML, which was
being hidden by the normalization process.  In preparation for using
a stricter normalizer, fix up the bogus tests:

a) put a <tbody> inside all <table>s
b) it's <hr> not <hr/>
c) fix an orphaned </span>

Change-Id: I44961cd40f8f29eea005d9c6c7a458aadc4770d0

11 years agoMerge "skin: Revert font-weight on successbox and move to preferences"
jenkins-bot [Tue, 7 May 2013 21:57:45 +0000 (21:57 +0000)]
Merge "skin: Revert font-weight on successbox and move to preferences"

11 years agoskin: Revert font-weight on successbox and move to preferences
AVRS Aditya Sastry [Tue, 7 May 2013 07:22:04 +0000 (12:52 +0530)]
skin: Revert font-weight on successbox and move to preferences

Removed the font-weight: bold from the css rule of the error,
warning and successboxes and placed this css declaration in
mediawiki.special.preferences.css under a new class
"mw-sp-pref-successbox".

Follows-up 44e64fb.

Bug: 48197
Change-Id: I1a3d774c2daef158176479fba7828b383a195bb9

11 years agoMerge "mediawiki.user: Use session ID instead of 1-year cross-session cookies"
jenkins-bot [Tue, 7 May 2013 20:59:14 +0000 (20:59 +0000)]
Merge "mediawiki.user: Use session ID instead of 1-year cross-session cookies"

11 years agoMerge "mw.config: Add wgPageContentModel for content model of current page"
jenkins-bot [Tue, 7 May 2013 20:53:20 +0000 (20:53 +0000)]
Merge "mw.config: Add wgPageContentModel for content model of current page"

11 years agomw.config: Add wgPageContentModel for content model of current page
umherirrender [Tue, 7 May 2013 19:59:40 +0000 (21:59 +0200)]
mw.config: Add wgPageContentModel for content model of current page

This field of the page table can be useful to determine the
corrosponding model for a page.

Change-Id: I0525ad764540b213b2697e1e9e64f7da73f6cf83

11 years agoMerge "Localisation updates from http://translatewiki.net."
Translation updater bot [Tue, 7 May 2013 20:22:46 +0000 (20:22 +0000)]
Merge "Localisation updates from translatewiki.net."

11 years agoMerge "(bug 47950) Fix IndexPager detection of "is first" state"
MarkAHershberger [Tue, 7 May 2013 20:21:10 +0000 (20:21 +0000)]
Merge "(bug 47950) Fix IndexPager detection of "is first" state"

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

Change-Id: I5b167dc4fe14b1de8dd84d912244a4f96d762a63

11 years ago(bug 48212) Fix I720946e7: $this->opts['year'] shouldn't be modified.
Liangent [Tue, 7 May 2013 15:43:22 +0000 (15:43 +0000)]
(bug 48212) Fix I720946e7: $this->opts['year'] shouldn't be modified.

Otherwise, the offset is set automatically based on the default 'year'
parameter, then ReverseChronologicalPager gets misled and assumes that
the user have already specified a starting point so there must be a
previous page, causing a 'prev' link returning nothing shown.

Bug: 48212
Bug: 45580
Change-Id: I5341ff8c0d0422b9b3184dce74f0f143822cfe93

11 years agoMerge "Add test for comment-only line followed by a template transclusion"
jenkins-bot [Tue, 7 May 2013 17:46:29 +0000 (17:46 +0000)]
Merge "Add test for comment-only line followed by a template transclusion"

11 years agomediawiki.user: Use session ID instead of 1-year cross-session cookies
Adam Roses Wight [Mon, 11 Mar 2013 19:26:53 +0000 (12:26 -0700)]
mediawiki.user: Use session ID instead of 1-year cross-session cookies

No cookies should be assigned for longer than session expiry.

Bug: 44327
Change-Id: If2f096dadb639769d859e1596d84b3ad5775a01d

11 years agoUpdate docs/skin.txt
MatmaRex [Fri, 3 May 2013 22:03:56 +0000 (00:03 +0200)]
Update docs/skin.txt

Reflect the fact that five of the skins were removed. Some rephrasing
as well.

Change-Id: I1acfa872eb4601003762d29443265a49e2100cd6

11 years agoUse __METHOD__ for default $fname params to database functions
Chad Horohoe [Mon, 6 May 2013 13:20:40 +0000 (09:20 -0400)]
Use __METHOD__ for default $fname params to database functions

Change-Id: I86cbdeabee9709cde15a6b7bd47a53229c2e3f92

11 years agoAdd note that wgActiveUserDays affects the NUMBEROFACTIVEUSERS magic word.
Matthew Flaschen [Thu, 2 May 2013 03:43:36 +0000 (23:43 -0400)]
Add note that wgActiveUserDays affects the NUMBEROFACTIVEUSERS magic word.

Change-Id: I312fb1d8d0ffa2a978366c96accedf2a7b42bec8

11 years agoFix I25cf5a94: It should be @since 1.21 now.
Liangent [Tue, 7 May 2013 05:04:10 +0000 (05:04 +0000)]
Fix I25cf5a94: It should be @since 1.21 now.

That patch was created before 1.20 release and has stayed there for a
long time...

Change-Id: Icd28f749d55dd820e142ba094c848b713d9548ab

11 years agoqunit: Use jQuery.getScript instead of document.write
Timo Tijhof [Mon, 6 May 2013 18:55:04 +0000 (20:55 +0200)]
qunit: Use jQuery.getScript instead of document.write

TestSwarm jobs were breaking because this runs after the
document is ready, thus causing the page to be blanked by
document.write.

Change-Id: I5e1c331d72ac364c9cd970a9b085f0b986b26a14

11 years agoRemoving exception in case rev is null
kaldari [Tue, 7 May 2013 00:59:01 +0000 (17:59 -0700)]
Removing exception in case rev is null

Change-Id: I2fe2961876dcdc9bde3bca9584fcbe2294629eba

11 years agoAdding check to make sure rev isn't null
kaldari [Tue, 7 May 2013 00:38:42 +0000 (17:38 -0700)]
Adding check to make sure rev isn't null

Change-Id: I4be3904ed413086d559c21f95fd35e9b1540ce7f

11 years agoAdd test for comment-only line followed by a template transclusion
Gabriel Wicke [Tue, 7 May 2013 00:09:59 +0000 (17:09 -0700)]
Add test for comment-only line followed by a template transclusion

https://bugzilla.wikimedia.org/show_bug.cgi?id=48179

Change-Id: I4e41dcea94bbb1376ffa96d7381029b2cee85ec3

11 years agoMerge "mw.hook: Implement callback framework"
jenkins-bot [Mon, 6 May 2013 21:51:22 +0000 (21:51 +0000)]
Merge "mw.hook: Implement callback framework"

11 years agoMerge "mediawiki.action.edit: Support dynamically inserted form fields"
jenkins-bot [Mon, 6 May 2013 20:55:52 +0000 (20:55 +0000)]
Merge "mediawiki.action.edit: Support dynamically inserted form fields"

11 years agomediawiki.action.edit: Support dynamically inserted form fields
Alex Monk [Mon, 6 May 2013 14:20:35 +0000 (15:20 +0100)]
mediawiki.action.edit: Support dynamically inserted form fields

This fixes CharInsert in LQT. LQT dynamically creates its own text boxes
and this code should take that into account.

Bug: 41220
Change-Id: Id9469f9dfcbb92854780c63252cd9c5069e94487

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

11 years agoMerge "Reduced memory usage a bit for copyFileBackend.php with --missingonly."
jenkins-bot [Mon, 6 May 2013 20:00:15 +0000 (20:00 +0000)]
Merge "Reduced memory usage a bit for copyFileBackend.php with --missingonly."

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

Change-Id: Ia291dfa770302c485bcf584854ee020f8a01ce8d

11 years agoMerge "Move DEADLOCK_* constants into DatabaseBase"
jenkins-bot [Mon, 6 May 2013 18:16:23 +0000 (18:16 +0000)]
Merge "Move DEADLOCK_* constants into DatabaseBase"

11 years agoUpdate SearchEngine::searchText() and SearchEngine::searchTitle() return type hints
Reedy [Mon, 6 May 2013 14:39:30 +0000 (15:39 +0100)]
Update SearchEngine::searchText() and SearchEngine::searchTitle() return type hints

Matches updates to MWSearch that can now return Status objects

Change-Id: I056fdf9f290d0a17e49948be158dd881185c8345

11 years agoMerge "Adding GetNewMessagesAlert hook and wgUserNewMsgRevisionId JS global"
jenkins-bot [Mon, 6 May 2013 15:22:52 +0000 (15:22 +0000)]
Merge "Adding GetNewMessagesAlert hook and wgUserNewMsgRevisionId JS global"

11 years agoMerge "Partly disable title conversion if variant == main language code"
jenkins-bot [Mon, 6 May 2013 15:20:02 +0000 (15:20 +0000)]
Merge "Partly disable title conversion if variant == main language code"

11 years agoMerge "Remove SkinLegacy.php"
jenkins-bot [Mon, 6 May 2013 14:11:00 +0000 (14:11 +0000)]
Merge "Remove SkinLegacy.php"

11 years agoMerge "Added a --backoff option for syncFileBackend.php"
jenkins-bot [Mon, 6 May 2013 14:03:32 +0000 (14:03 +0000)]
Merge "Added a --backoff option for syncFileBackend.php"

11 years agoMove DEADLOCK_* constants into DatabaseBase
Chad Horohoe [Mon, 6 May 2013 13:00:56 +0000 (09:00 -0400)]
Move DEADLOCK_* constants into DatabaseBase

Change-Id: I75ea4c19c757adc96ba3c5afe0b85d8579b02c80

11 years agoRemove pointless vertical alignment
Chad Horohoe [Mon, 6 May 2013 12:54:20 +0000 (08:54 -0400)]
Remove pointless vertical alignment

Change-Id: I57926bfb718fdb7e4f55a08f39fc6af9f2e4adf6

11 years agoRemove SkinLegacy.php
MatmaRex [Mon, 6 May 2013 11:38:35 +0000 (13:38 +0200)]
Remove SkinLegacy.php

Followup to Ia6d73c2d (the great skin removal event of 2013).

The two classes this file defined, SkinLegacy and LegacyTemplate, were
already removed from AutoLoader.php in the aforementioned commit, but
the file itself somehow stayed.

The Nostalgia extension includes its own copy, and I've rewritten
Cologne Blue to use SkinTemplate last year, which means that nothing
needs the legacy classes anymore. I grepped mediawiki/extensions just
in case and there were no hits apart from Nostalgia.

Change-Id: Ib36edff3f9b617357386914980b56fa5b1f6a83b

11 years agoRevert "Fixed behavior of Title::invalidateCache."
Tim Starling [Mon, 6 May 2013 00:52:46 +0000 (00:52 +0000)]
Revert "Fixed behavior of Title::invalidateCache."

Causes jenkins build failure

This reverts commit 3b4c514efa08b0a68885b1a920e48f670cd06e15

Change-Id: Ieeb54f1e7a9cfb5ac02b8a9f49bbe0644a064fa0

11 years agoFixed behavior of Title::invalidateCache.
Tyler Anthony Romeo [Thu, 18 Apr 2013 17:32:19 +0000 (17:32 +0000)]
Fixed behavior of Title::invalidateCache.

Removed actions that should not be in Title::invalidateCache,
specifically the clearing of the InfoAction cache, and added
those actions to their appropriate locations.

Added a new method InfoAction::invalidateCache that clears the
cache for a given title.

Bug: 46816
Change-Id: I38ac616d2e99fb339aca33425745368ba85b6350

11 years agoRevert "Remove Special:ActiveUsers"
Chad Horohoe [Tue, 23 Apr 2013 13:29:36 +0000 (09:29 -0400)]
Revert "Remove Special:ActiveUsers"

This reverts commit 27104686abe2aaf464d8d654a71e946326a0926d.

Revert "Remove link to Special:ActiveUsers from Special:Statistics"

This reverts commit 62949af09ea3ceb96d897ec8aab74afdadb02d4e.

I used a sledgehammer where a scalpel would've done--and I should
be whacked with the cluebat. This should be done per-wiki, plus
improvements.

Change-Id: Ib43b42057b8d9f714a8a71ba9cbe375385254b7c

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

Change-Id: I44a29f7dab2c2131e90e6cd8e910d25569bb0744

11 years agoMerge "Fix visibility of error handlers"
jenkins-bot [Sun, 5 May 2013 09:27:57 +0000 (09:27 +0000)]
Merge "Fix visibility of error handlers"

11 years agoAdding GetNewMessagesAlert hook and wgUserNewMsgRevisionId JS global
kaldari [Sun, 5 May 2013 01:08:58 +0000 (18:08 -0700)]
Adding GetNewMessagesAlert hook and wgUserNewMsgRevisionId JS global

This hook allows extensions to disable or modify the new messages
alert ('orange bar of doom') while still allowing the user_newtalk
table to be updated.

The wgUserNewMsgRevisionId JS global allows gadgets and extensions
to create their own new message alerts on the client side.

I also threw in a few comment updates for good measure!

See also Echo change I3f35a56b which utilizes this.

Bug: 47962
Change-Id: I2105bdd2bcd5b27f6f36ec8d8fa7fa99d60a2d82

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

Change-Id: I9b379ba2d392a74200050e45efcc62010def9a32

11 years agoMerge "swap enhanced watchlist/RC arrow images for prettier ones"
MarkTraceur [Sat, 4 May 2013 19:28:56 +0000 (19:28 +0000)]
Merge "swap enhanced watchlist/RC arrow images for prettier ones"

11 years agoFix visibility of error handlers
Jakub Vrana [Sat, 4 May 2013 17:10:06 +0000 (10:10 -0700)]
Fix visibility of error handlers

I've hit this error when $wgDBuser didn't have access to $wgDBname.
I've also checked all other error handlers in core.

An alternative approach would be to use an anonymous function but it doesn't support $this until PHP 5.4 so it would be messier.

Change-Id: I89db2e8c88b84d9b53c4b828ac0208b05a3d3783

11 years agoMerge "Kill some references to legacy skins"
jenkins-bot [Sat, 4 May 2013 13:30:52 +0000 (13:30 +0000)]
Merge "Kill some references to legacy skins"

11 years agoMerge "deleteEqualMessages: Include list of pages in dry run"
jenkins-bot [Sat, 4 May 2013 07:46:52 +0000 (07:46 +0000)]
Merge "deleteEqualMessages: Include list of pages in dry run"

11 years agoCode style fixes in Language::isValidCode()
lwelling [Fri, 3 May 2013 17:26:14 +0000 (13:26 -0400)]
Code style fixes in Language::isValidCode()

Fix issues from https://gerrit.wikimedia.org/r/#/c/62123

Change-Id: I97e826bb9aa9e3a14d07aab7cf02a09ef2c84ef7

11 years agoMerge "Implement mw.log.warn and mw.log.deprecate"
jenkins-bot [Sat, 4 May 2013 03:30:24 +0000 (03:30 +0000)]
Merge "Implement mw.log.warn and mw.log.deprecate"

11 years agoMerge "mediawiki.log: Add to jsduck index"
jenkins-bot [Sat, 4 May 2013 03:27:17 +0000 (03:27 +0000)]
Merge "mediawiki.log: Add to jsduck index"

11 years agoInclude user name in weird User insertion exception.
Aaron Schulz [Fri, 3 May 2013 23:14:31 +0000 (16:14 -0700)]
Include user name in weird User insertion exception.

Change-Id: I70fea9819e968ae306de5c3c3eee4292d3fa17d3

11 years agoKill some references to legacy skins
MatmaRex [Fri, 3 May 2013 22:01:48 +0000 (00:01 +0200)]
Kill some references to legacy skins

More cleanup after the great skin removal of 2013.

Change-Id: Ia91e9467afac4a0e755869b8791d4fc9a6fb5a56

11 years agomw.hook: Implement callback framework
Timo Tijhof [Wed, 13 Feb 2013 20:56:33 +0000 (21:56 +0100)]
mw.hook: Implement callback framework

We have various interface components that are extended, enhanced
or manipulated in some other way by extensions, gadgets and even
in core itself.

This framework helps streamlining the timing of when these other
code paths fire their plugins (instead of using document-ready,
which can and should be limited to firing only once).

Features like navigating to other wiki pages, previewing an edit
and editing itself – without a refresh – can then retrigger these
hooks accordingly to ensure everything still works as expected.

For the server side this has been possible already, but for the
client side we've been limited to running only once on the
original page load.

Further documentation and examples are in the code documentation.

Bug: 23580
Bug: 30713
Change-Id: Ic73a3efe53d6fb731e7f1e531d5f51530cd7e4fe

11 years agoMerge "Factorise call to getSuggestedDurations() in SpecialBlock::getFormFields()"
jenkins-bot [Fri, 3 May 2013 18:03:36 +0000 (18:03 +0000)]
Merge "Factorise call to getSuggestedDurations() in SpecialBlock::getFormFields()"

11 years agoMerge "Pass correct number of parameters to Database constructor from installer"
jenkins-bot [Fri, 3 May 2013 17:46:39 +0000 (17:46 +0000)]
Merge "Pass correct number of parameters to Database constructor from installer"

11 years agoPass correct number of parameters to Database constructor from installer
Jakub Vrana [Fri, 3 May 2013 16:26:25 +0000 (09:26 -0700)]
Pass correct number of parameters to Database constructor from installer

DatabaseBase::__construct() accepts 6 parameters, installer passes 7.

Change-Id: I96d84f645f8f3899d7a99756b441957f1b234de9

11 years agoMake Special:MovePage's "Reason" field an input, not a textarea
MatmaRex [Fri, 3 May 2013 16:30:05 +0000 (18:30 +0200)]
Make Special:MovePage's "Reason" field an input, not a textarea

This reverts r45571 (207e3e64), with some whitespace changes.

The original reason for making it a <textarea> was to avoid confusion
with the <input> for new page name. This is invalid now that the page
name field has been split into a namespace dropdown and an actual page
title field.

Bug: 13627
Change-Id: I5ab2092c32682e7a8a1494bf58553971568fa6cf

11 years agodeleteEqualMessages: Include list of pages in dry run
Timo Tijhof [Fri, 3 May 2013 14:27:12 +0000 (16:27 +0200)]
deleteEqualMessages: Include list of pages in dry run

Also clarify that the talk page number is in addition to the
other number. So it says "10 pages are equal (+ 2 talk pages)"
instead of "10 pages are equal (2 talk pages)".

Document better that the default is a dry run.

Change-Id: I95edb08d7b92c393ed226bef2575e52a6135f8df

11 years agoMerge "Monobook: Remove OperaNFixes.css files"
jenkins-bot [Fri, 3 May 2013 15:12:24 +0000 (15:12 +0000)]
Merge "Monobook: Remove OperaNFixes.css files"

11 years agoMerge "jquery.makeCollapsible: Enable passthru for links in premade toggle"
jenkins-bot [Fri, 3 May 2013 14:09:25 +0000 (14:09 +0000)]
Merge "jquery.makeCollapsible: Enable passthru for links in premade toggle"

11 years agojquery.makeCollapsible: Enable passthru for links in premade toggle
MatmaRex [Thu, 4 Apr 2013 16:36:55 +0000 (18:36 +0200)]
jquery.makeCollapsible: Enable passthru for links in premade toggle

Clicking on a regular link inside a premande toggle is supposed
to follow the link instead of collapsing/expanding the
appropriate element.

Broken during a rewrite in Id3f457a8 (2638b16c) - the comment
reflected the intended behavior, but the code was wrong.

Regression test included.

Bug: 46848
Change-Id: Id571f8d612e5131845d381121604c2b1116a077f

11 years agoMerge "SpecialPreferences: Remove invalid <strong> tag in successbox"
jenkins-bot [Fri, 3 May 2013 13:56:10 +0000 (13:56 +0000)]
Merge "SpecialPreferences: Remove invalid <strong> tag in successbox"

11 years agoMerge "Allow iiurlheight to be used without iiurlwidth"
jenkins-bot [Fri, 3 May 2013 13:33:59 +0000 (13:33 +0000)]
Merge "Allow iiurlheight to be used without iiurlwidth"

11 years agoSpecialPreferences: Remove invalid <strong> tag in successbox
AVRS Aditya Sastry [Thu, 18 Apr 2013 13:04:11 +0000 (18:34 +0530)]
SpecialPreferences: Remove invalid <strong> tag in successbox

Using CSS font-weight instead.

Also removed all traces of #mw-pref-clear. They are redundant since the
preferences form already has class "visualClear".

Bug: 33438
Change-Id: If606203218ece5974a956a3d41d5db40f55b2d5c

11 years agoImplement mw.log.warn and mw.log.deprecate
Timo Tijhof [Mon, 22 Apr 2013 12:23:11 +0000 (14:23 +0200)]
Implement mw.log.warn and mw.log.deprecate

Change-Id: I1eadd01d7086aecb1bdf7e950c49778fd63b5414

11 years agomediawiki.log: Add to jsduck index
Timo Tijhof [Mon, 22 Apr 2013 12:31:04 +0000 (14:31 +0200)]
mediawiki.log: Add to jsduck index

And fixing warnings as a result of it being in the index.

Change-Id: I28dfc97d8fc63131fc02c0fa0f82945f3c18029f

11 years agoMonobook: Remove OperaNFixes.css files
MatmaRex [Mon, 22 Apr 2013 11:32:31 +0000 (13:32 +0200)]
Monobook: Remove OperaNFixes.css files

We were providing fixes for Opera 6, 7 and 9, even though it's 2013,
Opera is at version 12, and even as a grade B browser we're only
supporting Opera 10.

Given the amount of various changes to the codebase over the years,
I'd be surprised if any of those were still doing anything for the
compatibility.

Change-Id: I9925cc98d11c4e2eecedd305a724f0763a62a782

11 years agoPartly disable title conversion if variant == main language code
Liangent [Wed, 15 Aug 2012 00:35:04 +0000 (08:35 +0800)]
Partly disable title conversion if variant == main language code

Currently the main language code means "no conversion",
but may technically be used as a standalone variant (and
usually falls back to another variant). However for the
page title, since there can be a nice unconverted version
from real page name, it seems better to provide people who
choose "no conversion" with this unconverted version, rather
than a fallback from a variant which is always converted.

If a string targeting exactly the main language code exists
(ie. no fallbacks needed), it's still used. Because the
magic word DISPLAYTITLE cannot be used together with
language conversion syntax and people must use -{T| }- to
show a modified display title for "no conversion" version.

Change-Id: I25cf5a94f6e47f85a9d0b80cc1c9c9f957288478

11 years agoCache result of Language::isValidCode() to avoid regex processing
lwelling [Fri, 3 May 2013 00:34:25 +0000 (20:34 -0400)]
Cache result of Language::isValidCode() to avoid regex processing

The function can be called over 2000 times in generating a page. This way
is significantly faster even for random invalid codes.  For real use it
should avoid the regex most of the time with no change in behavior.

Change-Id: I9fcbae1770be0d3f405d3d12254c11943b0d5f46

11 years agoAllow iiurlheight to be used without iiurlwidth
Catrope [Tue, 23 Apr 2013 03:46:15 +0000 (20:46 -0700)]
Allow iiurlheight to be used without iiurlwidth

Wanting to get a thumbnail with only the height constrained is a
reasonable use case, the only reason we don't support it in the
API is because the backend doesn't support it directly. This is
easy enough to emulate by setting the width to the full width of
the image if only the height is specified. This makes the transform
function use a bounding box of size w x h, and if w is the width of
the original image that's equivalent to just bounding the height.

Change-Id: I28c7c22ee91669469cbd9e7d25f09100933582de

11 years agoMerge "Monobook: Remove unused file FF2Fixes.css"
jenkins-bot [Fri, 3 May 2013 00:25:59 +0000 (00:25 +0000)]
Merge "Monobook: Remove unused file FF2Fixes.css"

11 years agoMerge "Message tweaks to new login and create acct forms"
Ori.livneh [Thu, 2 May 2013 22:47:40 +0000 (22:47 +0000)]
Merge "Message tweaks to new login and create acct forms"

11 years agoMerge "SpecialRedirect: Add @since documentation and add release notes"
GWicke [Thu, 2 May 2013 21:56:56 +0000 (21:56 +0000)]
Merge "SpecialRedirect: Add @since documentation and add release notes"

11 years agoMerge "mediawiki.htmlform: Use auto width for Chosen selects"
jenkins-bot [Thu, 2 May 2013 21:40:25 +0000 (21:40 +0000)]
Merge "mediawiki.htmlform: Use auto width for Chosen selects"

11 years agoSpecialRedirect: Add @since documentation and add release notes
C. Scott Ananian [Thu, 2 May 2013 14:23:06 +0000 (10:23 -0400)]
SpecialRedirect: Add @since documentation and add release notes

The Special:Redirect page was added in change
I8b0785f4fbdb3dd438a7a45263c5f375ff9d2208.

Change-Id: I1a4b9a8b0a008f16e554f7edc2f21b7142fde8d4

11 years agomediawiki.htmlform: Use auto width for Chosen selects
Ryan Lane [Thu, 2 May 2013 20:44:54 +0000 (15:44 -0500)]
mediawiki.htmlform: Use auto width for Chosen selects

Upgrading jQuery Chosen to 0.9.14 (which adds a "width" option) and
setting width: auto in chosen calls for HTMLForm elements.

Change-Id: Ib87f00ae0f3ad960d35d7a3c4529e56bbdaa6c38

11 years agoMerge "Change font size for edit links to small"
jenkins-bot [Thu, 2 May 2013 20:31:31 +0000 (20:31 +0000)]
Merge "Change font size for edit links to small"

11 years agoMerge "mediawiki.htmlform: Preserve classes added by HTMLForm's cssclass option"
jenkins-bot [Thu, 2 May 2013 20:16:52 +0000 (20:16 +0000)]
Merge "mediawiki.htmlform: Preserve classes added by HTMLForm's cssclass option"

11 years agoChange font size for edit links to small
Matthew Flaschen [Wed, 1 May 2013 21:09:35 +0000 (17:09 -0400)]
Change font size for edit links to small

As discussed on https://meta.wikimedia.org/wiki/Talk:Change_to_section_edit_links#Font_size

Followup to I6a6c12a9 / 7833589c.

Change-Id: I92b61ccb7291183a5beed1047d8e871afdc367ee

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

Change-Id: I5e4232d2d41075ca5cf3339576032d08e2fb9c3d

11 years agoMerge "Import: Fix incorrect wfRunHooks usage"
Max Semenik [Thu, 2 May 2013 19:26:07 +0000 (19:26 +0000)]
Merge "Import: Fix incorrect wfRunHooks usage"

11 years agoImport: Fix incorrect wfRunHooks usage
Max Semenik [Fri, 26 Apr 2013 20:35:20 +0000 (00:35 +0400)]
Import: Fix incorrect wfRunHooks usage

af125df5199b5c232bf335d735cecc6d8f8e9784 broke importing
because Import.php was calling wfRunHooks() improperly.
Fixing the calls and making the wfRunHooks() signature
match Hooks::run() to make call errors immediately detectable.

Change-Id: If44292fedf6917cde1dae7f0391231a18d414610

11 years agoqqq docs for installer mysql warning
Erik Bernhardson [Thu, 2 May 2013 01:57:01 +0000 (18:57 -0700)]
qqq docs for installer mysql warning

The previous commit I68e79a8efe7cd625c12b5993074de9c3479e760b added a new
i18n string without a matching qqq, this rectifys that situation.

Bug: 34430
Change-Id: Ia57b92762a2de83c3bdb1b5e74c0e6d7ce9db309

11 years agoMerge "jquery.badge: Add CSS inline-block fix for IE 7 and earlier"
jenkins-bot [Wed, 1 May 2013 23:03:55 +0000 (23:03 +0000)]
Merge "jquery.badge: Add CSS inline-block fix for IE 7 and earlier"

11 years agomediawiki.htmlform: Preserve classes added by HTMLForm's cssclass option
Ryan Lane [Wed, 1 May 2013 21:15:32 +0000 (16:15 -0500)]
mediawiki.htmlform: Preserve classes added by HTMLForm's cssclass option

Follow-up to commit 8a9341b. When changing the multi-select
checkbox container to a select multiple, preserve any custom
classes added via the cssclass argument for the htmlform field.

Change-Id: I41d2a306627b33b34d7e464147d771cc727f4f61

11 years agojquery.badge: Add CSS inline-block fix for IE 7 and earlier
kaldari [Wed, 1 May 2013 21:33:26 +0000 (14:33 -0700)]
jquery.badge: Add CSS inline-block fix for IE 7 and earlier

Also making sure cursor is set to pointer for IE7 and earlier

Bug: 47926
Change-Id: I2fce808e076671778010859e547d6544d060f31f

11 years agoCompletely blacklist Opera Mobile from RL
Max Semenik [Wed, 1 May 2013 21:19:31 +0000 (01:19 +0400)]
Completely blacklist Opera Mobile from RL

While initially it was believed that allowing it in does no harm,
practice proves otherwise, see the dependencies of bug 47572.

Bug: 47572
Bug: 47570
Bug: 47567
Bug: 47568
Bug: 47569
Change-Id: I32c082d3cca1af4ce97da08f28beb4926ae97ac3

11 years agoMerge "Detect user rights conflicts"
jenkins-bot [Wed, 1 May 2013 22:01:40 +0000 (22:01 +0000)]
Merge "Detect user rights conflicts"

11 years ago(bug 47950) Fix IndexPager detection of "is first" state
Brad Jorsch [Wed, 1 May 2013 21:04:02 +0000 (17:04 -0400)]
(bug 47950) Fix IndexPager detection of "is first" state

IndexPager currently assumes that if an offset is supplied, then it is
not at the first entry. This is trivially false in many cases, e.g. if
the offset is an older-than date and that date is in the future.

The only way to really determine whether we're at the first entry when
an offset is supplied is to query for 1 row in the opposite direction.
This patch does just that.

Bug: 47950
Change-Id: I05fec226abb609b78a62f2a23f35d5b52a48ab1a

11 years agoMerge "Show a tip at the end of the installer to prompt about extensions"
jenkins-bot [Wed, 1 May 2013 20:29:39 +0000 (20:29 +0000)]
Merge "Show a tip at the end of the installer to prompt about extensions"

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

Change-Id: Ie0b73239f9a3d3aefea1b9eea4a821591149f67a

11 years agoMerge "Remove LocalisationCache::unloadAll() call from NewParserTest::addDBData()"
jenkins-bot [Wed, 1 May 2013 18:12:10 +0000 (18:12 +0000)]
Merge "Remove LocalisationCache::unloadAll() call from NewParserTest::addDBData()"

11 years agoMerge "rebuildLocalisationCache: Implement --lang option"
jenkins-bot [Wed, 1 May 2013 13:17:54 +0000 (13:17 +0000)]
Merge "rebuildLocalisationCache: Implement --lang option"

11 years agorebuildLocalisationCache: Implement --lang option
Antoine Musso [Tue, 30 Apr 2013 14:50:20 +0000 (16:50 +0200)]
rebuildLocalisationCache: Implement --lang option

It would rebuild all language caches by default.
We were lacking an option to rebuild only one language, for example when
it get corrupted or the cache file for a language got removed.

The new --lang accepts a list of comma separated langs to rebuild the
cache for.  Example usage:

 php rebuildLocalisationCache.php --lang en,fr,de

Nonexistent languages are simply ignored. The script dies if it ends up
with no languages to rebuild.

Change-Id: I4c5e69abb76ffd8b88b595e3687edab3bb267ccc

11 years agoMerge "Add combined link trail / link prefix parserTests case."
jenkins-bot [Wed, 1 May 2013 04:29:13 +0000 (04:29 +0000)]
Merge "Add combined link trail / link prefix parserTests case."

11 years agoMerge "Add hook AbortChangePassword to Special:ChangePassword"
jenkins-bot [Wed, 1 May 2013 03:15:13 +0000 (03:15 +0000)]
Merge "Add hook AbortChangePassword to Special:ChangePassword"

11 years agoMessage tweaks to new login and create acct forms
S Page [Sat, 27 Apr 2013 05:00:55 +0000 (22:00 -0700)]
Message tweaks to new login and create acct forms

* "Keep me logged in" (bug 47694)
* "[Create my account]" submit button (bug 47700)
* "Why you are creating another account" placeholder (bug 31888)

Bug: 47694
Bug: 47700
Bug: 31888

Change-Id: I7cfa4bb36368277a934144c1724ec437c426eacf

11 years agoAdded a --backoff option for syncFileBackend.php
Aaron Schulz [Wed, 1 May 2013 01:53:01 +0000 (18:53 -0700)]
Added a --backoff option for syncFileBackend.php

* This is useful for avoiding in-progress operations if locking
  is not enabled (the journal is updated before file changes).

Change-Id: Ieab3b157a6858f68cc9259214cac1743b7525da0