Commit graph

61363 commits

Author SHA1 Message Date
jenkins-bot
bd5fd843d6 Merge "Always decode Blob objects from Database::addQuotes" 2015-02-25 21:17:06 +00:00
Aaron Schulz
e67b05e7b7 Merge "PostreSQL: DatabaseBase constructor cleanups" 2015-02-25 18:36:04 +00:00
Jeff Janes
1fd9f18d13 PostreSQL: DatabaseBase constructor cleanups
Change I29b79a3c1bb2b5e51c1c8f5e04cd08c71e0662a3 rendered
it uninstallable on PostgreSQL.

Make the corresponding API changes to PostgreSQL installer.

Bug: T90288
Change-Id: I2019893ad705d99f3dbbce13690cd808cfb71d4a
2015-02-25 18:27:59 +00:00
Brad Jorsch
b5ac439ee6 Run maintenance/generateLocalAutoload.php
I thought a unit test was supposed to fail if this hadn't been run, but
I3936417b and I40fd6aaa recently got merged despite it.

Change-Id: Idb9b4b77a4a1c82ed74ec829fad8c12a9c39af09
2015-02-25 13:18:27 -05:00
Federico Leva
f8207aeb17 Don't alias tt special pages to titles with double underscore
Such titles are invalid, as far as I can see. I get "no such special
page" at https://tt.wikipedia.org/wiki/Special:Unusedimages etc.

Change-Id: Id9869a9af5c67c18af78a925c8c4fdbaef062d32
2015-02-25 17:24:39 +01:00
jenkins-bot
087e70d6d2 Merge "Start moving objectcache into libs/" 2015-02-25 16:04:49 +00:00
jenkins-bot
09c0011da5 Merge "Avoid calling rollback() in handleWriteError() if there is no trx" 2015-02-25 09:16:04 +00:00
jenkins-bot
198f85b1d9 Merge "Fix parameter order for block logs" 2015-02-25 08:34:27 +00:00
Kunal Mehta
1e3888de00 Start moving objectcache into libs/
The base BagOStuff class and some of the implementations are
not dependent on MediaWiki and can be in the libs folder.

Change-Id: I299f9abb778abc65a70461a2aff3015c02a1f04d
2015-02-25 00:22:50 -08:00
Gergő Tisza
2202dbbfab Allow subscribing to module loading exceptions
Provide access via mw.track to module loading errors which are
otherwise swallowed by mw.loader.

Bug: T513
Bug: T85263
Change-Id: Ifc13c207af36dc56be931a3b140063354513a4ec
2015-02-25 02:46:46 +00:00
Bartosz Dziewoński
f51bb4b17d mediawiki.sectionAnchor: Indent with tabs
Change-Id: I3105e96c7ef95ddaf457e40c120f489427db7b86
2015-02-25 01:10:32 +01:00
Translation updater bot
5a3173d06b Localisation updates from https://translatewiki.net.
Change-Id: I88964ba360569a63d7d3d0d7e78e70001bad5806
2015-02-24 21:35:59 +01:00
Aaron Schulz
0a873a3c28 Avoid calling rollback() in handleWriteError() if there is no trx
Change-Id: Ic3be89151160ad57acda5d95e3995a77f3835717
2015-02-24 11:34:23 -08:00
umherirrender
ce4af8b873 Fix parameter order for block logs
The new block log params does not known the message number 4 (which is
index 3), therefore LogFormatter::getMessageParameters adds empty index
to keep the sequence in strong order.
But the loop was starting at index 4, not 3, which skips the needed
empty index 3 for the order.

Due to the missing $4 the legacy log params returning index 3 and 4,
therefore move them one up to match the new numbers.

Also fixed undefined index warnings for api's list=logevents

Follow-Up: Ibc7fcaa5a952ff90d42a6477da4baa429f3de64b
Change-Id: Ie23be129ee2bd1d2bf753c3b5cba293d64b8e0e8
2015-02-24 19:37:03 +01:00
daniel
95c85f71b1 Remove getSecondaryDataUpdates and friends from ParserOutput.
This is a hard deprecation, with getSecondaryDataUpdates returning an
empty array and addSecondaryDataUpdate throwing an exception. This seems
prudent since there are no known users of these methods, and they
interfere with the parser cache:

DataUpdates are basically jobs, they need access to services to
function. That makes them inherently non-serializable. This interferes
with the function of the parser cache, which serializes ParserOutput
objects in order to persist them.

This could be solved by splitting DataUpdates into DataUpdateDefinitions
and DataUpdateHandlers, similar to how JobSpecification works with
wgJobClasses. That however seems pointless and overkill, since
ParserOutput already has a mechanism for storing arbitrary data,
including any info needed by an UpdateJob: the setExtensionData method.

After this change, the preferred method to introduce custom data updates
is to store any relevant data using setExtensionData and 
implement Content::getSecondaryDataUpdates() if possible. If not,
use the 'SecondaryDataUpdates' hook to construct the necessary update
objects from the info stored using setExtensionData.

Change-Id: I0f6f49e61fa3d8904e55f42c99f342a3dc357495
2015-02-24 11:01:16 +01:00
jenkins-bot
a8c16f6477 Merge "Require ext-iconv and suggest ext-intl in composer.json" 2015-02-23 22:20:15 +00:00
jenkins-bot
87e3e9b5e9 Merge "Add i18n for the infamous "Fatal exception of type MWException" errorbox" 2015-02-23 21:40:14 +00:00
jenkins-bot
44aec8a00a Merge "More debug diagnostics for upload by URL" 2015-02-23 21:39:41 +00:00
Federico Leva
9f7d683fe5 Add i18n for the infamous "Fatal exception of type MWException" errorbox
These errors usually need to be reported, so it's better for the user
to understand them as much as possible.

Bug: T40095
Change-Id: Ibd2f984b66acb9150400126f21acf7cc5fc85acd
2015-02-23 21:33:24 +00:00
jenkins-bot
19d6957824 Merge "DatabaseBase constructor cleanups" 2015-02-23 21:18:23 +00:00
saper
27bdde86c7 More debug diagnostics for upload by URL
Increase debug log verbosity to
troubleshoot file upload by URL issues.

Bug: 73200
Change-Id: I530bd38b85911e0c153280b7d9a9da023f799b02
2015-02-23 13:16:23 -08:00
Aaron Schulz
2cfcb390c6 DatabaseBase constructor cleanups
* The array based format is now required
* Pass any additional parameters through factory() to __construct() even
  if the base clase does not recognize them. This makes DB specific
  options simpler.
* Also added missing bits to Sqlite constructors

Bug: T90288
Change-Id: I29b79a3c1bb2b5e51c1c8f5e04cd08c71e0662a3
2015-02-23 13:02:28 -08:00
Brad Jorsch
daec95d638 Move API release notes to correct places
Change-Id: I301088e4ce4287bd8c9252704ebb190bfcb4aea8
2015-02-23 15:31:49 -05:00
Translation updater bot
79e2ad49cb Localisation updates from https://translatewiki.net.
Change-Id: I2d870140da7fd8f4a2c68562ab1d2cb112ce47d4
2015-02-23 21:26:42 +01:00
jenkins-bot
50787a0874 Merge "Warn when user trying to block nonexistent user" 2015-02-23 19:23:40 +00:00
jenkins-bot
8256db3493 Merge "Removed cas() from ReplicatedBagOStuff as it is unused" 2015-02-23 19:21:39 +00:00
jenkins-bot
9e331cd4c3 Merge "Remove "transwiki import" jargon term" 2015-02-23 19:18:35 +00:00
JuneHyeon Bae
3191a0b042 Warn when user trying to block nonexistent user
Now, Special:Block/Some_User and Special:Block/No_Such_User act the
same. So show warning when user opened 'Special:Block/No_such_user'
page.

Bug: T37687
Change-Id: I60292e1016b64224a6146add58106c9028e7914c
2015-02-23 19:14:27 +00:00
jenkins-bot
80c7b17926 Merge "New hooks ApiMain::moduleManager and ApiQuery::moduleManager" 2015-02-23 18:59:59 +00:00
jenkins-bot
03f7826dcd Merge "Adding sample code to TemplateParser::processTemplate() docs" 2015-02-23 18:56:56 +00:00
aude
df58a3694e Require ext-iconv and suggest ext-intl in composer.json
Since iconv is required, per running install.php, and
intl is recommended.

Bug: T90439
Change-Id: I70f6ce9d8d71f8abd3800bbe00aa0f754ce297a2
2015-02-23 18:50:57 +00:00
Max Semenik
b16eb8a42e New hooks ApiMain::moduleManager and ApiQuery::moduleManager
Needed to conditionally register API modules. The previous way, messing with globals
from extension functions, is getting problematic because Config class will make this
impossible.

Change-Id: I86b40aeec555dd6b3cd82cab31d96e85fdf0a665
2015-02-23 10:38:40 -08:00
Kunal Mehta
8e25f1e167 ComposerJson: Ignore dependencies that start with "ext-"
Any requirements of MediaWiki core to depend upon PHP extensions should
be handled in the installer rather than checkComposerLockUpToDate.php, which
doesn't work anyways since PHP extensions are not included in the lock file.

Change-Id: Ib7af7ccf2f10bc941222d1ce534c7c20690b4c6f
2015-02-23 10:34:53 -08:00
jenkins-bot
439e55d1ea Merge "CategoryView modified to use css columns" 2015-02-23 17:17:21 +00:00
Sumit Asthana
8d25d1b1ea CategoryView modified to use css columns
The categories on Category page were listed using table layout. This layout has
been changed to the responsive css column structure, which is 3 column wide
beyond 768px, otherwise shrinks to a single column.

break-inside is used which needs some consideration, see here:
http://css-tricks.com/almanac/properties/b/break-inside/

Bug: T55130
Change-Id: I437e6079b20e110047f93fb5c09aae40189f1ec0
2015-02-23 16:54:24 +00:00
JuneHyeon Bae
d5e6140f05 Special:WantedPages only lists page which having at least one red link pointing to it.
Bug: T19665
Change-Id: If2f0f09ad20ded630ad497a9c84a921c8233cfb1
2015-02-24 01:49:51 +09:00
Nemo bis
0d011b87e8 Remove "transwiki import" jargon term
import-logentry-interwiki will be dealt with in a followup patch,
to avoid breaking changes before the new logging system is adopted.

https://translatewiki.net/wiki/Thread:Support/About_MediaWiki:Import-logentry-interwiki/pt

Change-Id: I3ca8b21bce49b41cac7109efb8056ca4469b88d7
2015-02-23 16:51:28 +01:00
jenkins-bot
9f01c8d0b2 Merge "Make HashBagOStuff::lock() compatible with BagOStuff::lock" 2015-02-23 15:01:52 +00:00
jenkins-bot
b3b50d7294 Merge "Add default type param for recentchanges and watchlist query api modules" 2015-02-23 13:32:12 +00:00
jenkins-bot
61b2f07f6b Merge "Add hook for custom difference engine (WikEdDiff)" 2015-02-23 12:32:10 +00:00
aude
e653640924 Make HashBagOStuff::lock() compatible with BagOStuff::lock
Fixes php strict standard error.

Bug: T90427
Change-Id: Ica2bddead9b5ad367510e898eeea1257a53b5b19
2015-02-23 12:35:55 +01:00
jenkins-bot
3150b124e2 Merge "Small optimization to ResourceLoader's canExpandStylesheetWith()" 2015-02-23 09:07:29 +00:00
Aaron Schulz
40bfb9bfa0 Removed cas() from ReplicatedBagOStuff as it is unused
Change-Id: I2ff33ba806856ec4cc140a52590a922e13191bf2
2015-02-22 21:38:30 -08:00
jenkins-bot
e2e2fff1eb Merge "Made BagOStuff::cas properly optional" 2015-02-23 05:32:38 +00:00
jenkins-bot
c4be539065 Merge "Removed FORCE INDEX from API category queries" 2015-02-23 05:32:35 +00:00
Aaron Schulz
250f2b9e5a Made BagOStuff::cas properly optional
* merge() using the locking version by default. The callers that implement cas()
  override merge() to use the cas-based version. Those that do not no longer
  need to define the unused dummy method.
* Removed some redundant doc blocks.

Change-Id: I49f7dd5432efa8d76f4758c273f0859376ddafb7
2015-02-23 05:15:24 +00:00
Aaron Schulz
7e1a34ba32 Removed FORCE INDEX from API category queries
Change-Id: I7333256b90e18b9ccb6cc0852d021a5fad2c7b45
2015-02-23 05:10:57 +00:00
Aaron Schulz
3817818aca Add a ReplicatedBagOStuff class
Bug: T88634
Change-Id: I1f7cccd6ac376055ff2b84641ff38a85571c65b0
2015-02-23 05:09:08 +00:00
jenkins-bot
cb4f6e9341 Merge "Removed doCascadeProtectionUpdates method to avoid DB writes on page views" 2015-02-23 01:18:05 +00:00
Ori Livneh
731dd78677 Small optimization to ResourceLoader's canExpandStylesheetWith()
The import CSS at-rule can only go in the very top of a style sheet.
(Technically, the charset at-rule may precede it, but that rule is not valid
for style sheets that are embedded in <style> tags.) So we don't need to scan
the entire CSS text for '@import' -- we just have to make sure that the CSS
text doesn't start with it.

Change-Id: I56c2ebd55d4a7e90dde8e89e76b6d1b52ed004f8
2015-02-22 17:07:36 -08:00