lhc/web/wiklou.git
10 years agoVector: Rewrite footer styling with nesting
jrobson [Wed, 8 Jan 2014 18:13:55 +0000 (10:13 -0800)]
Vector: Rewrite footer styling with nesting

Change-Id: I86666dfcf14ce3a0a59733e7ac2459ac770139b6

10 years agoVector: Rewrite p-personal with nesting.
jrobson [Wed, 8 Jan 2014 17:57:23 +0000 (09:57 -0800)]
Vector: Rewrite p-personal with nesting.

Change-Id: I3b25552005a2d43759c7f1687008f8ae90f15111

10 years agoVector: Componentize screen.less
jrobson [Wed, 8 Jan 2014 17:55:08 +0000 (09:55 -0800)]
Vector: Componentize screen.less

This is a bold but much needed move.
I've not changed any of the css, I've simply separated it into separate
LESS files. This arguably makes the code much more readable and organised.
This is step 1 of a big cleanup of the Vector skin. A +2 is much appreciated.

Change-Id: I22e100bb0f9566af6ddccd88bc310f8902c5ff70

10 years agoMerge "Merge RELEASE-NOTES-1.22 into HISTORY"
Bartosz Dziewoński [Wed, 8 Jan 2014 17:08:24 +0000 (17:08 +0000)]
Merge "Merge RELEASE-NOTES-1.22 into HISTORY"

10 years agoMerge RELEASE-NOTES-1.22 into HISTORY
Bartosz Dziewoński [Wed, 8 Jan 2014 16:42:21 +0000 (17:42 +0100)]
Merge RELEASE-NOTES-1.22 into HISTORY

About time someone did this. One would think it's somebody's
responsibility, eh.

Change-Id: I8649940e006aa191662095a5f787728985ea5c9c

10 years agoFix missing apostrophe in maintenance/generateJsonI18n.php
Hydriz [Wed, 8 Jan 2014 12:52:43 +0000 (20:52 +0800)]
Fix missing apostrophe in maintenance/generateJsonI18n.php

Change-Id: I3f678df09853bfdb6295985c81d4469024aecfbb

10 years agoCall to a member function getCommonMetaArray() on a non-object at
Reedy [Tue, 7 Jan 2014 20:04:14 +0000 (20:04 +0000)]
Call to a member function getCommonMetaArray() on a non-object at
File.php on line 586

Bug: 59785
Change-Id: I7163f3fd122922a28519b7cb1d3d4cd4b81165ee

10 years agoUse file handle caching in newSequentialPerNodeIDs()
Aaron Schulz [Fri, 3 Jan 2014 19:24:11 +0000 (11:24 -0800)]
Use file handle caching in newSequentialPerNodeIDs()

* This is now similar to the other methods in that regard

Change-Id: I36163fa7f1bc13d493df9d77b139a99881d0de45

10 years agoMake imagelinks work like templatelinks
Brad Jorsch [Sat, 4 Jan 2014 19:26:26 +0000 (14:26 -0500)]
Make imagelinks work like templatelinks

Due to bug 17259 (which is fixed in a better way in Id44d566a),
imagelinks only records the redirect and not the actual image used when
an image redirect is referenced. This causes various problems, such as
cascading protection not working through image redirects.

It makes more sense for imagelinks to work like tempaltelinks, recording
both so that things like cascading protection don't have to care about
image redirects explicitly.

Comparing imagelinks to templatelinks also reveals a few places
(WikiPage::doDeleteUpdates, WikiPage::doCascadeProtectionUpdates) that
should be triggering a LinksUpdate if the image links changed.

Bug: 23002
Bug: 23542
Bug: 26503
Change-Id: I64fe7d25646cae2c8213211893c6f821f3504dbf

10 years agoMake WikiPage::$mPreparedEdit public
Reedy [Tue, 7 Jan 2014 22:59:17 +0000 (22:59 +0000)]
Make WikiPage::$mPreparedEdit public

Partial revert of I2c34baaf8b64b204444efa1bfa6ea356e0124c54

Change-Id: Id4e90c612941ff2bdb50d7a68f4e18b004c9f744

10 years agoMerge "Send cache purges for action=raw after editing user css/js"
jenkins-bot [Tue, 7 Jan 2014 22:57:11 +0000 (22:57 +0000)]
Merge "Send cache purges for action=raw after editing user css/js"

10 years agoMerge "Move redirect rendering into WikitextContent"
jenkins-bot [Tue, 7 Jan 2014 22:45:02 +0000 (22:45 +0000)]
Merge "Move redirect rendering into WikitextContent"

10 years agoMoved HashRing to /libs
Aaron Schulz [Tue, 31 Dec 2013 23:31:26 +0000 (15:31 -0800)]
Moved HashRing to /libs

Change-Id: I0b74b386f7459f550816f99aa7e00970c3cff4c7

10 years agoMerge "Moved MappedIterator to /libs and changed exception type"
jenkins-bot [Tue, 7 Jan 2014 21:17:12 +0000 (21:17 +0000)]
Merge "Moved MappedIterator to /libs and changed exception type"

10 years agoMerge "Migrate redirectToFragment() from wikibits.js to own module"
jenkins-bot [Tue, 7 Jan 2014 21:16:14 +0000 (21:16 +0000)]
Merge "Migrate redirectToFragment() from wikibits.js to own module"

10 years agoMoved MappedIterator to /libs and changed exception type
Aaron Schulz [Tue, 31 Dec 2013 23:33:15 +0000 (15:33 -0800)]
Moved MappedIterator to /libs and changed exception type

Now throws UnexpectedValueException rather than MWException.

Change-Id: Id466b66f43db97c5837030d166b9abd66fd56e0d

10 years agoMerge "Add ProfilerMwprof"
jenkins-bot [Tue, 7 Jan 2014 21:11:11 +0000 (21:11 +0000)]
Merge "Add ProfilerMwprof"

10 years agoAdd ProfilerMwprof
Ori Livneh [Mon, 6 Jan 2014 21:24:44 +0000 (13:24 -0800)]
Add ProfilerMwprof

ProfilerMwprof is similar to ProfilerSimpleUDP in that accumulated profiling
samples are emitted to a remote host using UDP. Profiling data for sections
that are called multiple times are aggregating using the RunningStat class I
introduced in Ifedda276d; this provides the ability to compute timing variance
across multiple requests without storing individual values for a second pass
through the data.

Entries are serialized into MessagePack arrays, using the implementation added
in Id2833c5a9. The first element of each array is an entry type specifier.
Currently two types exist: TYPE_SINGLE (single sample; no statistical moments)
and TYPE_RUNNING (aggregated entry with statistical moments). Additional entry
formats may be specified in the future.

TYPE_SINGLE entries have the format:

  [ TYPE_SINGLE, name (string), CPU time (float), wall time (float ]

TYPE_RUNNING entries have the format:

  [ TYPE_RUNNING, name (string), count (int),
    CPU m1 (float), CPU m2 (float), CPU min (float), CPU max (float),
    wall m1 (float), wall m2 (float), wall min (float), wall max (float) ]

To help reviewers test this change, I have a trivial Python script that can
serve as the back-end: <https://gist.github.com/atdt/8290191>

Change-Id: I688e7231dad9fcc9d29954afacc47f55d521f58d

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 7 Jan 2014 20:34:54 +0000 (20:34 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: I0b92294dfb157ec75e1b116395de0181f9da707b

10 years agoDatabaseInstaller::setVarsFromRequest needs array
umherirrender [Tue, 7 Jan 2014 18:54:27 +0000 (19:54 +0100)]
DatabaseInstaller::setVarsFromRequest needs array

Method is not marked as var args.

Bug: 58434
Follow-Up: I920b0231db1b70b68c6c8907257c288a0e112668
Change-Id: Ief7f7c06e75efbe7ae1da13f5021a9062483f690

10 years agoMove redirect rendering into WikitextContent
Brad Jorsch [Sat, 4 Jan 2014 22:07:33 +0000 (17:07 -0500)]
Move redirect rendering into WikitextContent

There's no good reason for everything that wants to render a page to
have to test whether the page is a redirect and then call
Article::viewRedirect to get the fancy rendering instead of using the
ParserOutput. This logic can easily be moved into
WikitextContent::getParserOutput so callers can just use the
returned ParserOutput.

At the same time, we can handle "#REDIRECT [[File:Foo]]" and
"#REDIRECT [[Category:Foo]]" the way people expect, by recording the
link in pagelinks rather than imagelinks/categorylinks (although this
means fixing ImagePage's bug about assuming anything in imagelinks that
is a redirect is a redirect to the image too).

And we can finally fix bug 14323, too.

Bug: 14323
Bug: 17259
Bug: 27621
Bug: 42642
Bug: 50488
Change-Id: Id44d566a7ca35a1b9579d0c0e947877c980b0686
Followup: I1c7582d1bf7ec4184a45b00154e3dd5b39dd444b
Followup: I3653b608941813a73281f4f0545bea2487d43964

10 years agoRemove #mw_trackbacks CSS from shared.css.
Jack Phoenix [Tue, 7 Jan 2014 12:32:03 +0000 (14:32 +0200)]
Remove #mw_trackbacks CSS from shared.css.

This was historically used on [[MediaWiki:Trackbackbox]] (from where it was
moved to Article::addTrackbacks() in r47543, committed on 20 February 2009
by raymond), but the entire trackback feature was removed in r104051, committed on 23 November 2011.

The #mw_trackbacks definition was moved from various (skin-specific) CSS
files to here in r52404 (committed on 25 June 2009) by ialex.

Change-Id: I7809de83ebb537d4739ef89265c32935aa036e1d

10 years agoMerge "Update docs for CLDRPluralRuleEvaluator.php"
jenkins-bot [Tue, 7 Jan 2014 10:45:52 +0000 (10:45 +0000)]
Merge "Update docs for CLDRPluralRuleEvaluator.php"

10 years agoUpdate PHPUnit version check to 3.7.0
Adrian Lang [Tue, 7 Jan 2014 09:30:49 +0000 (10:30 +0100)]
Update PHPUnit version check to 3.7.0

assertContainsOnlyInstancesOf has been added in PHPUnit 3.7.0, so we need to
have that version for running the tests.

Bug: 59759
Change-Id: I25dbd377b97ec0b9062d3c8cf495ba3f06956ac4

10 years agoMerge "Add sequence support for externallinks table"
jenkins-bot [Tue, 7 Jan 2014 05:27:24 +0000 (05:27 +0000)]
Merge "Add sequence support for externallinks table"

10 years agoAPI: Add prop=contributors
Brad Jorsch [Thu, 14 Nov 2013 21:07:52 +0000 (16:07 -0500)]
API: Add prop=contributors

Certain applications, such as the generation of PDFs, could use a list
of all non-anonymous contributors to the page (as well as a count of
anonymous contributors) without crawling the output of prop=revisions.
This patch adds a prop module to retrieve this information.

Including the IP addresses of anonymous contributors is not realistically
possible without further schema changes, so that is not done here.
Additionally, revisions with DELETED_USER will be skipped entirely.

Change-Id: Iaff50dfb09016154901a5197aa14eb9f8febcbc5

10 years agoMerge "MWException doesn't care about $wgTitle anymore"
jenkins-bot [Mon, 6 Jan 2014 23:47:15 +0000 (23:47 +0000)]
Merge "MWException doesn't care about $wgTitle anymore"

10 years agoMerge "Sync up with Parsoid parserTests."
jenkins-bot [Mon, 6 Jan 2014 23:38:11 +0000 (23:38 +0000)]
Merge "Sync up with Parsoid parserTests."

10 years agoRevert Id39d4457a: Remove experiment code for moduleStorage
Ori Livneh [Mon, 6 Jan 2014 23:18:18 +0000 (15:18 -0800)]
Revert Id39d4457a: Remove experiment code for moduleStorage

Because of a bug affecting the production cluster during the initial run of the
experiment, we need to rerun it. This patch reverts Id39d4457a, restoring the
experiment setup code. As before, it will be removed at the conclusion of the
experiment.

Change-Id: Ifa97d36d3af589ca0586baad2702fb7b58b246e5

10 years agoInclude namespaces in {{CASCADINGSOURCES}} output
Jackmcbarn [Mon, 6 Jan 2014 21:53:43 +0000 (16:53 -0500)]
Include namespaces in {{CASCADINGSOURCES}} output

Include the namespace of pages in the output of the CASCADINGSOURCES
parser function.

Change-Id: Ie39ecfb52965c36349e601bee092590a147b5a03

10 years agoMerge "Mechanism for renaming/aliasing classes"
jenkins-bot [Mon, 6 Jan 2014 21:27:54 +0000 (21:27 +0000)]
Merge "Mechanism for renaming/aliasing classes"

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 6 Jan 2014 19:58:18 +0000 (19:58 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: I1b1e7c920d7a71f8c2230dbacf9ce4b51bb1d2fe

10 years agoMerge "Add CASCADINGSOURCES parser function"
jenkins-bot [Mon, 6 Jan 2014 19:04:53 +0000 (19:04 +0000)]
Merge "Add CASCADINGSOURCES parser function"

10 years agoMerge AssertEdit extension into core
Kunal Mehta [Wed, 16 Oct 2013 22:27:59 +0000 (15:27 -0700)]
Merge AssertEdit extension into core

Added &assert=user and &assert=bot for all API modules.

Some functionality was dropped:
* assert='exists': the edit API already has &nocreate/&createonly
* nassert parameter: there is no usecase for checking that your
  account is logged out or not flagged
* assert=true/false: If you want to test a failing assertion, log out
* assert=test: Not useful
* Checking edits via index.php

The error format was changed from:
{"edit": {"assert": "bot", "result": "Failure"}}
to the standard format of API errors in an 'errors' array
using the codes: 'assertuserfailed' and 'assertbotfailed'.

Bug: 27841
Bug: 53106
Change-Id: Ia4815168548fea3dbf1c305792a451374f2a3b7e

10 years agoUpdate docs for CLDRPluralRuleEvaluator.php
Siebrand Mazeland [Mon, 6 Jan 2014 16:49:44 +0000 (17:49 +0100)]
Update docs for CLDRPluralRuleEvaluator.php

Change-Id: I072fe3e58edc7585cb56483513e8447221af1083

10 years agoMechanism for renaming/aliasing classes
Kevin Israel [Fri, 22 Nov 2013 04:13:03 +0000 (23:13 -0500)]
Mechanism for renaming/aliasing classes

Sometimes it is desirable to change a class name that is still referenced
in extensions or config files (e.g. for consistency, as in I507ba00a).
PHP's class_alias() function can help in preserving backward compatibility;
however, creating an alias first requires that the class be loaded.

Hence this is implemented in AutoLoader. Lazy loading continues to work,
the list of class names is still maintained in a central location, and
optionally, deprecation warnings can be generated.

Change-Id: I1d3fb04a448647b5be10bed7fec05238b9fc6fc7

10 years agoAdd reference to the current user to the PageRenderingHash hook
physikerwelt [Fri, 3 Jan 2014 17:05:24 +0000 (17:05 +0000)]
Add reference to the current user to the PageRenderingHash hook

To generate a user-dependent cache key it makes sense to pass
a reference to the user object, since $wgUser is deprecated.

Change-Id: I32a1df52912292230852c31d69968eeb312a4a97

10 years agoMake message key optional
raymond [Mon, 6 Jan 2014 13:56:49 +0000 (14:56 +0100)]
Make message key optional

https://gerrit.wikimedia.org/r/#/c/65299/

Change-Id: I2c27359696a346d92761452f598e8fe00d88156a

10 years agoCleanup HTMLCheckMatrixTest.
addshore [Fri, 15 Nov 2013 23:45:43 +0000 (00:45 +0100)]
Cleanup HTMLCheckMatrixTest.

Fix Covers tags, looks like we need more testcases
for all other HTML* classes

Change-Id: I166464da3373b45564dd770feecacafacb301604

10 years agoGender aliases for user namespaces in French and Cajun French
Dereckson [Mon, 6 Jan 2014 12:09:18 +0000 (13:09 +0100)]
Gender aliases for user namespaces in French and Cajun French

NS_USER:
* User identifies as male: Utilisateur
* User identifies as female: Utilisatrice

NS_USER_TALK:
* User identifies as male: Discussion utilisateur
* User identifies as female: Discussion utilisatrice

Languages with fallback to French:
* applies to frc (Cajun French). This language also uses « Utilisateur »
  and « Utilisatric » to translate “user”.
* doesn't apply to bm, ff, frp, ht, ln, mg, pcd, sg, ty, wa, wo.

This change is a follow-up of I5825f750a58dd196f907ad848c74f82130fd857d.

Change-Id: Icb8c787ebfa0e7dfd8289260225fef045fc1b0cb

10 years agoReplace usage of deprecated SpecialPage::getTitle() function
aude [Mon, 6 Jan 2014 11:22:47 +0000 (12:22 +0100)]
Replace usage of deprecated SpecialPage::getTitle() function

Change-Id: Ibd301b5d039026495778d7638fd272997221101b

10 years agoSet Italian (it) as fallback for Corsican (co)
Federico Leva [Mon, 6 Jan 2014 09:50:11 +0000 (10:50 +0100)]
Set Italian (it) as fallback for Corsican (co)

As requested by both active translators:
<https://translatewiki.net/wiki/Thread:Portal_talk:Co/Fallback_to_Italian>
One is French-speaking and the other Italian-speaking: turns out
this fallback is not controversial at all.

Change-Id: I050c84b0cd435379dd5ecbf22d2128101775bf12

10 years agoMerge "Revert "L10n: gender aliases for user namespaces in French""
jenkins-bot [Mon, 6 Jan 2014 09:25:16 +0000 (09:25 +0000)]
Merge "Revert "L10n: gender aliases for user namespaces in French""

10 years agoRevert "L10n: gender aliases for user namespaces in French"
Siebrand [Mon, 6 Jan 2014 09:20:29 +0000 (09:20 +0000)]
Revert "L10n: gender aliases for user namespaces in French"

This incorrectly also set gender based namespaces for at least 12 more
locales. That is too high negative impact. Please resubmit without
also impacting languages that fall back to French by adding:

 // Remove French aliases
 $namespaceGenderAliases = array();

See MessagesLbe.php for example.

This reverts commit cadbf1fc5fd094bcc5e5e4055ddce4c8dec84020.

Change-Id: I5825f750a58dd196f907ad848c74f82130fd857d

10 years agoMerge "Cleanup of includes/rcfeed"
jenkins-bot [Mon, 6 Jan 2014 04:03:01 +0000 (04:03 +0000)]
Merge "Cleanup of includes/rcfeed"

10 years agoNo need to return true/false from AutoLoader
Kevin Israel [Sat, 4 Jan 2014 19:25:44 +0000 (14:25 -0500)]
No need to return true/false from AutoLoader

Partially reverts r36942 (7e627faec6bd).

Change-Id: I5b3dfd148863413025c71de5fadef1cb5bd70dce

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 5 Jan 2014 20:08:28 +0000 (20:08 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: Ie4cf8986d2fc3bdf1d485958c7171b0b86cefee2

10 years agoMerge "Call Language::getLocalisationCache() static"
jenkins-bot [Sun, 5 Jan 2014 11:10:12 +0000 (11:10 +0000)]
Merge "Call Language::getLocalisationCache() static"

10 years agoCleanup of includes/rcfeed
Kunal Mehta [Sun, 5 Jan 2014 05:10:13 +0000 (21:10 -0800)]
Cleanup of includes/rcfeed

* Added license headers to everything
* Added @since tags for all classes
* Use wfParseUrl instead of parse_url
* Check for RedisConnectionPool::getConnection returning false

Change-Id: I7db808c0465bd869de3f2daa82444b5e3d1268c2

10 years agoMerge "Remove methods from SpecialPage deprecated in 1.17 and 1.18"
jenkins-bot [Sun, 5 Jan 2014 04:53:17 +0000 (04:53 +0000)]
Merge "Remove methods from SpecialPage deprecated in 1.17 and 1.18"

10 years agoMerge "Deoptimize SVG versions of enhanced recent changes collapse/show arrows"
jenkins-bot [Sun, 5 Jan 2014 02:13:00 +0000 (02:13 +0000)]
Merge "Deoptimize SVG versions of enhanced recent changes collapse/show arrows"

10 years agoDeoptimize SVG versions of enhanced recent changes collapse/show arrows
Bartosz Dziewoński [Sun, 5 Jan 2014 00:35:24 +0000 (01:35 +0100)]
Deoptimize SVG versions of enhanced recent changes collapse/show arrows

Taken from PS6 of I1fcc2556 (3b304289) which added them.
Apparently we can't even get the MIME type of SVGs right.

Bug: 59234
Change-Id: I6fcc89fddee5f1be5b678304ead303f43d682785

10 years agoProperly peform deletion updates when moving over a redirect
Brad Jorsch [Sat, 4 Jan 2014 23:41:10 +0000 (18:41 -0500)]
Properly peform deletion updates when moving over a redirect

When moving over a redirect, WikiPage::doDeleteUpdates is called to do
things like clean up obsolete entries in `redirect` and other tables.
But it doesn't pass a Content object and the WikiPage doesn't have one
cached, so it winds up not actually doing these updates.

Change-Id: I54c90cebfd6bea07137a77bd70acec02cab51084

10 years agoRemove extra parenthesis on where conditions
umherirrender [Sat, 4 Jan 2014 21:03:02 +0000 (22:03 +0100)]
Remove extra parenthesis on where conditions

No need for parenthesis there, because Database::makeList always add
parenthesis around raw where clauses.

Also replaced hard coded quotes by Database::addQuotes

Change-Id: Idcfea54383ac1ba22daa38fba81b883dc0d883f6

10 years agoCall Language::getLocalisationCache() static
umherirrender [Sat, 4 Jan 2014 20:33:12 +0000 (21:33 +0100)]
Call Language::getLocalisationCache() static

Change-Id: Ibbe03b92f2beebaaf93ba9e3c5bebbf3d7626b7a

10 years agoL10n: gender aliases for user namespaces in French
Dereckson [Sat, 4 Jan 2014 20:12:50 +0000 (21:12 +0100)]
L10n: gender aliases for user namespaces in French

NS_USER:
* M: Utilisateur
* F: Utilisatrice

NS_USER_TALK:
* M: Discussion utilisateur
* F: Discussion utilisatrice

Change-Id: I8fa805473a61677f75b04e2708ad087d99bb3c82

10 years agoImprove TestUser group handling
Brad Jorsch [Thu, 5 Dec 2013 17:41:24 +0000 (12:41 -0500)]
Improve TestUser group handling

There's no need for TestUser to remove all groups only to add some back
on. We should be able to speed things up (see bug 43762) by only
removing the groups that aren't wanted and only adding the ones that
aren't already possessed.

Change-Id: I50dd9b117a8a21c8a6170520b3bbf98e3030ae47

10 years agoAdd CASCADINGSOURCES parser function
Jackmcbarn [Thu, 2 Jan 2014 18:27:29 +0000 (13:27 -0500)]
Add CASCADINGSOURCES parser function

Add {{CASCADINGSOURCES}}, which gives a list of cascading-protected pages
that cause a given page to be protected. This is an expensive parser
function.

Change-Id: I0e9556d53d9a78bc02848c775cb667294726cea1

10 years agoMerge "Fix user-friendlyness of block confirmation screen"
jenkins-bot [Sat, 4 Jan 2014 13:27:51 +0000 (13:27 +0000)]
Merge "Fix user-friendlyness of block confirmation screen"

10 years agoFix user-friendlyness of block confirmation screen
m4tx [Mon, 23 Dec 2013 11:37:03 +0000 (12:37 +0100)]
Fix user-friendlyness of block confirmation screen

* "Confirm block" checkbox is now highlighted
* Added "check the box if you're sure" message to the errors at the top

Bug: 58783
Change-Id: I2b496d763a14fe47d7458525cb1e8bb9fa5788f6

10 years agoMerge "Various fixes for EnhancedChangesList"
jenkins-bot [Sat, 4 Jan 2014 11:19:36 +0000 (11:19 +0000)]
Merge "Various fixes for EnhancedChangesList"

10 years agoMerge "Declare visibility for class properties in DatabaseSqlite"
jenkins-bot [Sat, 4 Jan 2014 11:15:05 +0000 (11:15 +0000)]
Merge "Declare visibility for class properties in DatabaseSqlite"

10 years agoRemove methods from SpecialPage deprecated in 1.17 and 1.18
Siebrand Mazeland [Sun, 29 Dec 2013 18:26:50 +0000 (19:26 +0100)]
Remove methods from SpecialPage deprecated in 1.17 and 1.18

No longer used in core or Gerrit extensions. Some patches have been
submitted to remove the last usages. For details see:
* https://gerrit.wikimedia.org/r/#/q/status:open+topic:replace-deprecated,n,z
* https://gerrit.wikimedia.org/r/#/q/status:merged+topic:replace-deprecated,n,z

- SpecialPage::__call() (deprecated in 1.17)
- SpecialPage::executePath() (deprecated in 1.18)
- SpecialPage::exists() (deprecated in 1.18)
- SpecialPage::file() (deprecated in 1.18)
- SpecialPage::func() (deprecated in 1.18)
- SpecialPage::getGroup() (deprecated in 1.18)
- SpecialPage::getPage() (deprecated in 1.18)
- SpecialPage::getPageByAlias() (deprecated in 1.18)
- SpecialPage::getLocalNameFor() (deprecated in 1.18)
- SpecialPage::getRegularPages() (deprecated in 1.18)
- SpecialPage::getRestrictedPages() (deprecated in 1.18)
- SpecialPage::getTitleForAlias() (deprecated in 1.18)
- SpecialPage::getUsablePages() (deprecated in 1.18)
- SpecialPage::includable() (deprecated in 1.18)
- SpecialPage::init()
- SpecialPage::initAliasList() (deprecated in 1.18)
- SpecialPage::initList() (deprecated in 1.18)
- SpecialPage::name() (deprecated in 1.18)
- SpecialPage::removePage() (deprecated in 1.18)
- SpecialPage::resolveAlias() (deprecated in 1.18)
- SpecialPage::resolveAliasWithSubpage() (deprecated in 1.18)
- SpecialPage::restriction() (deprecated in 1.18)
- SpecialPage::setGroup() (deprecated in 1.18)

Change-Id: I5122f0f23255bc1e8b63a7329a6d1653899b7f59

10 years agoMerge "Further cleanup to Special:Version"
jenkins-bot [Sat, 4 Jan 2014 02:08:51 +0000 (02:08 +0000)]
Merge "Further cleanup to Special:Version"

10 years agoFurther cleanup to Special:Version
Matt Walker [Wed, 29 May 2013 02:52:05 +0000 (19:52 -0700)]
Further cleanup to Special:Version

Cleaned up some HTML, added some CSS classes for the version
information, and refactored some of the code.

Also added column headers for the extension descriptions.

Change-Id: I5bbc4d4024620ea57ab1bf778255a487fbc9b378

10 years agoMerge "Add licensing for extensions to Special:Version"
jenkins-bot [Sat, 4 Jan 2014 00:42:28 +0000 (00:42 +0000)]
Merge "Add licensing for extensions to Special:Version"

10 years agoMerge "Don't convert bad curids to the Main Page"
jenkins-bot [Sat, 4 Jan 2014 00:12:12 +0000 (00:12 +0000)]
Merge "Don't convert bad curids to the Main Page"

10 years agoMerge "Do not reveal RevDeled file title"
jenkins-bot [Sat, 4 Jan 2014 00:10:29 +0000 (00:10 +0000)]
Merge "Do not reveal RevDeled file title"

10 years agoMerge "Revert "Optimize all SVGs""
Ori.livneh [Fri, 3 Jan 2014 23:56:23 +0000 (23:56 +0000)]
Merge "Revert "Optimize all SVGs""

10 years agoRevert "Optimize all SVGs"
Ori.livneh [Fri, 3 Jan 2014 23:53:11 +0000 (23:53 +0000)]
Revert "Optimize all SVGs"

On my Mac, calling finfo_file on external-link-ltr-icon.svg gets the correct
MIME-type ("image/svg+xml"), but in production I get  "application/xml".
This is probably due to the version of fileinfo or libmagic that is deployed on
the cluster. Reverting for now.

This reverts commit a9b855eea52ba3b739a9150beb8e69db8afd2143.

Change-Id: Ie4db624ba9f561a467622878d0992847be018b7d

10 years agoMerge "Localisation updates from https://translatewiki.net."
Translation updater bot [Fri, 3 Jan 2014 20:53:21 +0000 (20:53 +0000)]
Merge "Localisation updates from https://translatewiki.net."

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 3 Jan 2014 20:35:25 +0000 (20:35 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: I8d9a05eb6ce4136d424c4f2ce7cdc65e8c09b0f6

10 years agoFix doc for Database::upsert
umherirrender [Fri, 3 Jan 2014 20:35:21 +0000 (21:35 +0100)]
Fix doc for Database::upsert

One @params too much

Change-Id: I8cea6228587574ff90060d46b4430b2348a68973

10 years agoAdd sequence support for externallinks table
umherirrender [Fri, 3 Jan 2014 19:36:20 +0000 (20:36 +0100)]
Add sequence support for externallinks table

Database field el_id was added with
Ib6b0fc3736d173fa4ba7b786ecfc710b2f4711bb, but due to autoincrement in
mysql no sequence support was added.

For mysql this is a nop, it adds a field to the insert but that is null
and mysql autoincrement will fill it.
INSERT /* LinksUpdate::incrTableUpdate 127.0.0.1 */ IGNORE
  INTO `externallinks` (el_id,el_from,el_to,el_index)
VALUES
(NULL,'1610','http://de.wikipedia.org/wiki/Hauptseite','http://org.wikipedia.de./wiki/Hauptseite')

At least Oracle will need it

Bug: 58435
Change-Id: I3f68ea8d99c5450c0c66feeb1469ef0ee6cc4eab

10 years agoAdd licensing for extensions to Special:Version
Matt Walker [Fri, 24 May 2013 11:19:49 +0000 (04:19 -0700)]
Add licensing for extensions to Special:Version

Allow extensions to register a software license and present
this on the Special:Version page. A new $wgExtensionCredits
parameter has been introduced for this purpose: 'license-name'.

This will also automatically pick up the presense of additional
licensing and/or credits files. If ((AUTHORS)|(CREDITS))(\.txt)?
exists in the extension base directory a credits link will be
created. If ((LICENSE)|(COPYING))(\.txt)? exists a license link
will be created.

The API has also been updated to produce VCS information and present
links to the license/credits files.

Bug: 48418
Change-Id: I388f3b630462f1909f30751c987f7af585e98881

10 years agoCall Database::makeInsertOptions from Database::insertSelect
umherirrender [Fri, 3 Jan 2014 15:32:33 +0000 (16:32 +0100)]
Call Database::makeInsertOptions from Database::insertSelect

This allows other database types to modify the options.

Bug: 59233
Change-Id: I45a2c7944057f43453423c8edbe5d173b1fc067d

10 years agoSend cache purges for action=raw after editing user css/js
Brian Wolff [Wed, 13 Nov 2013 03:00:07 +0000 (23:00 -0400)]
Send cache purges for action=raw after editing user css/js

These types of requests can be cached for a short time (~5 min) in
Squid/Varnish.

Change importScript to be consistent with importStylesheet in the query
parameter order (title, action, ctype).

We only send purges for the exact urls as used by importScript and
importStylesheet.

Note: ResourceLoader things have their cache handled separately and
aren't affected by this change.

Users like instant updating of scripts after having changed them.

Bug: 56874
Change-Id: Idaa8552cf371dbafeb8b730f35b3b5c4fc339fb0

10 years agoMerge "Revert "Declare visibility for class properties in MySQLMasterPos""
jenkins-bot [Fri, 3 Jan 2014 18:12:02 +0000 (18:12 +0000)]
Merge "Revert "Declare visibility for class properties in MySQLMasterPos""

10 years agoDo not reveal RevDeled file title
Brad Jorsch [Tue, 31 Dec 2013 14:24:13 +0000 (09:24 -0500)]
Do not reveal RevDeled file title

When an file is being uploaded, we tell the user if it has been
uploaded and deleted in the past. But we shouldn't reveal the title
under which that was done if the file was suppressed via RevDel.

Note this introduces a breaking API change: clients may now receive a
"deleted-archive" warning with an empty value if the title was
suppressed.

Bug: 59167
Change-Id: I01a3ac2ba0cbac6b28de26a7f1a1d09b6b02097e

10 years agoMerge "Leading semicolon line-bolding made visible in printable version"
jenkins-bot [Fri, 3 Jan 2014 17:32:10 +0000 (17:32 +0000)]
Merge "Leading semicolon line-bolding made visible in printable version"

10 years agoRevert "Declare visibility for class properties in MySQLMasterPos"
Anomie [Fri, 3 Jan 2014 17:18:20 +0000 (17:18 +0000)]
Revert "Declare visibility for class properties in MySQLMasterPos"

These members are accessed from DatabaseMysqlBase::masterPosWait and
DatabaseBase::masterPosWait, causing errors if the wiki has slave
databases or has fakeSlaveLag set.

This reverts commit d0325927d4a7352590e52690aa30ce63fffb6ab8.

Change-Id: I563bde457274dad2f254145426376b275b597e2a

10 years agoMerge "Declare visibility for class properties of LBFactoryMulti"
jenkins-bot [Fri, 3 Jan 2014 16:42:53 +0000 (16:42 +0000)]
Merge "Declare visibility for class properties of LBFactoryMulti"

10 years agoMerge "Change Title::isExternal to use strict comparsion"
jenkins-bot [Fri, 3 Jan 2014 16:41:12 +0000 (16:41 +0000)]
Merge "Change Title::isExternal to use strict comparsion"

10 years agoMerge "Declare visibility for class properties in DatabasePostgres.php"
jenkins-bot [Fri, 3 Jan 2014 16:31:02 +0000 (16:31 +0000)]
Merge "Declare visibility for class properties in DatabasePostgres.php"

10 years agoMerge "Update documentation for ParserCache::save()"
jenkins-bot [Fri, 3 Jan 2014 16:29:03 +0000 (16:29 +0000)]
Merge "Update documentation for ParserCache::save()"

10 years agoMerge "Fix SearchEngineTest when $wgSearchType is set to non-default"
jenkins-bot [Fri, 3 Jan 2014 16:21:01 +0000 (16:21 +0000)]
Merge "Fix SearchEngineTest when $wgSearchType is set to non-default"

10 years agoMerge "Add fastcgi_finish_request where appropriate"
jenkins-bot [Fri, 3 Jan 2014 16:06:47 +0000 (16:06 +0000)]
Merge "Add fastcgi_finish_request where appropriate"

10 years agoMerge "Typofix: less bunny hoppers"
jenkins-bot [Fri, 3 Jan 2014 13:56:09 +0000 (13:56 +0000)]
Merge "Typofix: less bunny hoppers"

10 years agoTypofix: less bunny hoppers
Niklas Laxström [Fri, 3 Jan 2014 13:45:06 +0000 (13:45 +0000)]
Typofix: less bunny hoppers

Change-Id: Ie3c067b369d794f1be73019b8e4a18f84461a17a

10 years agoMerge "Prevent selection of "Jump to" text"
jenkins-bot [Fri, 3 Jan 2014 13:36:20 +0000 (13:36 +0000)]
Merge "Prevent selection of "Jump to" text"

10 years agoMerge "Remove reference to deleted file"
jenkins-bot [Fri, 3 Jan 2014 12:08:15 +0000 (12:08 +0000)]
Merge "Remove reference to deleted file"

10 years agoRemove reference to deleted file
Bartosz Dziewoński [Fri, 3 Jan 2014 12:01:28 +0000 (13:01 +0100)]
Remove reference to deleted file

It didn't even point to the right location…

Follow-up to I70d20bf2.

Change-Id: I7f909873035b9176ba9b7c2bf41b05d9eede3cc4

10 years agoCLDR 24 update - release notes
Santhosh Thottingal [Fri, 3 Jan 2014 10:55:17 +0000 (16:25 +0530)]
CLDR 24 update - release notes

Follow up: I9930b290d004667a3bb09e5c1663ec2c9c27d8a6

Bug: 56931
Change-Id: Ic37276126dd615c2510c17455a5bbf5d8653045d

10 years agoFix SearchEngineTest when $wgSearchType is set to non-default
aude [Fri, 3 Jan 2014 01:23:16 +0000 (02:23 +0100)]
Fix SearchEngineTest when $wgSearchType is set to non-default

$wgSearchType needs to be controlled for at time the pages get created.
This patch sets the $wgSearchType global.

Also, the 'singleton' is removed from SearchEngine::getSearchTypes, which
appears to provide little or no benefit while binding all tests to the
global variable.

SearchEngine::getSearchTypes() gets called in SearchUpdate which is
run on page edits. This means the first page edit in the entire
test suite causes the global variable to be set and subsequent tests
cannot override it.

These changes allow SearchEngineTest to pass, even if one has CirrusSearch
or other such extensions enabled.

Change-Id: I39050da8659dc69db31125f469f494a5fb4b8fca

10 years agoMerge "MWMessagePack: improvements to test suite, exception handling, array detection"
jenkins-bot [Fri, 3 Jan 2014 09:06:10 +0000 (09:06 +0000)]
Merge "MWMessagePack: improvements to test suite, exception handling, array detection"

10 years agoAdd fastcgi_finish_request where appropriate
Tyler Anthony Romeo [Thu, 21 Nov 2013 23:05:00 +0000 (18:05 -0500)]
Add fastcgi_finish_request where appropriate

When using PHP-FPM to run PHP on a web server, the function
fastcgi_finish_request is provided, which flushes all response
data to the client and closes the connection, allowing PHP
to perform additional work without delaying the client.

This adds fastcgi_finish_request calls in index.php and api.php
where appropriate and if the function exists, so that the connection
is closed once the output is definitely finished.

Change-Id: Ic67a8956545874e94df5198088c0f4aa58ca376e

10 years agoMWMessagePack: improvements to test suite, exception handling, array detection
Ori Livneh [Fri, 3 Jan 2014 05:57:23 +0000 (21:57 -0800)]
MWMessagePack: improvements to test suite, exception handling, array detection

* Throw InvalidArgumentException
* Use data provider in unit tests
* Detect associative arrays without copying

Per Tyler's post-merge review of Id2833c5a9.

Change-Id: Iec6b135238ca5da3002944066843102f0ae8d23d

10 years agoUpdate Russian(ru) plural rules to CLDR 24
Santhosh Thottingal [Fri, 3 Jan 2014 08:16:19 +0000 (13:46 +0530)]
Update Russian(ru) plural rules to CLDR 24

Russian (ru) plural rules have a major change. The 'few' form is
merged with the 'other' form. The current forms are 'one', 'many', 'other'.
In MW ru plural rules were overridden using convertPlural methdod
in LanguagesRu.php with 3 forms.

Effectively forms[1] and forms[2] are swapped.

Followup: I9930b290d004667a3bb09e5c1663ec2c9c27d8a6

Bug: 56931
Change-Id: Ia5779e42315d3f41f52dce2bfffaee0a4297d23b

10 years agoMerge "Move RunningStat from profiler/ to libs/"
jenkins-bot [Fri, 3 Jan 2014 07:19:18 +0000 (07:19 +0000)]
Merge "Move RunningStat from profiler/ to libs/"

10 years agoMerge "Update plural rules to CLDR 24"
jenkins-bot [Fri, 3 Jan 2014 07:17:36 +0000 (07:17 +0000)]
Merge "Update plural rules to CLDR 24"