jenkins-bot [Tue, 8 Oct 2013 20:36:45 +0000 (20:36 +0000)]
Merge "Fix revision table cleanup on delete"
Timo Tijhof [Tue, 8 Oct 2013 19:40:00 +0000 (21:40 +0200)]
mediawiki.action.edit.preview: Fix for LiquidThreads hack
LiquidThreads is loading this core module when rendering an
inline edit form. Because the form doesn't have the same ID
as the one in core, this broke after
becd284.
It previously worked because the click event on the button (of
which LQT did duplicate the ID from core) bubbles up to the
document body and thus trigger this private handler of the
core edit preview module.
Change-Id: I9e35d0c48b86e1c9073b68313a8a330c6ea85b86
Translation updater bot [Tue, 8 Oct 2013 19:18:47 +0000 (19:18 +0000)]
Merge "Localisation updates from translatewiki.net."
jenkins-bot [Tue, 8 Oct 2013 19:09:15 +0000 (19:09 +0000)]
Merge "Add file-link "parser" to mw.Title from commons"
Translation updater bot [Tue, 8 Oct 2013 19:00:46 +0000 (19:00 +0000)]
Localisation updates from translatewiki.net.
Change-Id: I331db0fe25638bdab35fbf54d00dd77f93488a7a
Mark Holmquist [Fri, 4 Oct 2013 00:06:53 +0000 (17:06 -0700)]
Add file-link "parser" to mw.Title from commons
Rillke has been amazing and provided us with a first pass at a file URL
parser for MediaWiki:
https://commons.wikimedia.org/wiki/MediaWiki:Gadget-libUtil.js
Hoping to use this for Extension:MultimediaViewer and others in the near
future - potentially replacing patchset Ib69d1ffdfd3b58c2e8e3314940a2cad311b85533
Also tests.
Change-Id: Ie31e6df376bda087e92ec889d54df3374ba96b5e
jenkins-bot [Tue, 8 Oct 2013 18:30:02 +0000 (18:30 +0000)]
Merge "Allow $context->setTitle( null )"
Bryan Davis [Tue, 8 Oct 2013 17:51:32 +0000 (11:51 -0600)]
Add doc comment to Status explaining use
Tim posted a nice explanation of the recommended pattern for using the
Status object to wikitech-l. This change copies that explanation into
the phpdoc comment block of the Status class in an attempt to propagate
the meme.
Change-Id: Ia98543caaa829cad443abf0f0f5038b3de943ef8
jenkins-bot [Tue, 8 Oct 2013 17:31:22 +0000 (17:31 +0000)]
Merge "Fixup parameter type hints"
jenkins-bot [Tue, 8 Oct 2013 17:08:15 +0000 (17:08 +0000)]
Merge "Add method parameter type documentation"
jenkins-bot [Tue, 8 Oct 2013 16:34:13 +0000 (16:34 +0000)]
Merge "Move forceHTTPS check until after wgTitle is setup"
Reedy [Wed, 18 Sep 2013 23:00:47 +0000 (00:00 +0100)]
Added $wgExtensionEntryPointListFiles for use with mergeMessageFileList.php
Going to be used to change target file for labs vs production
Change-Id: Id4b16083435ef7f4fce31861c72889e664d07236
umherirrender [Thu, 2 May 2013 15:28:33 +0000 (17:28 +0200)]
Add list=allfileusages
This allows the client to enumerate through entries of the imagelinks
table.
This can be useful to find images from foreign repos used on the own
wiki.
Change-Id: I2ad0579e3521868d39f7d495ea9c83a2cd9731d6
S Page [Tue, 8 Oct 2013 04:13:19 +0000 (21:13 -0700)]
Fix help string to avoid PHP notice
Escape a $ symbol in help message and rephrase slightly. Without this,
`php maintenance/language/checkDupeMessages.php --help` prints
PHP Notice: Undefined variable: dupeMessages in
language/checkDupeMessages.php on line 56
Change-Id: Ie7c0f07e68cee1f7cd2758f71b09d34e339d4b7b
Translation updater bot [Tue, 8 Oct 2013 00:59:50 +0000 (00:59 +0000)]
Merge "Localisation updates from translatewiki.net."
Aaron Schulz [Mon, 7 Oct 2013 16:38:25 +0000 (09:38 -0700)]
Removed RC query UNION
* MySQL is smart enough that this is no longer needed
Change-Id: If173cdc53599cd02068ce2480ab667c5f9e69b76
jenkins-bot [Tue, 8 Oct 2013 00:23:37 +0000 (00:23 +0000)]
Merge "mediawiki.action.edit.preview: Clean up and optimisation"
jenkins-bot [Tue, 8 Oct 2013 00:17:53 +0000 (00:17 +0000)]
Merge "Add script to purge changed pages from cache"
Timo Tijhof [Mon, 7 Oct 2013 23:01:45 +0000 (01:01 +0200)]
Make .transition mixin take only 1 value and fix usage
Follows-up
99c92a87fc which turned
transition: left 250ms;
transition: margin-left 250ms, padding 250ms
into:
transition: 'left 250ms';
transition: margin-left 250ms padding 250ms
> Invalid CSS property value: 'left 250ms'
> Invalid CSS property value: margin-left 250ms padding 250ms
Removed quotes from 'left 250ms' which was producing invalid CSS.
The @arguments operator in Less joins a variadic list of
arguments by space. In the case of .transition this is a problem
because its values are supposed to be separated by a comma
(like background-image and font-family).
Changing the .transition definition to take only 1 argument
instead of multiple (...). There is no point in supporting
multiple arguments. All it does is it take away our ability to
spot these errors at parse time (Less would be able to throw an
error for passing a 2 arguments to a mixin that only takes 1).
Fixed the invocation with 2 arguments to instead pass 1 argument
that has a comma in it. Both "~'a,b'" and "a, b;" would work here
(doesn't matter) choosing ; here because for consistency with calls
that do use mutiple argments:
foo(~'foo, bar', ~'baz, quux')
foo(foo, bar; baz, quux)
Change-Id: I80786c726a412d6b9e04c384112849e9587990b4
Bryan Davis [Tue, 1 Oct 2013 17:29:56 +0000 (11:29 -0600)]
Add script to purge changed pages from cache
This maintenance script could be used to recover from large HTCP
listener outages and/or network partitions. It searches the database for
pages having revisions occurring within a specified time period,
converts them to full URLs and sends squid/varnish purge messages using
SquidUpdate. A command line option allows specifying a specific
IP:port combination for HTCP purge datagrams which can be used to
isolate the purge announcement to a particular varnish server or data
center.
Co-Authored by: Aaron Schulz <aschulz@wikimedia.org>
Bug: 54647
Change-Id: Id0e95290e83333545e6bb0378cc620c35c653bf9
Translation updater bot [Mon, 7 Oct 2013 21:16:52 +0000 (21:16 +0000)]
Localisation updates from translatewiki.net.
Change-Id: Ib6cdd80506e78608d9d8af15088020528fdec256
jenkins-bot [Mon, 7 Oct 2013 21:13:38 +0000 (21:13 +0000)]
Merge "mediawiki.Title: Fix weird <h1> in constructor description"
Timo Tijhof [Fri, 30 Aug 2013 00:31:37 +0000 (17:31 -0700)]
resourceloader: Support hashes as cache invalidation trigger
For now ResourceLoader will still internally deal with timestamps,
especially because they are easier to max() on the client side
(on the server we could make a hash of different hashes, on the
client that's a bit annoying).
However ResourceLoaderModule#getHashMtime will abstract the logic
we already use in ResourceLoaderLanguageDataModule and have
encouraged others to use, which is to put the timestamp and
hash in Memcached, and use that to observer the hash change and
update the timestamp when it does.
Updated ResourceLoaderLanguageDataModule to make use of this.
Change-Id: Ib051ef41ba239084671c30fd275b8d94099d5d52
csteipp [Mon, 7 Oct 2013 19:47:43 +0000 (12:47 -0700)]
Move forceHTTPS check until after wgTitle is setup
Since the forceHTTPS logic checks if the user is logged in, which calls
all sorts of hooks, some that assume that $wgTitle is setup (like
AbuseFilter for preventing autocreation of usernames), move the
logic down a few lines.
Bug: 55435
Bug: 53498
Change-Id: I53c82921595a9014b555e4ec468e5ba10454cd3a
Timo Tijhof [Mon, 7 Oct 2013 19:38:10 +0000 (21:38 +0200)]
mediawiki.Title: Fix weird <h1> in constructor description
The leading '#' was triggering a Markdown heading instead of a
jsduck reference. Working around by moving the line break.
Change-Id: I8bf2719938c3c4a092ce5499bae0c7b88f4544c1
Brad Jorsch [Mon, 7 Oct 2013 18:58:27 +0000 (14:58 -0400)]
Allow $context->setTitle( null )
If something is messing around with $wgTitle before MediaWiki::main()
sets $wgTitle in the first place, it needs to be able to reset it back
to null to avoid a problem like bug 53498. And to do that properly, it
also needs to be able to clear the title in the RequestContext.
Bug: 55435
Change-Id: I6c763b70bbffa0762ca52e61acf7dc200da4075f
Reedy [Mon, 7 Oct 2013 18:46:02 +0000 (19:46 +0100)]
Fix "Unsupported operand types at thumb.php on line 429"
Return type of $handler->parseParamString() wasn't evaluated,
instead $handler value was compared again
Bug: 55437
Change-Id: Iedb940d9f1ad4d137b9732e7e624e55d05bc2c96
jenkins-bot [Mon, 7 Oct 2013 18:23:53 +0000 (18:23 +0000)]
Merge "Accessibility: Don't remove checkbox outline on focus"
Derk-Jan Hartman [Sun, 25 Aug 2013 13:22:39 +0000 (15:22 +0200)]
Accessibility: Don't remove checkbox outline on focus
Native checkboxes and radiobuttons on Mac OS X are not fully
styleable. Don't remove the focus ring for those elements because it
makes them less accessible.
Also the outline was removed outside of the focus selector, which
isn't really needed.
Change-Id: I716c84b34b5adb26691f0d4ecd13739de7b8bdbf
umherirrender [Sat, 5 Oct 2013 08:25:11 +0000 (10:25 +0200)]
Move release note for meta=filerepoinfo into api section
Follow-Up: I1aaed0895d2a0bc224c82e93975ecf6afd8cb6b8
Change-Id: I83e393aca85ae215f515024322942acafa20462b
Timo Tijhof [Sun, 6 Oct 2013 21:27:37 +0000 (23:27 +0200)]
mediawiki.action.edit.preview: Clean up and optimisation
* Remove redundant inline 'position: absolute' on the spinner.
* Remove trailing white space in jquery.spinner.css.
* Cache #editform query result.
* Remove redundant removeSelectors.join(',') logic.
* White space.
* Move delegate click event listener down from body to #editform
(the common ancestor of the #wpDiff and #wpPreview buttons).
* Remove minHeight (was needed because the spinner was positioned
absolute), which gets rid of the weird white gap for #wikiPreview if
you do live diff instead of live preview.
Change-Id: Icdf975f201947ecadb886057131f2531c68791fb
jenkins-bot [Mon, 7 Oct 2013 17:01:40 +0000 (17:01 +0000)]
Merge "Remove placeholder tests"
Siebrand Mazeland [Mon, 7 Oct 2013 08:59:41 +0000 (10:59 +0200)]
Set 'tooltip-iwiki' as optional
Spotted by Beta16 in
https://translatewiki.net/wiki/Thread:Support/About_MediaWiki:Tooltip-iwiki/en
Change-Id: Ib60dd6072728238684112865a5ee0b015d1f2f0c
Kunal Mehta [Sun, 6 Oct 2013 23:44:04 +0000 (16:44 -0700)]
Remove redundant parentheses
Change-Id: I848e6a055df748ac758082372fe3b86f6f323cc9
Timo Tijhof [Sun, 6 Oct 2013 23:17:29 +0000 (01:17 +0200)]
Follow-up
d94d29a920: Fix typo in release notes
Change-Id: Ic2cb19df45193b260d785fda5acf2ce956b51dde
Timo Tijhof [Sun, 6 Oct 2013 22:25:15 +0000 (00:25 +0200)]
postEdit: Add documentation for hook so it shows up in the index
Follows-up
011ee683a.
Change-Id: I3ce89a91f6a299516dd8dfb93dd5cc5b784fa471
MatmaRex [Sat, 24 Aug 2013 20:37:58 +0000 (22:37 +0200)]
Special:UserLogin UI improvements when user is logged in
* Show a warning about being already logged in above login form
* Show a button pointing to signup form with suitable explanation
Also changed some internal template stuff (s/createAnother/loggedin/).
Bug: 53306
Change-Id: I1672ee09330c231110c4db310a645d1382cc0b59
MatmaRex [Fri, 30 Aug 2013 20:57:58 +0000 (22:57 +0200)]
mediawiki.special.vforms: Information boxes' styles
Only styles appropriate for errorbox were defined, but they were
applied to all boxes - contrary to the comment above, Vector doesn't
have styles for them (they are shared for all skins, and they are
awful), and they were anyway overriden by these due to selector
specificity.
Added styles for successbox and warningbox with composition on the
color wheel very similar to errorbox one, simply rotated and scaled.
Removed misleading comment.
Change-Id: I68d2c9b98a9166f5781fcded0318cca52ed6f2e6
jenkins-bot [Sat, 5 Oct 2013 14:51:45 +0000 (14:51 +0000)]
Merge "(bug 54980) Remove toolbox UserRights if anon user"
addshore [Sat, 5 Oct 2013 14:20:52 +0000 (16:20 +0200)]
(bug 54980) Remove toolbox UserRights if anon user
Change-Id: Ie489ce327a56cf314c9dc525d6bd3eaa39739260
Ori Livneh [Tue, 1 Oct 2013 23:20:45 +0000 (16:20 -0700)]
Make the format of UDP-logged stats configurable
The format of datagrams generated by StatCounter and ProfilerSimpleUDP is not
described by any standard and appears to have been designed for compatibility
with the logging setup of the Wikimedia Foundation, which limits reusability.
This patch adds two configuration variables, $wgUDPProfilerFormatString and
$wgStatsFormatString, that can be used to specify the precise format that
MediaWiki will use. The default values for these variables causes MediaWiki to
generate the same output as before.
The secret evil plan is to change the defaults so that MediaWiki emits metrics
that are compatible with the popular StatsD format (see
<https://github.com/b/statsd_spec>). This would allow us to replace udpprofiler
with a generic StatsD instance instead.
Change-Id: Iaf00811d3f8d6b89c1c68e84fc1f2c93425d5a2d
Translation updater bot [Fri, 4 Oct 2013 21:41:40 +0000 (21:41 +0000)]
Localisation updates from translatewiki.net.
Change-Id: Ic112ae52452378c970d37c0b3061433131f5f55d
jenkins-bot [Fri, 4 Oct 2013 19:39:06 +0000 (19:39 +0000)]
Merge "API: Add output of wgLogo to meta=siteinfo"
Chad Horohoe [Fri, 4 Oct 2013 19:33:58 +0000 (12:33 -0700)]
Remove placeholder tests
They give a false sense of test coverage and nobody's shown any
interest in implementing them.
Change-Id: Id15ddb555e059bb6a76c69ca57d09c91e96e91ce
addshore [Fri, 4 Oct 2013 18:32:16 +0000 (20:32 +0200)]
Remove use of deprecated LoadBalancer pickRandom
Change-Id: If28b6dfe7d70827d1c7f7b3604cea2409b6ec483
jrobson [Wed, 2 Oct 2013 01:02:56 +0000 (18:02 -0700)]
Introduce .transition mixin
Cleanup existing transition rules for readability
Change-Id: I2be09a7a8e7eeb42d8bf80cb033c81867da108a5
jrobson [Thu, 26 Sep 2013 18:43:00 +0000 (11:43 -0700)]
Turn screen.css into screen.less
* Separate external links into own less file to showcase how
many unnecessary css rules we have
* Introduce new mixins to allow embedding for list-style-image
* Replace use of /* embed */ with mediawiki mixins
Change-Id: If79d2d1f72579627597b291eec759441d6763c34
Brion VIBBER [Fri, 4 Oct 2013 18:07:30 +0000 (18:07 +0000)]
Merge "Rewrite collapsibleNav as LESS file"
jenkins-bot [Fri, 4 Oct 2013 18:01:53 +0000 (18:01 +0000)]
Merge "Strip excess newlines from formatting test"
jrobson [Mon, 30 Sep 2013 17:39:29 +0000 (10:39 -0700)]
Rewrite collapsibleNav as LESS file
* Rewrote css file as a LESS file for better maintainability
* Make use of core embed mixin
** Add .background-image-svg mixin for rendering svgs as background images
Change-Id: I72a66553d6ecee5018d4efaabfd0fa0df6c4135f
Brion VIBBER [Fri, 4 Oct 2013 17:53:25 +0000 (17:53 +0000)]
Merge "LESS embeddable(): Use lessc::toBool"
jenkins-bot [Fri, 4 Oct 2013 17:49:32 +0000 (17:49 +0000)]
Merge "Mouseover explanations for interlanguage links in native language"
Chad Horohoe [Fri, 4 Oct 2013 17:44:26 +0000 (10:44 -0700)]
Strip excess newlines from formatting test
The result's basically the same either way, only difference is
things like
"emptyObject": {
},
Are now
"emptyObject": {
},
Results are still pretty, now passes in both Zend and HHVM
Change-Id: I6afa0fd49a7aef3f6b7ca1b4574f3de555521348
Timo Tijhof [Fri, 4 Oct 2013 16:57:35 +0000 (18:57 +0200)]
mw.Title: Add missing dependency on jquery.byteLength
Follows-up
4894793ab.
Bug: 54977
Change-Id: If884324674198e26636785c0e95e5d61fd5c543e
jenkins-bot [Fri, 4 Oct 2013 16:19:33 +0000 (16:19 +0000)]
Merge "Fixed silly unlock bug in LocalFile"
Aaron Schulz [Fri, 4 Oct 2013 16:06:07 +0000 (09:06 -0700)]
Fixed silly unlock bug in LocalFile
* Removed the lock instead of just purging some cache data
bug: 54978
Change-Id: Ida007c28e07b0fe1803ab8ed027bc2ec4f55af19
jenkins-bot [Fri, 4 Oct 2013 14:57:57 +0000 (14:57 +0000)]
Merge "Allow appending text to redirects from moved pages"
Pavel Selitskas [Thu, 29 Nov 2012 10:42:17 +0000 (13:42 +0300)]
Mouseover explanations for interlanguage links in native language
Adds a language name in User's language from CLDR
to an interwiki 'title' attribute. Believed to be
RTL-compilant.
New message added: tooltip-iwiki, added to $preloadedMessages
Bug: 5231
Change-Id: I3dcb00cdc28a10711b6703fa509b8b8d06e325a2
Jackmcbarn [Thu, 3 Oct 2013 15:09:08 +0000 (11:09 -0400)]
Allow appending text to redirects from moved pages
Add message move-redirect-text, which is appended to redirects created by
page moves (empty by default). This could be used on enwiki to automatically
add {{R from move}} while still allowing non-admins to revert the move, for
example.
Change-Id: Ic2158897ce46177b695a7fb90c8ed3349df18bde
Entlinkt [Sat, 28 Sep 2013 17:13:33 +0000 (19:13 +0200)]
Restrict <abbr> formatting to where a title attribute is present
Reasoning:
* It does not make sense to draw attention to an <abbr> element that
doesn't have a title attribute because there is nothing special to
see there.
* It matches Gecko's default stylesheet [1] and the HTML5 style [2].
* It does not negatively impact compatibility, as far as I know
(IE 6 does not support the [title] selector, but does not support
the <abbr> element either).
* <acronym> elements are currently not allowed and won't be because
they are non-conforming in HTML5 (cf. bug 671, comment 37), so this
part of the rule can be dropped.
[1] http://mxr.mozilla.org/mozilla-central/source/layout/style/html.css
[2] http://www.whatwg.org/specs/web-apps/current-work/multipage/rendering.html#phrasing-content-1
Bug: 54729
Change-Id: I1b00ddb7996911e9b477365e7a84458cefd5da90
Siebrand Mazeland [Fri, 4 Oct 2013 00:29:58 +0000 (02:29 +0200)]
Support GENDER for "contribsub2"
Also remove BC code that was added in MediaWiki 1.9. Spotted by Protnet at
https://translatewiki.net/wiki/Thread:Support/About_MediaWiki:Blocklogentry/el/reply
Change-Id: I37eefd1de95d6ef3429403cd351db315bc3ab2bf
Tim Starling [Fri, 4 Oct 2013 04:35:13 +0000 (14:35 +1000)]
Fix revision table cleanup on delete
The ContentHandler branch inappropriately moved this essential
query to content-type-dependent code, despite the fact that revision
table cleanup needs to be done independently of content type. Before
r15707, the revision query was done immediately before the page query,
but it was moved down to allow it to be brought into the same
if (!$dbw->cascadingDeletes() ) block as the link updates. I have moved
it to immediately after the page delete, so that the rollback which has
since been added will not affect the expensive revision table query.
This should fix the database corruption we are seeing on some page
deletions (13 affected pages on enwiki, 14 on nlwiki, etc.)
Bug: 53687
Change-Id: I7a54c4416be07fb8cc7a5698e77927ccb24cbd6e
jenkins-bot [Fri, 4 Oct 2013 03:23:58 +0000 (03:23 +0000)]
Merge "mw.Title: Rewrite from scratch (porting logic from Title.php)"
Ori Livneh [Fri, 4 Oct 2013 00:50:45 +0000 (17:50 -0700)]
LESS embeddable(): Use lessc::toBool
With Ib6bc76736 in place, we have access to lessphp's custom function helpers,
which provide some nice encapsulation for interpreter internals like boolean
nodes. This patch makes embeddable() call $less->toBool() rather than construct
its own AST nodes.
Change-Id: I0a015564dff19f5ced764af182558eb351e3d816
jenkins-bot [Fri, 4 Oct 2013 00:26:48 +0000 (00:26 +0000)]
Merge "Update lessphp to
261f1bd28"
Ori Livneh [Sun, 29 Sep 2013 12:23:28 +0000 (05:23 -0700)]
Update lessphp to
261f1bd28
From https://github.com/leafo/lessphp/blob/
261f1bd28f/lessc.inc.php
Changes,
6e8e724fc7..
261f1bd28f:
*
261f1bd Merge pull request #480 from atdt/master
*
0f85200 Miscellaneous small touch-ups
*
5504066 Improve handling of /* comments */ when 'preserveComments' is set
*
667702c Make function helpers public
Bug: 54673
Change-Id: Ib6bc76736d460081dc8f48aee09ca32066dae296
jenkins-bot [Thu, 3 Oct 2013 23:59:13 +0000 (23:59 +0000)]
Merge "Added wiki ID to getCoalesceLocationInternal()"
Aaron Schulz [Thu, 3 Oct 2013 21:27:10 +0000 (14:27 -0700)]
Added wiki ID to getCoalesceLocationInternal()
Change-Id: Ia1ab1883808b669e3c3b442d860c1c562e984564
jenkins-bot [Thu, 3 Oct 2013 21:06:48 +0000 (21:06 +0000)]
Merge "Avoid extra HEADs for stash clearing"
jenkins-bot [Thu, 3 Oct 2013 18:53:18 +0000 (18:53 +0000)]
Merge "Maintenance: detect missing parent::__construct()"
jenkins-bot [Thu, 3 Oct 2013 18:42:48 +0000 (18:42 +0000)]
Merge "Add missing default true value for 'vector-simplesearch' preference"
Translation updater bot [Thu, 3 Oct 2013 17:57:07 +0000 (17:57 +0000)]
Localisation updates from translatewiki.net.
Change-Id: I7f8298c727621e51c73f689ea5287da44dea3af4
Aaron Schulz [Thu, 3 Oct 2013 16:12:25 +0000 (09:12 -0700)]
Avoid extra HEADs for stash clearing
Change-Id: I96e78b219fe12b43daf4a313eb297b98577ef955
jenkins-bot [Thu, 3 Oct 2013 16:08:29 +0000 (16:08 +0000)]
Merge "Use HPHP_VERSION constant to detect HipHop"
C. Scott Ananian [Thu, 3 Oct 2013 14:53:10 +0000 (10:53 -0400)]
Sync up with Parsoid parserTests.
This now aligns with Parsoid commit
3d6d0723f93e2a838df717b5036e5cd6b0345eca
Change-Id: Iadc98cc4cc33c7725e5fbf4a16df7e1a898aee80
Kevin Israel [Thu, 3 Oct 2013 06:53:30 +0000 (02:53 -0400)]
Maintenance: detect missing parent::__construct()
The first time I forgot to include that line in a maintenance script,
I spent a few minutes debugging "Notice: Undefined variable: IP".
Hopefully, this change will save someone else a few minutes of his
or her own time.
Change-Id: Icd26a5dc59e25d2bcc6da9bf0a2f6e95d494e5a6
jenkins-bot [Thu, 3 Oct 2013 06:34:02 +0000 (06:34 +0000)]
Merge "Removed more FORCE INDEX clauses for logging"
Kevin Israel [Thu, 3 Oct 2013 06:33:27 +0000 (02:33 -0400)]
Use HPHP_VERSION constant to detect HipHop
Follows-up Ic3e769f1fbad4f7ad26dd819406796fee48c6b45.
Change-Id: I0210002c05efd79242b00592639b7be50a79020b
Ori.livneh [Wed, 2 Oct 2013 22:12:22 +0000 (22:12 +0000)]
Merge "Allow AbortLogin hook to override error messages"
Chad Horohoe [Wed, 2 Oct 2013 21:44:24 +0000 (14:44 -0700)]
Remove wfSpecialList()
Has been deprecated for several releases, nothing in Git or SVN
uses it.
Change-Id: I899a0a76a5cb23686caaf6fd244f926a6938fe77
jenkins-bot [Wed, 2 Oct 2013 21:23:18 +0000 (21:23 +0000)]
Merge "Show whether tags are active on Special:Tags"
jenkins-bot [Wed, 2 Oct 2013 21:18:13 +0000 (21:18 +0000)]
Merge "Correct attribution for Wikimedia project visitors and restore grammar"
C. Scott Ananian [Wed, 2 Oct 2013 19:28:37 +0000 (15:28 -0400)]
ParserTests: allow test of precedence between interwiki links and namespaces
Bug: 51680
Change-Id: I8ad82c596139824fb97d513a62513edf2941b958
Brad Jorsch [Wed, 2 Oct 2013 17:46:30 +0000 (13:46 -0400)]
Allow AbortLogin hook to override error messages
The AbortLogin hook has a $msg argument that allows for specifying a
MediaWiki message to display to the user. But this message is only used
when the hook is aborted with LoginForm::ABORTED. There's no reason not
to use this same parameter for the other possible failure constants.
Note this is a slight change in behavior for the hook, as previously the
$msg parameter would be coming in as "login-abort-generic" unless an
earlier hook altered it, while now it will be null.
Change-Id: Ib03a1aed9dfb566a027c31c015aa30619174a6c2
Aaron Schulz [Wed, 2 Oct 2013 17:37:06 +0000 (10:37 -0700)]
Removed more FORCE INDEX clauses for logging
* Same reasons as
7003a7c5e825f391c1a83f8e46cdf332a228d874
bug: 54876
Change-Id: I743bd21e81395c2866b4241730caa8c5990cc73f
jenkins-bot [Wed, 2 Oct 2013 18:11:45 +0000 (18:11 +0000)]
Merge "Installer: remove dependency on JSON extension"
jenkins-bot [Wed, 2 Oct 2013 17:57:45 +0000 (17:57 +0000)]
Merge "Remove convertPlural methods already served by CLDR plural system"
Translation updater bot [Wed, 2 Oct 2013 13:47:57 +0000 (13:47 +0000)]
Localisation updates from translatewiki.net.
Change-Id: Ia5773eca5bdbe62ab8d4123bb417c2f71a6aa9f5
jenkins-bot [Wed, 2 Oct 2013 07:34:21 +0000 (07:34 +0000)]
Merge "Standardise wording of verbs relating to revision deletion"
Aaron Schulz [Tue, 1 Oct 2013 20:53:13 +0000 (13:53 -0700)]
Make sure LocalFile::lock() works for brand new uploads
bug: 54736
Change-Id: I10f950939d34ff5917d168ef1d905c86e2cfc075
Bartosz Dziewoński [Tue, 1 Oct 2013 22:42:58 +0000 (00:42 +0200)]
Add missing default true value for 'vector-simplesearch' preference
It was off and only enabled (unconditionally) by the Vector extension
which is being killed off per bug 45051. The preference was added in
r68177, moved to core in r68224.
Change-Id: Id5e96f5ed9dd532b33bc011104388a39f57277dd
jrobson [Mon, 9 Sep 2013 23:49:39 +0000 (16:49 -0700)]
Vector: Add navigation collapsing feature
* Moved from the Vector extension (removed there in I47950b5375cae38e2).
* Removed bucket testing
* Removed "new" version of collapsible nav
(the language portal splitting feature) as it didn't seem to be active
on any wikis. Can be revived later if considered useful still.
* Killed the vector-collapsiblenav preference
** Usage on Wikimedia wikis:
- 0.008% on en.wikipedia
- 0.02% on de.wikipedia
Bug: 46512
Change-Id: I87149d7e15931f02ab700164e9e1d3d707b5e6a5
Timo Tijhof [Wed, 31 Jul 2013 22:12:16 +0000 (00:12 +0200)]
mw.Title: Rewrite from scratch (porting logic from Title.php)
Changes:
* Add support for fragments.
* Use wgLegalTitleChars instead of the old clean() method
that stripped out characters instead of throwing an exception.
* Implemented various other parts of Title.php to make it more
strict like Title.php. It is still slightly looser, but it
now takes care of the following that Title.php did already:
- Directory patterns ("../" etc.)
- Extra initial colons
- Titles in NS_TALK that don't round-trip to NS_MAIN
- 3 or more consecutive tildes
- Limited title size (255 bytes)
* Extracted parsing logic into a private static #parse method
and introduced mw.Title.newFromText (a constructor that returns
null|Title instead of throwing an exception).
* Extended test suite to cover the added features and fixed bugs.
* Since the PHP test suite was lacking these, added them there
as well.
Bug fixes:
* Fragments are now excluded from the title instead of causing
the input to be invalid or malformed (e.g. "Foo#bar" was being
normalised to "Foo_bar").
* ".com" now parses and round-trips properly. The extension and
rest of title are still separated, but only at the very end
after all other processing, so though title cannot be empty,
since we only do a lazy split afterwards, it will split into
title="", ext="com" internally and join back together when
needed (bug 38081).
* "Example.js " (trailing space after extension) was previously
incorrectly parsed as title=Example.js,ext=null.
* "Foo bar" (multiple consecutive spaces) was transformed
into 1 space correctly, but "Foo___bar" was not. This has been
fixed to match the PHP implementation (it merges underscores
and whitespace of any kind).
Clean up:
* Removed various redundant private helper methods.
* Removed fixNsId as getNsIdByName uses wgNamespaceIds which
always yields a valid value. The fixNsId was verifying
something that was already valid.
* Yoda conditional in Title.php, got rid of.
* Use newFromText in jquery.byteLimit.test. It was previously
using a very basic invalid test (=== '') and no try-catch.
Since we're getting more strict, typing 'User:' results in
an invalid title, which should result in the same behaviour
as it previously did for the lazy === '' check.
Bug: 38081
Change-Id: Ief1c11dabadc2f822065c40be91e04d655933e4f
jenkins-bot [Tue, 1 Oct 2013 20:25:33 +0000 (20:25 +0000)]
Merge "Added comment about not using ignoreErrors()"
Aaron Schulz [Tue, 1 Oct 2013 20:07:59 +0000 (13:07 -0700)]
Added comment about not using ignoreErrors()
* Using this makes it easy to forget to restore the old value, which then
complicates anything that inserts to the DB.
* Also removed mention of the flag from some places.
Change-Id: I838183222518e0d008dee47ec8df6b3f3dc578e9
jenkins-bot [Tue, 1 Oct 2013 19:40:28 +0000 (19:40 +0000)]
Max Semenik [Tue, 1 Oct 2013 18:22:08 +0000 (22:22 +0400)]
Fix comment typos from
5c51cb96eaea76d22b9c48928044a942c4be2feb
Change-Id: I56f37010bce8a325af65eab62e7add232df108f4
Translation updater bot [Tue, 1 Oct 2013 19:19:26 +0000 (19:19 +0000)]
Localisation updates from translatewiki.net.
Change-Id: I901fdf6051c34c1b35cc024b6f8b36dd92f76aaf
jenkins-bot [Tue, 1 Oct 2013 14:09:12 +0000 (14:09 +0000)]
Merge "SearchUpdate should read from master."
jenkins-bot [Tue, 1 Oct 2013 04:46:01 +0000 (04:46 +0000)]
Merge "Add Vary: X-Forwarded-Proto for https redirects"