lhc/web/wiklou.git
9 years agoAdd grammar forms for Russian
Amir E. Aharoni [Sun, 8 Jun 2014 18:55:16 +0000 (21:55 +0300)]
Add grammar forms for Russian

This adds support for the Russian name of Wikimedia Commons.

Change-Id: If531e9ff8f46ac5294b117eec43172b4975e2ad6

9 years agoMerge "Add a file icon for xcf file type"
jenkins-bot [Fri, 4 Jul 2014 10:58:39 +0000 (10:58 +0000)]
Merge "Add a file icon for xcf file type"

9 years agoAdd a file icon for xcf file type
Brian Wolff [Fri, 4 Jul 2014 02:54:47 +0000 (23:54 -0300)]
Add a file icon for xcf file type

This icon comes from the crystal icon set (like all the other
icons here). They are licensed LGPL. See the COPYING file
in the skins/common/images/icons directory.

It was downloaded from
https://upload.wikimedia.org/wikipedia/commons/4/4f/Xcf.png

This goes along with change I127bcb5458, which caused the icon
to be shown for indexed xcf files.

Change-Id: I72aa00c4e605ff67f62f855c1475a07433fd4567

9 years agoMerge "Add unit tests for ffmpeg2theora ogg recognition bug"
Brian Wolff [Fri, 4 Jul 2014 07:59:11 +0000 (07:59 +0000)]
Merge "Add unit tests for ffmpeg2theora ogg recognition bug"

9 years agoAdd unit tests for ffmpeg2theora ogg recognition bug
Brian Wolff [Sun, 29 Jun 2014 23:46:40 +0000 (20:46 -0300)]
Add unit tests for ffmpeg2theora ogg recognition bug

Change-Id: I2e6944ccff3882b9f9ee1ac5ab6f5fea1de9d353
Follow-up: 629169ce9bd7

9 years agoMerge "Do thumb attempt-failures limitting via sha1 instead of name."
jenkins-bot [Fri, 4 Jul 2014 07:47:57 +0000 (07:47 +0000)]
Merge "Do thumb attempt-failures limitting via sha1 instead of name."

9 years agoMerge "Don't try to render indexed xcf images with image magick."
jenkins-bot [Fri, 4 Jul 2014 07:45:14 +0000 (07:45 +0000)]
Merge "Don't try to render indexed xcf images with image magick."

9 years agoMerge "Fix mime detection of easily-confused-with text/plain formats"
jenkins-bot [Fri, 4 Jul 2014 07:43:42 +0000 (07:43 +0000)]
Merge "Fix mime detection of easily-confused-with text/plain formats"

9 years agoMerge "Detect chemical table files: Add them to MIME listings"
jenkins-bot [Fri, 4 Jul 2014 07:19:30 +0000 (07:19 +0000)]
Merge "Detect chemical table files: Add them to MIME listings"

9 years agoDetect chemical table files: Add them to MIME listings
rillke [Sat, 21 Jun 2014 09:09:00 +0000 (11:09 +0200)]
Detect chemical table files: Add them to MIME listings

Adding mol, sdf, rxn, rd and rg file types to mime.types and mime.info
map to make them known to MediaWiki by default.

PHP's own module fileinfo module is not capable detecting Chemical
table files. Instead, they are reported as text/plain.

MediaHandlers can be attached by MIME type only. That's why these
changes are required for [[Extension:MolHandler]] to work.

Change-Id: I017507e4a950b3ce4e6576d12217cd42a337bad6

9 years agoRemove deprecated class FormatExif
umherirrender [Mon, 23 Jun 2014 18:18:47 +0000 (20:18 +0200)]
Remove deprecated class FormatExif

Deprecated and warnings since 1.18

Change-Id: I2461383bb2d3c5fc00ffb5f45bc8e931ed9acb58

9 years agoFix mime detection of easily-confused-with text/plain formats
Brian Wolff [Tue, 24 Jun 2014 19:15:32 +0000 (16:15 -0300)]
Fix mime detection of easily-confused-with text/plain formats

json, csv, and tsv are often detected as text/plain. However that's
not right. This patch causes MediaWiki to look at the file extension
of files detected as text/plain, and if the file extension is
for a "textual" type, use the mime type associated with that extension.

This change also changes the "does mime type match uploaded file
extension" check to use the mime based on the file contents
plus extension, as opposed to just the file contents. Various
documentation suggests this is more appropriate (e.g. line 807
of MimeMagic.php). In my opinion we should use just the file
contents when verifying file is not on blacklist, but use ext
when verifying file type matches extension, and for decided
what handler specific checks to run. Not the detect mime type
with extension doesn't override the detected mime type with
the extension, but only uses the extension if content based
detection is ambigious or not specific enough.

This patch should be reviewed by csteipp before merge for
any potential security implications.

Note: This is partially fixing a regression from 3846d1048766a7,
where previously csv and json files were allowed to be uploaded,
and that change prevented them

Bug: 66036
Bug: 45424
Change-Id: Ib637fe6850a81b26f84dc8c00ab4772f3d3a1f34

9 years agoDon't try to render indexed xcf images with image magick.
Brian Wolff [Fri, 4 Jul 2014 02:07:38 +0000 (23:07 -0300)]
Don't try to render indexed xcf images with image magick.

Image magick doesn't support them.

See some discussion at bug 35622 comment 9

Change-Id: I127bcb5458a4c06f043a4f5d0ae6d70bd7809e64

9 years agoDon't link to PHP @ php.net when running HHVM
Chad Horohoe [Fri, 4 Jul 2014 00:58:43 +0000 (17:58 -0700)]
Don't link to PHP @ php.net when running HHVM

Change-Id: Ifdec12e093fdd29d76ccb4b9e3ec58a6bceb47ed

9 years agoMerge "Fixed broken exception code"
jenkins-bot [Thu, 3 Jul 2014 23:59:11 +0000 (23:59 +0000)]
Merge "Fixed broken exception code"

9 years agoMerge "Use some callable hints on @param docs"
jenkins-bot [Thu, 3 Jul 2014 23:44:08 +0000 (23:44 +0000)]
Merge "Use some callable hints on @param docs"

9 years agoFixed broken exception code
Aaron Schulz [Thu, 3 Jul 2014 23:37:25 +0000 (16:37 -0700)]
Fixed broken exception code

Change-Id: Id399cb22f183d75acc006e698feb161bd12096bd

9 years agoUse some callable hints on @param docs
umherirrender [Thu, 3 Jul 2014 19:20:35 +0000 (21:20 +0200)]
Use some callable hints on @param docs

Callbacks can be given as a string or array, so the hint 'callable' is
used.

Change-Id: I3842606f74c8c3705dffc70bf13e31f44a37fa65

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 3 Jul 2014 18:49:46 +0000 (18:49 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: I19bae9c3074a69f36a12636ce23434681d763c7c

9 years agoMerge "HTMLForm submission callback documentation updates"
jenkins-bot [Thu, 3 Jul 2014 18:26:43 +0000 (18:26 +0000)]
Merge "HTMLForm submission callback documentation updates"

9 years agoMerge "Allow local interwiki links with an empty title part"
jenkins-bot [Thu, 3 Jul 2014 17:46:48 +0000 (17:46 +0000)]
Merge "Allow local interwiki links with an empty title part"

9 years agoMerge "Add ids to the old link and the new link at the move result"
jenkins-bot [Thu, 3 Jul 2014 17:12:07 +0000 (17:12 +0000)]
Merge "Add ids to the old link and the new link at the move result"

9 years agoMerge "SpecialSearch: Fix overlap between results info and search bar"
jenkins-bot [Thu, 3 Jul 2014 15:42:10 +0000 (15:42 +0000)]
Merge "SpecialSearch: Fix overlap between results info and search bar"

9 years agoHTMLForm submission callback documentation updates
Brad Jorsch [Thu, 3 Jul 2014 15:11:04 +0000 (11:11 -0400)]
HTMLForm submission callback documentation updates

The possibilities for the submission callback return value were
documented in three different places, and none were entirely correct.
Related documentation could also use a cleanup.

Change-Id: Ib3621a0d5ba24c481f3117b547bca70d4ca50ba2

9 years agoMerge "Porting file test from browsertests"
jenkins-bot [Thu, 3 Jul 2014 15:16:16 +0000 (15:16 +0000)]
Merge "Porting file test from browsertests"

9 years agoMerge "QA: updates to edit test ported from qa/browsertests"
jenkins-bot [Thu, 3 Jul 2014 15:15:42 +0000 (15:15 +0000)]
Merge "QA: updates to edit test ported from qa/browsertests"

9 years agoMerge "QA: porting login test from /qa/browsertests"
jenkins-bot [Thu, 3 Jul 2014 15:15:25 +0000 (15:15 +0000)]
Merge "QA: porting login test from /qa/browsertests"

9 years agoAdd ids to the old link and the new link at the move result
Amir E. Aharoni [Thu, 3 Jul 2014 14:53:41 +0000 (17:53 +0300)]
Add ids to the old link and the new link at the move result

This is immediately useful for building a GuidedTour
for moving a page, and can be useful for other things as well.

Change-Id: I2765248f61ecd3089a9f4e06571a378e39ec1db3

9 years agotravis: Disable e-mail notifications
Timo Tijhof [Thu, 3 Jul 2014 12:43:44 +0000 (14:43 +0200)]
travis: Disable e-mail notifications

Those with admin access to the GitHub repo get e-mails by default
for build failures.

Change-Id: I1edba0af7f53ed40066cd395fe70daf3c99413eb

9 years agoMerge "jquery.client.test: Remove reference to decommissioned TestSwarm server"
Timo Tijhof [Thu, 3 Jul 2014 12:35:38 +0000 (12:35 +0000)]
Merge "jquery.client.test: Remove reference to decommissioned TestSwarm server"

9 years agoMerge "Make SVG files show "In other resolutions" at all sizes"
jenkins-bot [Thu, 3 Jul 2014 11:40:22 +0000 (11:40 +0000)]
Merge "Make SVG files show "In other resolutions" at all sizes"

9 years agoMove Special:Block-specific CSS to Special:Block CSS file
Chad Horohoe [Thu, 3 Jul 2014 04:58:26 +0000 (21:58 -0700)]
Move Special:Block-specific CSS to Special:Block CSS file

Change-Id: I28c6cafa559e2e9eb50065da5f6d7a6d3061047d

9 years agoUpdate OOjs UI to v0.1.0-pre (85cfc2e735)
James D. Forrester [Thu, 3 Jul 2014 02:33:09 +0000 (19:33 -0700)]
Update OOjs UI to v0.1.0-pre (85cfc2e735)

New changes:
e450f32 Don't transplant disabled stylesheets
85cfc2e Localisation updates from https://translatewiki.net.

Change-Id: I6fe171cf8cd8e066779f6cf43918569906a9efa1

9 years agoUpdate $wgRCFeeds documentation
Reedy [Wed, 2 Jul 2014 20:55:15 +0000 (21:55 +0100)]
Update $wgRCFeeds documentation

Added RedisPubSubFeedEngine, not added to docs in I846036c091c45059a8

Change-Id: Id38e7fef49318bdde2a8cf8719ede52fb7fdb551

9 years agoMerge "Align image frame padding with core"
jenkins-bot [Thu, 3 Jul 2014 01:14:54 +0000 (01:14 +0000)]
Merge "Align image frame padding with core"

9 years agoMerge "WebInstallerOptions: Don't ignore following options if an error is detected"
jenkins-bot [Wed, 2 Jul 2014 23:17:50 +0000 (23:17 +0000)]
Merge "WebInstallerOptions: Don't ignore following options if an error is detected"

9 years agoMerge "WebInstallerOptions: Preserve state of extension checkboxes on error"
jenkins-bot [Wed, 2 Jul 2014 23:08:57 +0000 (23:08 +0000)]
Merge "WebInstallerOptions: Preserve state of extension checkboxes on error"

9 years agoMerge "Move search-specific CSS to search-specific stylesheet"
jenkins-bot [Wed, 2 Jul 2014 23:01:22 +0000 (23:01 +0000)]
Merge "Move search-specific CSS to search-specific stylesheet"

9 years agoMerge "Don't use rclimit preference on Special:Search"
jenkins-bot [Wed, 2 Jul 2014 22:18:04 +0000 (22:18 +0000)]
Merge "Don't use rclimit preference on Special:Search"

9 years agoMerge "Reword security reminder at the top of the release notes"
jenkins-bot [Wed, 2 Jul 2014 22:01:17 +0000 (22:01 +0000)]
Merge "Reword security reminder at the top of the release notes"

9 years agoMove search-specific CSS to search-specific stylesheet
Chad Horohoe [Wed, 2 Jul 2014 21:53:05 +0000 (14:53 -0700)]
Move search-specific CSS to search-specific stylesheet

Should reduce the amount of CSS loaded on all special pages that
don't use them.

Change-Id: I8353f181aa05a9db315a0b82465ece447896f7d5

9 years agoMerge "chunky_png Ruby gem is not used"
jenkins-bot [Wed, 2 Jul 2014 21:08:03 +0000 (21:08 +0000)]
Merge "chunky_png Ruby gem is not used"

9 years agoAlign image frame padding with core
Gabriel Wicke [Wed, 2 Jul 2014 20:53:45 +0000 (13:53 -0700)]
Align image frame padding with core

The Parsoid padding was 1px wider, which was discovered by
https://github.com/subbuss/parsoid_visual_diffs.

Change-Id: I1c63ad0daf434ebe5a234109578ddd5ddc2bc909

9 years agoReword security reminder at the top of the release notes
withoutaname [Sat, 28 Jun 2014 18:30:57 +0000 (11:30 -0700)]
Reword security reminder at the top of the release notes

Change-Id: Ia33f6eb9b2188c8a1624fc06c3830cf916f24264

9 years agoWebInstallerOptions: Don't ignore following options if an error is detected
Bartosz Dziewoński [Wed, 2 Jul 2014 18:29:42 +0000 (20:29 +0200)]
WebInstallerOptions: Don't ignore following options if an error is detected

Change-Id: I025db4624f653c4e52f84364b881c0eff485e069

9 years agoWebInstallerOptions: Preserve state of extension checkboxes on error
Bartosz Dziewoński [Wed, 2 Jul 2014 18:21:02 +0000 (20:21 +0200)]
WebInstallerOptions: Preserve state of extension checkboxes on error

Change-Id: I7713f04653a96641896e997981656cfd582479cc

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 2 Jul 2014 19:34:42 +0000 (19:34 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: Ib189d947865ccc4b15cb617ed5db6045250e3106

9 years agoMerge "Fixed EmptyPass error message"
jenkins-bot [Wed, 2 Jul 2014 18:50:43 +0000 (18:50 +0000)]
Merge "Fixed EmptyPass error message"

9 years agoMerge "De-duplicate pages in replaceInternal"
jenkins-bot [Wed, 2 Jul 2014 18:28:15 +0000 (18:28 +0000)]
Merge "De-duplicate pages in replaceInternal"

9 years agoMake SVG files show "In other resolutions" at all sizes
Brian Wolff [Thu, 22 May 2014 17:44:43 +0000 (14:44 -0300)]
Make SVG files show "In other resolutions" at all sizes

Previously it only showed the sizes smaller than the nominal
size of the svg, which is silly for an infinitely scalabe
vector image.

This splits up the function a bit, in order to be able to
do unit testing.

This also changes the link below SVGs to always be
"Show original file" (show-big-image), which I think makes
more sense anyhow.

Bug: 6834
Bug: 36911
Change-Id: Ic18e555f16940c658842148c155771ef31ac5db9

9 years agojquery.client.test: Remove reference to decommissioned TestSwarm server
Timo Tijhof [Wed, 2 Jul 2014 16:41:42 +0000 (18:41 +0200)]
jquery.client.test: Remove reference to decommissioned TestSwarm server

The builds were periodically purged anyway, and this install in general was
already decommissioned in 2012. And whatever ghost was left is now gone
for good as Toolserver accounts are disabled.

Change-Id: Iec7d9cbfe92981cddc56f296a265287a168cc5d9

9 years agoUpdate OOjs UI to v0.1.0-pre (432a76f7d4)
James D. Forrester [Wed, 2 Jul 2014 16:19:00 +0000 (09:19 -0700)]
Update OOjs UI to v0.1.0-pre (432a76f7d4)

New changes:
ebfa365 Generate RTL stylesheets with CSSJanus
da83ad2 Set tabindex on button <div> instead of <a>
e2a6bb1 Add tabindex=0 and role=button to tool links
432a76f Run node-svgo to crush all SVGs whilst retaining readibility

Change-Id: Ieb775472b05acf42aada190a49f9f768ddcd5084

9 years agoQA: need login tags for Jenkins build
Cmcmahon [Wed, 2 Jul 2014 15:37:10 +0000 (08:37 -0700)]
QA: need login tags for Jenkins build

Change-Id: I6663c6f6f59d692a9825ff8b462b30e1b2214ae0

9 years agoMerge "Make the URL input on Special:LinkSearch ltr by default"
jenkins-bot [Wed, 2 Jul 2014 14:07:28 +0000 (14:07 +0000)]
Merge "Make the URL input on Special:LinkSearch ltr by default"

9 years agoMerge "Workaround image magick issue with greyscale xcf files"
jenkins-bot [Wed, 2 Jul 2014 13:58:28 +0000 (13:58 +0000)]
Merge "Workaround image magick issue with greyscale xcf files"

9 years agochunky_png Ruby gem is not used
Željko Filipin [Wed, 2 Jul 2014 13:55:58 +0000 (15:55 +0200)]
chunky_png Ruby gem is not used

Also fixed the order of gems in env.rb and updated Ruby gems in
Gemfile.lock.

Change-Id: I1ff294a50f37373bfdd3d04404c498e94b6f79ba

9 years agoFixed EmptyPass error message
Željko Filipin [Wed, 2 Jul 2014 13:50:58 +0000 (15:50 +0200)]
Fixed EmptyPass error message

mediawiki_api Ruby gem needs user password, but it is only set if the
scenario has @login Cucumber tag.

The entire error message: EmptyPass (MediawikiApi::LoginError)

For the entire stack trace see

1:
https://integration.wikimedia.org/ci/view/BrowserTests/job/browsertests-
Core-en.wikipedia.beta.wmflabs.org-linux-firefox-sauce/14/consoleFull

Change-Id: Ib5c297d9bfc1ca953d3aec27208fb99143fec011

9 years agoSpecialSearch: Fix overlap between results info and search bar
Chad Horohoe [Wed, 2 Jul 2014 01:33:48 +0000 (18:33 -0700)]
SpecialSearch: Fix overlap between results info and search bar

Followup to 1896d06, lost a clear:both in the process.

Bug: 67184
Change-Id: If0b6df347315bfe5b6f9a7aa9c6730cbdf44fd38

9 years agoNew hook, AfterParserFetchFileAndTitle
Max Semenik [Fri, 13 Jun 2014 23:08:52 +0000 (16:08 -0700)]
New hook, AfterParserFetchFileAndTitle

It is needed for PageImages to collect information about galleries, improving results
for Commons mainspace.

Bug: 66510
Change-Id: I3136d648ef2c1841767db0ab33855cd168e3de3e

9 years agoMerge "SpecialSearch: Fix pagination"
jenkins-bot [Wed, 2 Jul 2014 00:04:55 +0000 (00:04 +0000)]
Merge "SpecialSearch: Fix pagination"

9 years agoMerge "Database: Generalise SQL before writing to debug log"
jenkins-bot [Tue, 1 Jul 2014 21:38:39 +0000 (21:38 +0000)]
Merge "Database: Generalise SQL before writing to debug log"

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 1 Jul 2014 20:21:26 +0000 (20:21 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: I39205dcbe72128c4d2978282309d208f059395fd

9 years agoProperly count actions in Special:ActiveUsers
Brad Jorsch [Tue, 1 Jul 2014 19:53:59 +0000 (15:53 -0400)]
Properly count actions in Special:ActiveUsers

The cache of active users maintained by Special:ActiveUsers filters out
certain actions, but the displayed action count does not. Fix this.

Change-Id: Ifb9035a08328587c43c46520c5062602b9b9c6f5

9 years agoDatabase: Generalise SQL before writing to debug log
Timo Tijhof [Tue, 1 Jul 2014 19:38:53 +0000 (21:38 +0200)]
Database: Generalise SQL before writing to debug log

The log often contains stuff like the following, where the trimmed
snippet can span many many lines:

* DatabaseBase::query: Writes done: INSERT IGNORE INTO `msg_resource`
   (mr_lang,mr_resource,mr_blob,mr_timestamp) VALUES ('۶?2x?ptt?`0<snip>?`0??O?')
* DatabaseBase::query: Writes done: REPLACE INTO `objectcache`
   (keyname,value,exptime) VALUES ('۶?2x?ptt?`0<snip>?`0??O ?`???`0??O ?`???`0?')

Bug: 67382
Change-Id: I76ca042f166fed56d86df15f788702384d48064c

9 years agoSpecialSearch: Fix pagination
Chad Horohoe [Tue, 1 Jul 2014 19:28:53 +0000 (12:28 -0700)]
SpecialSearch: Fix pagination

This basically reverts f4357b6 but fixes it while we're here. Requesting
one extra result causes extra load and weird queries against the search
backend...all to be thrown away. Plus it's showing "Results 1-21 of N"
when we're only showing 20 which is a regression.

All search backends implement getTotalHits() so use that count instead
to figure out if we're on the last page.

Change-Id: Ib38b1e124bea7133f48209ef8af1b1e26b4dba75

9 years agoQA: updates to edit test ported from qa/browsertests
Cmcmahon [Tue, 1 Jul 2014 19:26:57 +0000 (12:26 -0700)]
QA: updates to edit test ported from qa/browsertests

Change-Id: I2ceae6ee6f98df78c12d257fd6503f5bf6395284

9 years agoMerge "API: Fix queries for list=allusers&auactiveusers"
jenkins-bot [Tue, 1 Jul 2014 19:14:54 +0000 (19:14 +0000)]
Merge "API: Fix queries for list=allusers&auactiveusers"

9 years agoMerge "vector/jquery.ui.core.css: Update rule for .ui-helper-hidden-accessible"
jenkins-bot [Tue, 1 Jul 2014 19:03:25 +0000 (19:03 +0000)]
Merge "vector/jquery.ui.core.css: Update rule for .ui-helper-hidden-accessible"

9 years agovector/jquery.ui.core.css: Update rule for .ui-helper-hidden-accessible
rillke [Tue, 1 Jul 2014 16:08:19 +0000 (18:08 +0200)]
vector/jquery.ui.core.css: Update rule for .ui-helper-hidden-accessible

A Blink rendering bug causes dialogs to vanish in Chrome and Opera Next
with current CSS (bug 67243).

The file resources/lib/jquery.ui/themes/smoothness/jquery.ui.core.css
(from the default jquery.ui theme, 'smoothness') was used as a template.

Upstream commits:
* https://github.com/jquery/jquery-ui/commit/a9d854967f0
* https://github.com/jquery/jquery-ui/commit/48e0aa0fd27

Bug: 67243
Change-Id: Ib099282484bb29f5d33208be843686bf3ca11366

9 years agoMerge "API: Fix setnotificationtimestamp with no pages given"
jenkins-bot [Tue, 1 Jul 2014 17:44:34 +0000 (17:44 +0000)]
Merge "API: Fix setnotificationtimestamp with no pages given"

9 years agoMerge "ApiOptionsTest: Simplify hook restoration"
jenkins-bot [Tue, 1 Jul 2014 17:26:52 +0000 (17:26 +0000)]
Merge "ApiOptionsTest: Simplify hook restoration"

9 years agoMerge "UserTest: Cover User::isIP and User::isValidUserName better"
jenkins-bot [Tue, 1 Jul 2014 17:24:26 +0000 (17:24 +0000)]
Merge "UserTest: Cover User::isIP and User::isValidUserName better"

9 years agoFixed typo
Kartik Mistry [Tue, 1 Jul 2014 15:56:13 +0000 (15:56 +0000)]
Fixed typo

unkown -> unknown

Change-Id: Ibbe73853258fd476d4e6f1b28dce27a20233f58f

9 years agoApiOptionsTest: Simplify hook restoration
Timo Tijhof [Tue, 1 Jul 2014 16:32:05 +0000 (18:32 +0200)]
ApiOptionsTest: Simplify hook restoration

Change-Id: I2afc35b45caf9ddfd34fb0bba0839987b7fb2ed4

9 years agoUserTest: Cover User::isIP and User::isValidUserName better
Timo Tijhof [Tue, 1 Jul 2014 16:31:07 +0000 (18:31 +0200)]
UserTest: Cover User::isIP and User::isValidUserName better

Change-Id: I4663c37871492c1415152b2af0fda4f6de4f212f

9 years agoAPI: Fix setnotificationtimestamp with no pages given
Brad Jorsch [Sat, 4 May 2013 12:34:41 +0000 (08:34 -0400)]
API: Fix setnotificationtimestamp with no pages given

When newerthanrevid or torevid is used and no pages are given, do not
throw a fatal PHP error.

When no pages are given in other modes, do not return a database error.

Bug: 48071
Change-Id: I5abcdf0fa20486f1198d1cc111461b3088a311df

9 years agoMerge "Removes 'languageshtml' property in mediawiki API's 'parse' action"
jenkins-bot [Tue, 1 Jul 2014 15:00:45 +0000 (15:00 +0000)]
Merge "Removes 'languageshtml' property in mediawiki API's 'parse' action"

9 years agomediawiki.searchSuggest: Enable for iPhone and iPod touch
paladox [Tue, 1 Jul 2014 13:53:22 +0000 (13:53 +0000)]
mediawiki.searchSuggest: Enable for iPhone and iPod touch

* This removes iPhone and iPod touch from browser blacklist.
* Similar to f64a3c26c6 in WikiEditor.
* it requires iOS 6 or later to work.

Change-Id: I46913bb6d360d6b0994b0585c0064f16f1ed460b

9 years agoRemoves 'languageshtml' property in mediawiki API's 'parse' action
Rohan [Tue, 1 Jul 2014 13:34:33 +0000 (19:04 +0530)]
Removes 'languageshtml' property in mediawiki API's 'parse' action

Bug: 67149
Change-Id: Ib1dfa0d04380839bbe474cbb5c0a9b6af09b8371

9 years agoMerge "Setup.php: Move hacky skin requires higher up"
jenkins-bot [Tue, 1 Jul 2014 13:53:22 +0000 (13:53 +0000)]
Merge "Setup.php: Move hacky skin requires higher up"

9 years agoMerge "Function type hints for LinkHolderArray.php"
jenkins-bot [Tue, 1 Jul 2014 13:53:18 +0000 (13:53 +0000)]
Merge "Function type hints for LinkHolderArray.php"

9 years agoSetup.php: Move hacky skin requires higher up
Bartosz Dziewoński [Tue, 1 Jul 2014 13:39:46 +0000 (15:39 +0200)]
Setup.php: Move hacky skin requires higher up

Some of the setup code in some of the configurations apparently depends
on all extensions and skins being already required by the point
Setup.php is being loaded. We ran into issues with LocalisationCache.

Bug: 67318
Change-Id: Idde13c2e835a9969593a4716a62b392d4c1388d6

9 years agoMerge "Improve Database related documentation a bit"
jenkins-bot [Tue, 1 Jul 2014 11:20:08 +0000 (11:20 +0000)]
Merge "Improve Database related documentation a bit"

9 years agoMerge "Make the global objects documentation consistent in Setup.php"
jenkins-bot [Tue, 1 Jul 2014 11:18:05 +0000 (11:18 +0000)]
Merge "Make the global objects documentation consistent in Setup.php"

9 years agoMerge "Documentation improvements in ChangeTags.php"
jenkins-bot [Tue, 1 Jul 2014 11:16:22 +0000 (11:16 +0000)]
Merge "Documentation improvements in ChangeTags.php"

9 years agoMerge "Don't use isset() to check for null"
jenkins-bot [Tue, 1 Jul 2014 11:16:07 +0000 (11:16 +0000)]
Merge "Don't use isset() to check for null"

9 years agoImprove Database related documentation a bit
Alexandre Emsenhuber [Sat, 10 May 2014 09:26:15 +0000 (11:26 +0200)]
Improve Database related documentation a bit

- $wgDBport is also for MSSQL
- "type" key of $wgDBservers is not only "mysql" and "postgres"
- Note that $wgDBssl, $wgDBcompress and $wgDebugDumpSql only
  work in certain cases and mention how to emulate them otherwise

Change-Id: Id863da8c87308d06e0070877ac0af26d03be4faf

9 years agoDe-duplicate pages in replaceInternal
Reedy [Tue, 1 Jul 2014 00:44:04 +0000 (01:44 +0100)]
De-duplicate pages in replaceInternal

Change-Id: If534308040201f0c4f9d315fae508c7dd3f53ee9

9 years agoFunction type hints for LinkHolderArray.php
Reedy [Tue, 1 Jul 2014 00:40:19 +0000 (01:40 +0100)]
Function type hints for LinkHolderArray.php

Change-Id: I5e429baab774a790b3558732f9c87637adfbe4ce

9 years agoImproved DB handling in LCStoreDB
Aaron Schulz [Tue, 10 Jun 2014 22:13:41 +0000 (15:13 -0700)]
Improved DB handling in LCStoreDB

* Only do the DB inserts in finishWrite(). Previously this would
  COMMIT there but would spread out queries throughout the set()
  calls. This pushes all the contention down to the last step.

Change-Id: Ia8afb79a8328c18a7d8a386bcd15a5074007d52e

9 years agoQA: porting login test from /qa/browsertests
Cmcmahon [Mon, 30 Jun 2014 23:56:46 +0000 (16:56 -0700)]
QA: porting login test from /qa/browsertests

Tested in local bare wiki, beta hewiki and enwiki

Change-Id: Icf060de7697cb43d9a8d28c036d4efcbdfd64720

9 years agoMerge "mediawiki.feedback: Don't use deprecated calling convention for mw.Api#newSection"
jenkins-bot [Mon, 30 Jun 2014 22:02:22 +0000 (22:02 +0000)]
Merge "mediawiki.feedback: Don't use deprecated calling convention for mw.Api#newSection"

9 years agomediawiki.feedback: Don't use deprecated calling convention for mw.Api#newSection
Bartosz Dziewoński [Mon, 30 Jun 2014 21:43:00 +0000 (23:43 +0200)]
mediawiki.feedback: Don't use deprecated calling convention for mw.Api#newSection

Change-Id: I82e69a19f1d4416d456521c1233d13a349fe457e

9 years agoAdd SpecialPagesWithProp::prefixSearchSubpages
umherirrender [Fri, 13 Jun 2014 19:16:37 +0000 (21:16 +0200)]
Add SpecialPagesWithProp::prefixSearchSubpages

This shows the existing props as subpages on search suggestion

Change-Id: I3d35474bcf840a6feede8079642d83074874c6f3

9 years agoMerge "Localisation updates from https://translatewiki.net."
Translation updater bot [Mon, 30 Jun 2014 20:40:58 +0000 (20:40 +0000)]
Merge "Localisation updates from https://translatewiki.net."

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 30 Jun 2014 20:36:36 +0000 (20:36 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: I77bfdae2686c736fbd1b9bd44cfc690d9e4bad13

9 years agoMerge "qunit.completenessTest: Ignore mw.loader.moduleRegistry"
jenkins-bot [Mon, 30 Jun 2014 20:30:52 +0000 (20:30 +0000)]
Merge "qunit.completenessTest: Ignore mw.loader.moduleRegistry"

9 years agoMerge "qunit.completenessTest: Suppress mw.log.warn in walkTheObject"
jenkins-bot [Mon, 30 Jun 2014 20:30:39 +0000 (20:30 +0000)]
Merge "qunit.completenessTest: Suppress mw.log.warn in walkTheObject"

9 years agoMerge "qunit.completenessTest: Unbreak regular functions with static methods"
jenkins-bot [Mon, 30 Jun 2014 20:30:10 +0000 (20:30 +0000)]
Merge "qunit.completenessTest: Unbreak regular functions with static methods"

9 years agoDon't use isset() to check for null
Alexandre Emsenhuber [Mon, 30 Jun 2014 19:51:29 +0000 (21:51 +0200)]
Don't use isset() to check for null

$wgLocalTZoffset is defined in DefaultSettings.php so it is always set.

Change-Id: I86518176b30da4e13f6dbfde8f1c77c8ced58d9f