lhc/web/wiklou.git
9 years agowfRunHooks() -> Hooks::run() in maintenance scripts
Chad Horohoe [Tue, 28 Apr 2015 04:41:39 +0000 (21:41 -0700)]
wfRunHooks() -> Hooks::run() in maintenance scripts

Change-Id: I6550bca3a6a3a6cd67bb1ed94c09805deed86dbc

9 years agoMerge "api.php: wfRunHooks() → Hooks::run()"
jenkins-bot [Tue, 28 Apr 2015 04:34:56 +0000 (04:34 +0000)]
Merge "api.php: wfRunHooks() → Hooks::run()"

9 years agoMerge "Fix @return documentation in WANObjectCache::prefixCacheKeys()"
jenkins-bot [Tue, 28 Apr 2015 04:25:21 +0000 (04:25 +0000)]
Merge "Fix @return documentation in WANObjectCache::prefixCacheKeys()"

9 years agoMerge "API: Fix parameter interpretation in ApiFeedRecentChanges"
jenkins-bot [Tue, 28 Apr 2015 04:24:44 +0000 (04:24 +0000)]
Merge "API: Fix parameter interpretation in ApiFeedRecentChanges"

9 years agoFix @return documentation in WANObjectCache::prefixCacheKeys()
Kunal Mehta [Mon, 27 Apr 2015 20:03:50 +0000 (13:03 -0700)]
Fix @return documentation in WANObjectCache::prefixCacheKeys()

Change-Id: Iff27ad3b034b4702f329437950b69731de29171c

9 years agoMerge "Remove throws from Title::getContentModel()"
jenkins-bot [Mon, 27 Apr 2015 23:09:02 +0000 (23:09 +0000)]
Merge "Remove throws from Title::getContentModel()"

9 years agoMerge "Fixed undefined variable in addTagsAccompanyingChangeWithChecks()"
jenkins-bot [Mon, 27 Apr 2015 23:04:36 +0000 (23:04 +0000)]
Merge "Fixed undefined variable in addTagsAccompanyingChangeWithChecks()"

9 years agoMerge "Use array_merge instead of the plus operator so that hooked functions are...
jenkins-bot [Mon, 27 Apr 2015 22:54:05 +0000 (22:54 +0000)]
Merge "Use array_merge instead of the plus operator so that hooked functions are able to override the ORDER BY condition"

9 years agoapi.php: wfRunHooks() → Hooks::run()
Kunal Mehta [Mon, 27 Apr 2015 22:43:49 +0000 (15:43 -0700)]
api.php: wfRunHooks() → Hooks::run()

Change-Id: I199fff17ff574d19701c354ee29bbb8e307e5665

9 years agoFixed undefined variable in addTagsAccompanyingChangeWithChecks()
Aaron Schulz [Mon, 27 Apr 2015 22:43:41 +0000 (15:43 -0700)]
Fixed undefined variable in addTagsAccompanyingChangeWithChecks()

Change-Id: I53d9147fb51e354305b1d1739545c35228d66522

9 years agoUse array_merge instead of the plus operator so that hooked functions are
Jack Phoenix [Sun, 26 Apr 2015 22:29:57 +0000 (01:29 +0300)]
Use array_merge instead of the plus operator so that hooked functions are
able to override the ORDER BY condition

This is needed to implement wikiHow's "reverse order" option cleanly,
without any core hacks. Without this changeset, you can hook into
ChangesListSpecialPageQuery hook, but it will be impossible to override
the ORDER BY conditions to get rid of the DESC sort order when the reverse
param is set to 1 in the URL.

For a live example of the feature in question, see
http://www.wikihow.com/Special:RecentChanges (tick the "reverse order"
box, press button and take a look at the results).
For the code behind this feature, see
/extensions/wikihow/hooks/SpecialPagesHooks.php and
/extensions/wikihow/hooks/WikihowHooks.php on the wikiHow codebase.

Change-Id: I2177aed9e4807b90cbde4baf33083da492d3d194

9 years agoMerge "Fixed default $wgMainWANCache to trigger Setup.php logic"
jenkins-bot [Mon, 27 Apr 2015 22:15:54 +0000 (22:15 +0000)]
Merge "Fixed default $wgMainWANCache to trigger Setup.php logic"

9 years agoFixed default $wgMainWANCache to trigger Setup.php logic
Aaron Schulz [Mon, 27 Apr 2015 21:46:44 +0000 (14:46 -0700)]
Fixed default $wgMainWANCache to trigger Setup.php logic

Change-Id: I8a5b2f5bd41bfc58568f1a2d96d74ddd5d8d86ed

9 years agoAdded ObjectCache::getMainWANInstance() helper method
Aaron Schulz [Mon, 27 Apr 2015 21:23:32 +0000 (14:23 -0700)]
Added ObjectCache::getMainWANInstance() helper method

Change-Id: I3d8d93b3bb6f7e06fae7adc694e6d4d851b2d8c2

9 years agoMerge "Fixed transaction error while undeleting revdeleted files"
jenkins-bot [Mon, 27 Apr 2015 20:33:49 +0000 (20:33 +0000)]
Merge "Fixed transaction error while undeleting revdeleted files"

9 years agoMerge "Cleaned up a few exceptions and IDE errors in BagOStuff"
jenkins-bot [Mon, 27 Apr 2015 20:28:41 +0000 (20:28 +0000)]
Merge "Cleaned up a few exceptions and IDE errors in BagOStuff"

9 years agoMerge "Fixed getLagTimes() locking"
jenkins-bot [Mon, 27 Apr 2015 20:28:07 +0000 (20:28 +0000)]
Merge "Fixed getLagTimes() locking"

9 years agoMerge "Moved WAN cache and relayer to /libs"
jenkins-bot [Mon, 27 Apr 2015 20:25:34 +0000 (20:25 +0000)]
Merge "Moved WAN cache and relayer to /libs"

9 years agoCleaned up a few exceptions and IDE errors in BagOStuff
Aaron Schulz [Mon, 27 Apr 2015 19:55:19 +0000 (12:55 -0700)]
Cleaned up a few exceptions and IDE errors in BagOStuff

Change-Id: I7ae88009f50c259c20572349b5d01480e36f7cb8

9 years agoFixed getLagTimes() locking
Aaron Schulz [Mon, 27 Apr 2015 20:14:21 +0000 (13:14 -0700)]
Fixed getLagTimes() locking

* Previously it deleted the value it just cached due to a missing suffix,
  which would lead to connection spam to get the new lag values.

Change-Id: I1040b2b87d3d4ddd7c368291cab87daf4227c2d0

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 27 Apr 2015 19:42:09 +0000 (21:42 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I073cc1399e22fb5c2dd5fc628bebb1cfe02b798d

9 years agoMoved WAN cache and relayer to /libs
Aaron Schulz [Mon, 27 Apr 2015 19:35:58 +0000 (12:35 -0700)]
Moved WAN cache and relayer to /libs

Change-Id: I9586d22890ce1cda7f74869ff701de73d65eaaef

9 years agoMerge "API: Remove metadata keys from indexpageids output"
jenkins-bot [Mon, 27 Apr 2015 17:54:28 +0000 (17:54 +0000)]
Merge "API: Remove metadata keys from indexpageids output"

9 years agoUpdate OOjs UI to v0.10.1
James D. Forrester [Mon, 27 Apr 2015 17:23:52 +0000 (10:23 -0700)]
Update OOjs UI to v0.10.1

Release notes:
 https://git.wikimedia.org/blob/oojs%2Fui.git/v0.10.1/History.md

Change-Id: If390a691c73491be4f080e70788b6b8b8f698be0

9 years agoRemove throws from Title::getContentModel()
Florianschmidtwelzow [Mon, 27 Apr 2015 09:51:53 +0000 (11:51 +0200)]
Remove throws from Title::getContentModel()

ContentHandler::getDefaultModelFor() always returns a contentmodel,
so this exception is never thrown.

Change-Id: I7678964f229da8fcd15eb49e9e8c8e9a258e35a1

9 years agoMerge "Added $wgJobSerialCommitThreshold setting"
jenkins-bot [Mon, 27 Apr 2015 08:29:46 +0000 (08:29 +0000)]
Merge "Added $wgJobSerialCommitThreshold setting"

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 26 Apr 2015 19:49:26 +0000 (21:49 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Icd09897d70a253338e09ff0eb2e20c4c229a8245

9 years agoFixed transaction error while undeleting revdeleted files
Aaron Schulz [Sun, 26 Apr 2015 17:19:19 +0000 (10:19 -0700)]
Fixed transaction error while undeleting revdeleted files

Bug: T97222
Change-Id: I16cdf228a517e93ac71ccda243b9e47b68ad7717

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 25 Apr 2015 20:26:39 +0000 (22:26 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Ib8aa14e1dec9ee472abc25f38e77600544fd41a3

9 years agoDon't load XML metadata on DjVu thumb generation
Gabriel Wicke [Sat, 25 Apr 2015 20:03:20 +0000 (13:03 -0700)]
Don't load XML metadata on DjVu thumb generation

As described in T96360, scaling of DjVu files loads huge XML blobs from the
database for no apparent reason. This caused several outages by overloading
the database.

This patch simply removes the XML fetching & associated check.

Bug: T96360

Change-Id: I99d90b569bf9a6b6492ecca23b1b00267b0fa0ab

9 years agoAPI: Fix parameter interpretation in ApiFeedRecentChanges
Brad Jorsch [Sat, 25 Apr 2015 11:20:43 +0000 (07:20 -0400)]
API: Fix parameter interpretation in ApiFeedRecentChanges

ApiFeedRecentChanges uses special page logic (eew) to do its thing.
Lacking the time at the moment to refactor the business logic, let's at
least pass the parsed parameters in via a FauxRequest instead of
allowing the special page logic to do its own interpretation of the raw
parameters.

This makes it so all recognized timestamp formats are supported (instead
of only TS_MW) and fixes the interpretation of booleans to match API
standards.

Bug: T97213
Change-Id: Ia254e36b5df2e552e283fb57ce859d6478908bd9

9 years agoDocument IContextSource->msg
Matthew Flaschen [Sat, 25 Apr 2015 04:09:51 +0000 (00:09 -0400)]
Document IContextSource->msg

Change-Id: I4cc922c61f77bbb7cd4ece94f28d927c4753c24e

9 years agoMerge "ApiEditPage: Fetch content model from article, not title"
jenkins-bot [Sat, 25 Apr 2015 03:40:46 +0000 (03:40 +0000)]
Merge "ApiEditPage: Fetch content model from article, not title"

9 years agoMerge "Made wfReadOnlyReason catch DB connection errors"
jenkins-bot [Sat, 25 Apr 2015 02:16:04 +0000 (02:16 +0000)]
Merge "Made wfReadOnlyReason catch DB connection errors"

9 years agoqunit: Remove mwlogenv feature
Timo Tijhof [Sat, 25 Apr 2015 01:09:07 +0000 (02:09 +0100)]
qunit: Remove mwlogenv feature

I added this in the JSTesting branch back in SVN (r107521, merged in
r107919 for MediaWiki 1.19.0).

It was mostly for debugging the setup/teardown in the branch. It never
had much practical use.

Change-Id: I8d6eb9e06ad070c23cb9c9041b5cf4143ee6ac0b

9 years agoMerge "API: Improve queries for prop=revisions in enum mode"
jenkins-bot [Fri, 24 Apr 2015 23:00:58 +0000 (23:00 +0000)]
Merge "API: Improve queries for prop=revisions in enum mode"

9 years agoAPI: Improve queries for prop=revisions in enum mode
Brad Jorsch [Tue, 3 Feb 2015 16:53:27 +0000 (11:53 -0500)]
API: Improve queries for prop=revisions in enum mode

This reworks the queries to better use the indexes available, and at the
same time sorts results by rev_timestamp like they always should have
been rather than rev_id. See T88084 for details.

This also takes the opportunity to replace !is_null with !== null, since
it was annoying me while writing this.

Bug: T88084
Bug: T91883
Change-Id: Ie175c6014e75848e9dda6b413175c8575d1ef6af

9 years agoMerge "Drop unused FormatMetadata::flattenArray method"
jenkins-bot [Fri, 24 Apr 2015 22:42:19 +0000 (22:42 +0000)]
Merge "Drop unused FormatMetadata::flattenArray method"

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 24 Apr 2015 22:23:10 +0000 (00:23 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I6732d53f845fda7bebd133a094cbd27578532504

9 years agoMerge "Allow setting MySQL session variables via config"
jenkins-bot [Fri, 24 Apr 2015 20:57:41 +0000 (20:57 +0000)]
Merge "Allow setting MySQL session variables via config"

9 years agoMade wfReadOnlyReason catch DB connection errors
Aaron Schulz [Fri, 24 Apr 2015 20:52:32 +0000 (13:52 -0700)]
Made wfReadOnlyReason catch DB connection errors

Change-Id: I4e960d9bd751b2a6f95f08861fc8ed360af4a04a

9 years agoresourceloader: Add logging for T94810
Timo Tijhof [Fri, 24 Apr 2015 19:43:50 +0000 (20:43 +0100)]
resourceloader: Add logging for T94810

Bug: T94810
Change-Id: Ibedc31659ed91262bca115101136fe60df6c5134

9 years agoMerge "Moved DBConnRef to a separate file"
Aaron Schulz [Fri, 24 Apr 2015 19:32:18 +0000 (19:32 +0000)]
Merge "Moved DBConnRef to a separate file"

9 years agoAdded $wgJobSerialCommitThreshold setting
Aaron Schulz [Wed, 22 Apr 2015 06:13:31 +0000 (23:13 -0700)]
Added $wgJobSerialCommitThreshold setting

* This is used to avoid lag by certain jobs

Bug: T95501
Change-Id: Id707c9a840fa23d56407e03aaae4e25149a1f906

9 years agoMerge "Remove install-phpunit.sh"
jenkins-bot [Fri, 24 Apr 2015 18:14:50 +0000 (18:14 +0000)]
Merge "Remove install-phpunit.sh"

9 years agoAllow setting MySQL session variables via config
Aaron Schulz [Fri, 24 Apr 2015 18:07:02 +0000 (11:07 -0700)]
Allow setting MySQL session variables via config

Change-Id: I39c7e0f5ffe53a3fb15da489f4dddc36af99a4b3

9 years agoMerge "Fix category column count regression"
jenkins-bot [Fri, 24 Apr 2015 18:03:02 +0000 (18:03 +0000)]
Merge "Fix category column count regression"

9 years agoMoved DBConnRef to a separate file
Aaron Schulz [Fri, 24 Apr 2015 17:00:22 +0000 (10:00 -0700)]
Moved DBConnRef to a separate file

Change-Id: I9c8570aefb8927a3d69b7fd446165f6e8661e84d

9 years agoRemove install-phpunit.sh
Chad Horohoe [Fri, 24 Apr 2015 17:36:19 +0000 (10:36 -0700)]
Remove install-phpunit.sh

The default fetch location is PEAR, which is not where PHPUnit
is distributed from anymore. apt-get and yum tend to ship horribly
outdated versions of PHPUnit that we don't want. Macports? Lol.

Instead one should install PHPUnit via composer. If you use vagrant
for testing, this is done for you. Our composer.json also lists
PHPUnit if you want to do it yourself.

Bug: T96834
Change-Id: I84ae186a9be2595cd594b428a07f3af684c258fe

9 years agoMerge "Improved ActiveUsers cache staleness estimates"
jenkins-bot [Fri, 24 Apr 2015 16:52:26 +0000 (16:52 +0000)]
Merge "Improved ActiveUsers cache staleness estimates"

9 years agoMerge "Automatically set $wgMainWANCache by default using $wgMainCacheType"
jenkins-bot [Fri, 24 Apr 2015 16:38:04 +0000 (16:38 +0000)]
Merge "Automatically set $wgMainWANCache by default using $wgMainCacheType"

9 years agoRemove useless +x flag on ProfilerSectionOnly
Chad Horohoe [Fri, 24 Apr 2015 16:21:32 +0000 (09:21 -0700)]
Remove useless +x flag on ProfilerSectionOnly

Change-Id: I8f5190c114b50ee3b6288ce383caba7988c49895

9 years agoFix category column count regression
Mormegil [Fri, 24 Apr 2015 14:51:30 +0000 (16:51 +0200)]
Fix category column count regression

T55130 redesigned category view to use dynamic CSS-based columns
instead of the old fixed 3-column layout. The design was updated
in I20b68dea8f, setting the column width to 25em.

However, on 1280px screen, this reduces the layout to just 2 columns,
as 3 columns do not fit: With the default 14px font, 25em translates
to 350px of column width, plus 1em of column-gap, therefore, 1078px
of space would be required for three columns. However, a 1280px
screen seems to have only 1038px left for content, so 40px are
missing.

By reducing the column size slightly to 24em, three columns are back.

Bug: T55130
Change-Id: I2dbecf809c54d786579bdf3826efbf85ad822c7c

9 years agoMerge "Better pageprops API example"
jenkins-bot [Fri, 24 Apr 2015 13:43:59 +0000 (13:43 +0000)]
Merge "Better pageprops API example"

9 years agoAutomatically set $wgMainWANCache by default using $wgMainCacheType
Aaron Schulz [Thu, 23 Apr 2015 22:44:19 +0000 (15:44 -0700)]
Automatically set $wgMainWANCache by default using $wgMainCacheType

Change-Id: If1ad62e4d1f84e01cd4fea04c6dd568c9d290178

9 years agoImproved ActiveUsers cache staleness estimates
Aaron Schulz [Fri, 24 Apr 2015 07:19:17 +0000 (00:19 -0700)]
Improved ActiveUsers cache staleness estimates

Change-Id: Iddbdd90ff91d65f93dc51da0c8a5c0d4d0ab219f

9 years agoMerge "Improve Makefile.py for zhtable"
Nikerabbit [Fri, 24 Apr 2015 06:49:46 +0000 (06:49 +0000)]
Merge "Improve Makefile.py for zhtable"

9 years agoBetter pageprops API example
S Page [Tue, 7 Apr 2015 10:31:43 +0000 (03:31 -0700)]
Better pageprops API example

Change example query from non-existent Category:Foo to querying Main
Page and MediaWiki, which exist on both enwiki and mediawiki.org (and
have really interesting info on enwiki).

To test, visit api.php?action=help&modules=query+pageprops and try the
example URL.

Change-Id: Ibad1e912bd2fa0f0f627025a60ec137f43a2abe4

9 years agoAdded WANObjectCache class
Aaron Schulz [Tue, 27 Jan 2015 19:56:44 +0000 (11:56 -0800)]
Added WANObjectCache class

This class handles caching across distance sites where purges
must reach both. It also aims to make purging more reliable in
the face of network glitches and node consistent hash ejection.

bug: T88492
Change-Id: I686811b3075bf22e2f4de45127e8461e54648ead

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 23 Apr 2015 21:09:49 +0000 (23:09 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I6bcecb1d8d1d57b20c583ec65267a72f6b4b6a1d

9 years agoDon't profile setting up the temp directory
Chad Horohoe [Thu, 23 Apr 2015 17:30:23 +0000 (10:30 -0700)]
Don't profile setting up the temp directory

It's boring and profiling of wfTempDir() will already catch it

Change-Id: If4b489eb665af329fa9e3cb9b3e9913832b83862

9 years agoMerge "wikibits: Un-deprecate importScript and importStylesheet"
jenkins-bot [Thu, 23 Apr 2015 16:13:30 +0000 (16:13 +0000)]
Merge "wikibits: Un-deprecate importScript and importStylesheet"

9 years agoMerge "Update OOjs UI to v0.10.0"
jenkins-bot [Thu, 23 Apr 2015 15:38:48 +0000 (15:38 +0000)]
Merge "Update OOjs UI to v0.10.0"

9 years agoApiEditPage: Fetch content model from article, not title
Brad Jorsch [Thu, 23 Apr 2015 14:21:11 +0000 (10:21 -0400)]
ApiEditPage: Fetch content model from article, not title

The Title object's cached content model isn't updated after the edit.
The Article object fetches the model from the revision that was just
created, so let's just use that instead.

Bug: T96937
Change-Id: I4c5ab3ec6829d403a29a8a8f55e7458730369034

9 years agoMerge "Split Tunisian spoken Arabic in Arabic and Latin script variants"
jenkins-bot [Thu, 23 Apr 2015 13:26:08 +0000 (13:26 +0000)]
Merge "Split Tunisian spoken Arabic in Arabic and Latin script variants"

9 years agoAPI: Remove metadata keys from indexpageids output
Brad Jorsch [Thu, 23 Apr 2015 13:13:42 +0000 (09:13 -0400)]
API: Remove metadata keys from indexpageids output

While we could fix the issue at hand by moving the setArrayType() call,
it's more robust to explicitly remove *all* metadata.

Bug: T96942
Change-Id: I313b19339474ea34880ebef31851eefdf14a7a07

9 years agoSplit Tunisian spoken Arabic in Arabic and Latin script variants
mjbmr [Thu, 16 Apr 2015 13:19:06 +0000 (13:19 +0000)]
Split Tunisian spoken Arabic in Arabic and Latin script variants

More info:

https://github.com/wikimedia/mediawiki/commit/5f8be9cfb3264e9970f3480a5c9d21be2d0916cb#diff-8dd7cc40f378675c9fb14678c43da79e
https://translatewiki.net/w/i.php?title=Portal:Aeb&oldid=5651188
https://incubator.wikimedia.org/w/index.php?title=Incubator:Community_Portal&oldid=2898013#Proposal_about_Wiktionary_Tunisian

Change-Id: I00f71148fd61dbbc03a6c818af9a1c47cb332996

9 years agoAPI message text clarification.
Purodha [Thu, 23 Apr 2015 11:52:11 +0000 (11:52 +0000)]
API message text clarification.

Change-Id: I5d3e287f034bdd20f7f2d3893705af2d989e7d59

9 years agowikibits: Un-deprecate importScript and importStylesheet
Bartosz Dziewoński [Thu, 23 Apr 2015 06:55:25 +0000 (08:55 +0200)]
wikibits: Un-deprecate importScript and importStylesheet

Per discussion on T95964. No suitable replacement exists yet.
importScriptURI and importStylesheetURI stay deprecated, having been
superseded by mw.loader.load.

Follow-up to 5c5e09016d6b9b2d3d4799a9a34344a8cc96726f.

Bug: T95964
Change-Id: I2d734ca57e991be88472ae76a66f9547f6da82c8

9 years agomediawiki.log: Introduce mw.log.error
Timo Tijhof [Wed, 22 Apr 2015 21:58:06 +0000 (22:58 +0100)]
mediawiki.log: Introduce mw.log.error

In addition to mw.log.warn, but for the console.error channel.

Change-Id: I7b09a75da6c985a9e0cc73591f49b21972efd393

9 years agoImprove Makefile.py for zhtable
Liangent [Thu, 19 Mar 2015 06:56:22 +0000 (06:56 +0000)]
Improve Makefile.py for zhtable

* Fix incorrect parsing of phrases with spaces in them by using tabs as
  separators only in *.manual
* Make the order of items in PHP array output more stable, so contribs
  from different people don't conflict with each other
* Include version number in file name of Unihan database, so existing
  old file doesn't prevent downloading of a newer version of Unihan

Change-Id: Ifb6b33b937a7b82218172e3fdd937bda4ea4cc6c

9 years agoAdded a simple pendingWriteQueryDuration() DB method
Aaron Schulz [Wed, 22 Apr 2015 22:15:36 +0000 (15:15 -0700)]
Added a simple pendingWriteQueryDuration() DB method

Change-Id: I924cf78d8bb96d526a7ba7444f0532d7eb223bf2

9 years agoUpdate OOjs UI to v0.10.0
James D. Forrester [Thu, 23 Apr 2015 01:08:07 +0000 (18:08 -0700)]
Update OOjs UI to v0.10.0

Release notes:
 https://git.wikimedia.org/blob/oojs%2Fui.git/v0.10.0/History.md

Change-Id: If8cd89dd0035fb570f69c56855c048612971ee91

9 years agorequire_once instead of depending on the return value of include_once
Mukunda Modell [Wed, 22 Apr 2015 22:34:25 +0000 (17:34 -0500)]
require_once instead of depending on the return value of include_once

return value from include_once is unreliable, it could be the value
of a 'return;' statement in the included file, or it could be false
when the file wasn't readable. This was breaking deployments because
one of the extensions had "return;" which caused include_once to
return a falsy value.

Change-Id: I48b9a55d5f9e85efe515d87b56b60ee71f939842

9 years agoMerge "Change error/warning messages to be parsed instead of escaped"
jenkins-bot [Wed, 22 Apr 2015 22:12:58 +0000 (22:12 +0000)]
Merge "Change error/warning messages to be parsed instead of escaped"

9 years agoChange error/warning messages to be parsed instead of escaped
kaldari [Wed, 22 Apr 2015 21:51:26 +0000 (14:51 -0700)]
Change error/warning messages to be parsed instead of escaped

On Special:UserLogin, the Gather extension wants to be able to
show more detailed information in the warningbox. This will allow
the message to be multiline and/or include formatting (e.g. bold).

Change-Id: I5af873b4807a286fd3c37acdc1b34099cd23e68f

9 years agoMerge "mediawiki.language: Update bangla characters per request"
jenkins-bot [Wed, 22 Apr 2015 21:16:11 +0000 (21:16 +0000)]
Merge "mediawiki.language: Update bangla characters per request"

9 years agoAdded LoadBalancer::waitForOne method
Aaron Schulz [Wed, 22 Apr 2015 06:12:59 +0000 (23:12 -0700)]
Added LoadBalancer::waitForOne method

* This waits on the generic reader (or a random slave)

Change-Id: I4d4a96806d55b119fa535556e11abd55736e9077

9 years agoMerge "Use PHP_OS rather than php_uname, which may be disabled"
jenkins-bot [Wed, 22 Apr 2015 20:19:52 +0000 (20:19 +0000)]
Merge "Use PHP_OS rather than php_uname, which may be disabled"

9 years agoMerge "Moved ActiveUsers updates to recent changes jobs"
jenkins-bot [Wed, 22 Apr 2015 20:19:25 +0000 (20:19 +0000)]
Merge "Moved ActiveUsers updates to recent changes jobs"

9 years agomediawiki.language: Update bangla characters per request
James D. Forrester [Wed, 22 Apr 2015 16:26:51 +0000 (09:26 -0700)]
mediawiki.language: Update bangla characters per request

Bug: T96494
Change-Id: I6d6971769551707085f6ea764c4f0a5d65691d8a

9 years agoMerge "Deprecate .php5 file extension"
jenkins-bot [Wed, 22 Apr 2015 20:03:58 +0000 (20:03 +0000)]
Merge "Deprecate .php5 file extension"

9 years agoMerge "Make import destination UI more intuitive and clearer"
jenkins-bot [Wed, 22 Apr 2015 20:01:14 +0000 (20:01 +0000)]
Merge "Make import destination UI more intuitive and clearer"

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 22 Apr 2015 19:25:38 +0000 (21:25 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I5643c2c93bc5c0546a543dca06c393ddc50944c9

9 years agoMoved ActiveUsers updates to recent changes jobs
Aaron Schulz [Wed, 8 Apr 2015 20:41:10 +0000 (13:41 -0700)]
Moved ActiveUsers updates to recent changes jobs

* This avoids writes on view and is more reliable
* Also made the wfWaitForSlaves() there actually work

Bug: T95501
Bug: T92357
Bug: T89027
Change-Id: I0a006fc92a9268feb185c9d88aa04002ea51ecd3

9 years agoDeprecate .php5 file extension
Timo Tijhof [Fri, 10 Apr 2015 20:12:53 +0000 (21:12 +0100)]
Deprecate .php5 file extension

Hello, 2015.

Change-Id: I68b1ae842840be5aba62ca670f6af4e8de380869

9 years agoMake import destination UI more intuitive and clearer
This, that and the other [Tue, 27 Jan 2015 09:01:04 +0000 (20:01 +1100)]
Make import destination UI more intuitive and clearer

Previously there were two fields: Destination namespace, and Destination
root page. They were both optional, and the "root page" one in particular
was a bit mysterious until you tried it out. In addition, there was a
strange interaction when you set both fields (I still don't quite
understand what used to happen in this case).

Now, there is a set of three clearly described radio buttons, allowing the
user to select whether to import pages into their automatically chosen
locations, into a single namespace, or as subpages of a given page. These
correspond to the three ImportTitleFactory classes available in MediaWiki.

See https://phabricator.wikimedia.org/M28 for a screenshot.

The logic of WikiImporter#setTargetNamespace is tweaked slightly to remove
the interaction between target namespace and target root page, since only
one of these options can now be set. Similarly, the API's import module
is modified in the same way.

Bug: T17908
Change-Id: I11521260a88a7f4a95fbdb71ac50bcf7b4fe5cd1

9 years agomediawiki.language: Add some formatting to the specialcharacters.json file
Ed Sanders [Wed, 22 Apr 2015 18:00:19 +0000 (19:00 +0100)]
mediawiki.language: Add some formatting to the specialcharacters.json file

Makes the code, and future diffs, readable.

Change-Id: Id6638339712e5ddb626951e880720fb5b03c25b1

9 years agoMerge "Added max lag comment to JobRunner"
jenkins-bot [Wed, 22 Apr 2015 15:26:31 +0000 (15:26 +0000)]
Merge "Added max lag comment to JobRunner"

9 years agoMerge "Use CSS columns instead of tables in Special:SpecialPages"
jenkins-bot [Wed, 22 Apr 2015 15:04:36 +0000 (15:04 +0000)]
Merge "Use CSS columns instead of tables in Special:SpecialPages"

9 years agoAdded max lag comment to JobRunner
Aaron Schulz [Tue, 21 Apr 2015 21:02:45 +0000 (14:02 -0700)]
Added max lag comment to JobRunner

Change-Id: I9bb9948190d349d563f65d3e15bf1c6fa0d8adec

9 years agoMerge "Lowered $maxAllowedLag to 3 in JobRunner"
jenkins-bot [Wed, 22 Apr 2015 14:40:00 +0000 (14:40 +0000)]
Merge "Lowered $maxAllowedLag to 3 in JobRunner"

9 years agoLowered $maxAllowedLag to 3 in JobRunner
Aaron Schulz [Wed, 22 Apr 2015 13:11:25 +0000 (06:11 -0700)]
Lowered $maxAllowedLag to 3 in JobRunner

Change-Id: I7cb771c667bac21e9b67069e31c6243d9314dac5

9 years agoMerge "Update namespaces for Western Baluchi (bgn) from translatewiki"
jenkins-bot [Wed, 22 Apr 2015 12:49:03 +0000 (12:49 +0000)]
Merge "Update namespaces for Western Baluchi (bgn) from translatewiki"

9 years agoMerge "Add namespace aliases for Western Baluchi (bgn)"
jenkins-bot [Wed, 22 Apr 2015 12:47:36 +0000 (12:47 +0000)]
Merge "Add namespace aliases for Western Baluchi (bgn)"

9 years agoMerge "Update namespaces for South Azerbaijani (azb) from translatewiki"
jenkins-bot [Wed, 22 Apr 2015 12:45:45 +0000 (12:45 +0000)]
Merge "Update namespaces for South Azerbaijani (azb) from translatewiki"

9 years agoEnable DBO_TRX for runJobs.php, just like HTTP job runner
Aaron Schulz [Tue, 21 Apr 2015 23:28:49 +0000 (16:28 -0700)]
Enable DBO_TRX for runJobs.php, just like HTTP job runner

Change-Id: Ic6fa2f9f0d18aeeb15f482e2faab2ebc56650570

9 years agoRemoved redundant wfReadOnly check in runJobs.php
Aaron Schulz [Tue, 21 Apr 2015 23:20:31 +0000 (16:20 -0700)]
Removed redundant wfReadOnly check in runJobs.php

* JobRunner handles this and doing it pre-fork is less safe

Change-Id: I9e53e6b2d04f3f370723af8140e796ba337cfd3b

9 years agoMerge "API: Add wfDeprecated() to deprecated ApiResult methods"
jenkins-bot [Tue, 21 Apr 2015 20:39:15 +0000 (20:39 +0000)]
Merge "API: Add wfDeprecated() to deprecated ApiResult methods"

9 years agoMerge "API: Better handle UsageException from the printer itself"
jenkins-bot [Tue, 21 Apr 2015 20:28:13 +0000 (20:28 +0000)]
Merge "API: Better handle UsageException from the printer itself"