lhc/web/wiklou.git
7 years agoUnify Special:Contribs/DeletedContribs subtitle implementation
Kunal Mehta [Thu, 4 Aug 2016 22:19:59 +0000 (15:19 -0700)]
Unify Special:Contribs/DeletedContribs subtitle implementation

Basically all of the code was duplicated, except that Contribs had a
link to DeletedContribs, and DeletedContribs had a link to Contribs.

Now DeletedContribs will call the function in Contribs, and remove the
DeletedContribs link, and add its own link to Contribs instead of
needing to duplicate the entire list of links.

Change-Id: Ia004a4a69427fd5b554131b19b0e263523b7da67

7 years agoSpecialContributions: Use LinkRenderer instead of Linker::link()
Kunal Mehta [Thu, 4 Aug 2016 21:48:55 +0000 (14:48 -0700)]
SpecialContributions: Use LinkRenderer instead of Linker::link()

Change-Id: I9d6b81d5c71ab56fef2fe4bd95cfa1a6c38cbc32

7 years agoProvide context in ContributionsToolLinks hook
Kunal Mehta [Thu, 4 Aug 2016 21:48:29 +0000 (14:48 -0700)]
Provide context in ContributionsToolLinks hook

Most of the hook functions need context to see what the current user's
permissions are, to generate messages, or the LinkRenderer service to
generate the tool links.

Change-Id: I19fa27c8115ee39dded6cb98f29c35b66b934f8a

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 4 Aug 2016 20:50:42 +0000 (22:50 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I7f4659b50dcebe65487d1cc01ab9b1b6aeefbcec

7 years agoMerge "Add search-ignored-headings string, copied from cirrus-search-ignored-headings."
jenkins-bot [Thu, 4 Aug 2016 19:44:28 +0000 (19:44 +0000)]
Merge "Add search-ignored-headings string, copied from cirrus-search-ignored-headings."

7 years agoMerge "Allow closures as HTMLInfoField values"
jenkins-bot [Thu, 4 Aug 2016 19:10:09 +0000 (19:10 +0000)]
Merge "Allow closures as HTMLInfoField values"

7 years agoMerge "resourceloader: Implement 'deprecated' option for FileModule"
jenkins-bot [Thu, 4 Aug 2016 18:48:39 +0000 (18:48 +0000)]
Merge "resourceloader: Implement 'deprecated' option for FileModule"

7 years agoAdd search-ignored-headings string, copied from cirrus-search-ignored-headings.
Stanislav Malyshev [Tue, 14 Jun 2016 21:01:13 +0000 (14:01 -0700)]
Add search-ignored-headings string, copied from cirrus-search-ignored-headings.

Change-Id: I4178f872996800379843301f7119840f4a4551df

7 years agoresourceloader: Implement 'deprecated' option for FileModule
jdlrobson [Thu, 14 Jul 2016 22:09:06 +0000 (15:09 -0700)]
resourceloader: Implement 'deprecated' option for FileModule

ResourceLoader modules can now carry a 'deprecated' option which can
be a boolean or an object with message key. This message or a default
deprecation message will be show whenever that module is used in production.

Note: This will not work in debug mode for ResourceLoaderFile modules
and this is deemed acceptable for the time being. We can revisit later.

Bug: T137772
Change-Id: Ib9ebd2d39a59fd41d8537e06884699f77b03580c

7 years agoAutodiscover extension unittests
Kunal Mehta [Thu, 4 Aug 2016 16:44:55 +0000 (09:44 -0700)]
Autodiscover extension unittests

Instead of requiring every extension that wants to add unit tests to
copy the exact same boilerplate over and over, let's just automatically
discover them. We now have an extension registry, so we know exactly
which extensions are loaded (this won't work for extensions not being
loaded through extension.json).

For each extension, we check to see if the directory "tests/phpunit/"
exists, and if it does, add those unit tests. If there is a
`UnitTestsList` subscriber already set, PHPUnit will automatically
de-duplicate test cases so we won't be running anything twice.

Change-Id: I6ec654ef2d8ee3630b121b1277b4ee21ba0b6cd4

7 years agoMerge "Make content handlers assemble content for search"
jenkins-bot [Thu, 4 Aug 2016 15:54:36 +0000 (15:54 +0000)]
Merge "Make content handlers assemble content for search"

7 years agoMerge "MediaHandlerFactory: Don't use any global state"
jenkins-bot [Thu, 4 Aug 2016 09:34:34 +0000 (09:34 +0000)]
Merge "MediaHandlerFactory: Don't use any global state"

7 years agoMerge "Move MediaHandler defaults out of global scope"
jenkins-bot [Thu, 4 Aug 2016 09:30:53 +0000 (09:30 +0000)]
Merge "Move MediaHandler defaults out of global scope"

7 years agoMerge "Override MediaHandlers in tests using MediaWikiServices"
jenkins-bot [Thu, 4 Aug 2016 09:27:33 +0000 (09:27 +0000)]
Merge "Override MediaHandlers in tests using MediaWikiServices"

7 years agoMerge "Introduce MediaHandlerFactory to create MediaHandler objects"
jenkins-bot [Thu, 4 Aug 2016 09:27:23 +0000 (09:27 +0000)]
Merge "Introduce MediaHandlerFactory to create MediaHandler objects"

7 years agoMerge "OutputPage: Add addHeadItems() method"
jenkins-bot [Thu, 4 Aug 2016 02:14:01 +0000 (02:14 +0000)]
Merge "OutputPage: Add addHeadItems() method"

7 years agoMerge "Pass $archivedRevisionCount to the ArticleDeleteComplete hook"
jenkins-bot [Thu, 4 Aug 2016 01:18:54 +0000 (01:18 +0000)]
Merge "Pass $archivedRevisionCount to the ArticleDeleteComplete hook"

7 years agoPass $archivedRevisionCount to the ArticleDeleteComplete hook
Andrew Otto [Tue, 12 Jul 2016 18:42:33 +0000 (14:42 -0400)]
Pass $archivedRevisionCount to the ArticleDeleteComplete hook

Bug: T134502
Change-Id: I1df89beeadbec2a3592e51fbb525ed6db2424619

7 years agoMerge "phpdoc File::makeTransformTmpFile can return null"
jenkins-bot [Thu, 4 Aug 2016 00:14:34 +0000 (00:14 +0000)]
Merge "phpdoc File::makeTransformTmpFile can return null"

7 years agoMediaHandlerFactory: Don't use any global state
Kunal Mehta [Fri, 29 Jul 2016 00:01:08 +0000 (17:01 -0700)]
MediaHandlerFactory: Don't use any global state

Instead inject the configured MediaHandlers in the service constructor.

Change-Id: I039c01ef531389c74524cb7adcb8cf1229d9a95d

7 years agoMove MediaHandler defaults out of global scope
Kunal Mehta [Tue, 26 Jul 2016 02:56:16 +0000 (19:56 -0700)]
Move MediaHandler defaults out of global scope

The defaults that were in $wgMediaHandlers are now listed in
MediaHandlerFactory.

The main advantage of doing this is we get O(1) replacement when
extensions set a media handler in their extension.json.

Bug: T141305
Change-Id: I05771a673837ab8d6331eedc24eb707be7f3a250

7 years agoOverride MediaHandlers in tests using MediaWikiServices
Kunal Mehta [Tue, 26 Jul 2016 02:46:13 +0000 (19:46 -0700)]
Override MediaHandlers in tests using MediaWikiServices

Change-Id: Ie39fd9243e7817191b87179f792d932f7b96de0c

7 years agoIntroduce MediaHandlerFactory to create MediaHandler objects
Kunal Mehta [Tue, 26 Jul 2016 02:19:25 +0000 (19:19 -0700)]
Introduce MediaHandlerFactory to create MediaHandler objects

This will allow further refactoring of override logic in parser tests.

Ideally the factory class would not use $wgMediaHandlers directly, but
that ends up breaking too many tests for now.

Change-Id: I34a63ee7089ff26f86f3dd6f3cd1a37928bc4005

7 years agoMerge "Wrap revision info and nav in a div for easy formatting in MobileFrontend"
jenkins-bot [Wed, 3 Aug 2016 21:17:02 +0000 (21:17 +0000)]
Merge "Wrap revision info and nav in a div for easy formatting in MobileFrontend"

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 3 Aug 2016 19:59:27 +0000 (21:59 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I0ac53363139c522e4b35b8fbe49a7ac8d5ccbf45

7 years agoMerge "Pingback: Fix phpdoc"
jenkins-bot [Wed, 3 Aug 2016 18:31:23 +0000 (18:31 +0000)]
Merge "Pingback: Fix phpdoc"

7 years agoMerge "auth: Fix case of function call"
jenkins-bot [Wed, 3 Aug 2016 18:27:27 +0000 (18:27 +0000)]
Merge "auth: Fix case of function call"

7 years agophpdoc File::makeTransformTmpFile can return null
addshore [Wed, 3 Aug 2016 17:42:54 +0000 (18:42 +0100)]
phpdoc File::makeTransformTmpFile can return null

Change-Id: Ibeefb87919dfa2e5f850570942cbeab01e84e8a7

7 years agoUpdate OOjs UI to v0.17.7
James D. Forrester [Wed, 3 Aug 2016 16:41:35 +0000 (09:41 -0700)]
Update OOjs UI to v0.17.7

Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.17.7

Change-Id: I0f36a3485a75ad0346eef9ae98aa47eddb099faf

7 years agoStructure test: Add autoload.php order check
Florian [Wed, 20 Jan 2016 18:27:47 +0000 (19:27 +0100)]
Structure test: Add autoload.php order check

If a class is added manually to the autoload.php another run of
the maintenance script will probably add unnecessary noise to
another change. The added structure test checks, if the output of
the maintenance script equals to the contents of the commited
autoload.php.

Bug: T121921
Change-Id: I3a426b92892f4c00cab33a13f6a717751120367c

7 years agoPingback: Fix phpdoc
Kunal Mehta [Wed, 3 Aug 2016 08:56:28 +0000 (01:56 -0700)]
Pingback: Fix phpdoc

Change-Id: Ib4fd932a9b65e46e9b43e594a6e1ab5a4dac76d9

7 years agoauth: Fix case of function call
Kunal Mehta [Wed, 3 Aug 2016 06:53:51 +0000 (23:53 -0700)]
auth: Fix case of function call

Change-Id: I415a7f7ba2ea97515a110cd963ed96bb77ec7b97

7 years agoWrap revision info and nav in a div for easy formatting in MobileFrontend
Baha [Tue, 2 Aug 2016 18:45:22 +0000 (14:45 -0400)]
Wrap revision info and nav in a div for easy formatting in MobileFrontend

Revision info and nav used to be combined with breadcrumbs which made
styling the revision info and nav complicated. The patch wraps these
two divs into an outer div so that MF can style them together easily.

Also make sure rev info and nav appear on different lines as the
`br` tag between them has been removed because of wrapping.

Bug: T139930
Change-Id: Ic7ecf3be7eac6500c20cfc3b3b1fa49d4b4e0d19

7 years agoMerge "UploadBase: Formally deprecate old methods for stashing files"
jenkins-bot [Wed, 3 Aug 2016 00:10:52 +0000 (00:10 +0000)]
Merge "UploadBase: Formally deprecate old methods for stashing files"

7 years agoUploadBase: Formally deprecate old methods for stashing files
Bartosz Dziewoński [Tue, 2 Aug 2016 21:24:32 +0000 (23:24 +0200)]
UploadBase: Formally deprecate old methods for stashing files

Change-Id: I4c60083a4e773e401aae8c90b99a051cbca4c961

7 years agoMerge "Add 'targets' => [ 'desktop', 'mobile' ] to all UploadWizard dependencies"
jenkins-bot [Tue, 2 Aug 2016 23:28:25 +0000 (23:28 +0000)]
Merge "Add 'targets' => [ 'desktop', 'mobile' ] to all UploadWizard dependencies"

7 years agoMerge "Skin: Remove long-deprecated aliases for Linker methods"
jenkins-bot [Tue, 2 Aug 2016 23:03:39 +0000 (23:03 +0000)]
Merge "Skin: Remove long-deprecated aliases for Linker methods"

7 years agoMerge "Canonicalise '@deprecated since' doc comments"
jenkins-bot [Tue, 2 Aug 2016 22:55:19 +0000 (22:55 +0000)]
Merge "Canonicalise '@deprecated since' doc comments"

7 years agoCanonicalise '@deprecated since' doc comments
Bartosz Dziewoński [Tue, 2 Aug 2016 21:53:25 +0000 (23:53 +0200)]
Canonicalise '@deprecated since' doc comments

Change-Id: I440041512feb47a998efb45e76e3fd00e0655752

7 years agoresourceloader: Separate 'user.styles' module from 'user'
Timo Tijhof [Tue, 26 Jul 2016 23:54:30 +0000 (00:54 +0100)]
resourceloader: Separate 'user.styles' module from 'user'

Fixes addModuleStyles() violation from T92459 (a464d1d41).

Similar to 93ed259cf and Id2342454b for the 'site' module.
Doesn't need to be in separate commits since per-user HTML isn't
cached the same way.

Bug: T92459
Bug: T108590
Change-Id: I195f67d061de1306c97413aada7919e9f1b1d12c

7 years agoSkin: Remove long-deprecated aliases for Linker methods
Bartosz Dziewoński [Tue, 2 Aug 2016 21:48:24 +0000 (23:48 +0200)]
Skin: Remove long-deprecated aliases for Linker methods

They don't seem to be used anymore in any skins in our version control.
I searched for:

  (->|(?<!Linker)::)(commentBlock|generateRollback|link|linkKnown|userLink|userToolLinks)

Change-Id: Id558c2d307dc6e9fbf0e642d5d638f7c2c9544b2

7 years agoAllow closures as HTMLInfoField values
Gergő Tisza [Tue, 2 Aug 2016 07:27:44 +0000 (00:27 -0700)]
Allow closures as HTMLInfoField values

This makes it possible to parametrize info fields so they can be
easily altered.

Change-Id: I17328cf3f1a710096c64b17dde0864cb9be3892d

7 years agoMerge "Remove unused conds.mustache test file"
jenkins-bot [Tue, 2 Aug 2016 21:16:17 +0000 (21:16 +0000)]
Merge "Remove unused conds.mustache test file"

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 2 Aug 2016 20:08:19 +0000 (22:08 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: If70dbb59179e6529b838f963aca55c4dab68f663

7 years agoMerge "Provide missing system message corresponding to "right-purge""
jenkins-bot [Tue, 2 Aug 2016 19:23:35 +0000 (19:23 +0000)]
Merge "Provide missing system message corresponding to "right-purge""

7 years agoMerge "Move HTMLFormField subclasses to a separate directory"
jenkins-bot [Tue, 2 Aug 2016 19:06:30 +0000 (19:06 +0000)]
Merge "Move HTMLFormField subclasses to a separate directory"

7 years agoMerge "Avoid stack overflow in LoadBalancer with CACHE_DB WAN/server cache"
jenkins-bot [Tue, 2 Aug 2016 13:19:50 +0000 (13:19 +0000)]
Merge "Avoid stack overflow in LoadBalancer with CACHE_DB WAN/server cache"

7 years agoAvoid stack overflow in LoadBalancer with CACHE_DB WAN/server cache
Aaron Schulz [Tue, 2 Aug 2016 10:57:52 +0000 (03:57 -0700)]
Avoid stack overflow in LoadBalancer with CACHE_DB WAN/server cache

* Add the ability to expose key BagOStuff attributes like whether the
  emulation SQL cache is being used. Several callers use hacks to detect
  this and can be updated later.
* Fallback to a safe empty WAN cache in the CACHE_DB case. This fixes
  a regression from f4bf52e8438.
* Also add this protection to the server cache, which could break
  similarly before too.
* Also fix CACHE_ANYTHING by avoid the recursion risk from
  fc1d4d796024 by just checking the disabled service map.

Bug: T123829
Bug: T141804
Change-Id: I17ee26138f69e01ec1aaddb55ab27caa4d542193

7 years agoMerge "MessagesGom_deva: Correct syntax in namespace alias"
jenkins-bot [Tue, 2 Aug 2016 11:10:47 +0000 (11:10 +0000)]
Merge "MessagesGom_deva: Correct syntax in namespace alias"

7 years agoMerge "resourceloader: Remove styles from 'site', depend on 'site.styles'"
jenkins-bot [Tue, 2 Aug 2016 09:18:30 +0000 (09:18 +0000)]
Merge "resourceloader: Remove styles from 'site', depend on 'site.styles'"

7 years agoMerge "Unification of Czech terminology in Special:Listgrants"
jenkins-bot [Tue, 2 Aug 2016 09:06:45 +0000 (09:06 +0000)]
Merge "Unification of Czech terminology in Special:Listgrants"

7 years agoProvide missing system message corresponding to "right-purge"
Kghbln [Tue, 2 Aug 2016 08:57:51 +0000 (10:57 +0200)]
Provide missing system message corresponding to "right-purge"

Change-Id: I2f98da7e1537da9d9b9a02f881465be11c31d698

7 years agoUnification of Czech terminology in Special:Listgrants
Martin Urbanec [Mon, 1 Aug 2016 20:03:27 +0000 (22:03 +0200)]
Unification of Czech terminology in Special:Listgrants

The title of Special:Listgrants was "Svolení" in Czech
and the name of the special page was "Seznam grantů".
None of this has the exact meaning as the original title/name.
The Czech word "Grant" (another form of "grantů")
usualy means a financial gift from somebody limited by its purpose.

The Czech word "Svolení" has similar meaning as "agreement" in English.

"Skupina oprávnění" can be translated as "Group of permissions".

I've changed related pages in translatewiki.net to update
the description, displayed title and the title of the first
column in table which is generated by this special page.

It has been suggested by Dvorapa at my talk page in cswiki, see
https://cs.wikipedia.org/?oldid=13980091#Granty.3F_Svolen.C3.AD.3F
(in Czech).

Change-Id: Ic3148fc689de32bcba6344ad1f98491c5f540973

7 years agoRemove unused conds.mustache test file
Timo Tijhof [Tue, 2 Aug 2016 00:16:52 +0000 (17:16 -0700)]
Remove unused conds.mustache test file

Follows-up 2b7d281 which added the file but no use of it.

Change-Id: I59faab7f50abedeb1d57663128872032b6ec28a2

7 years agoMerge "phpdoc File::transform can return ThumbnailImage"
jenkins-bot [Mon, 1 Aug 2016 22:58:54 +0000 (22:58 +0000)]
Merge "phpdoc File::transform can return ThumbnailImage"

7 years agophpdoc File::transform can return ThumbnailImage
addshore [Mon, 1 Aug 2016 21:18:24 +0000 (22:18 +0100)]
phpdoc File::transform can return ThumbnailImage

Change-Id: I463176d06c8d519a52c5713eacd44bff87e72f56

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 1 Aug 2016 20:03:35 +0000 (22:03 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: If2dbb58d65cef8c68255275a70d3ecc96bc47488

7 years agoMerge "Allow SVGs encoded as WINDOWS-125[0-8]."
jenkins-bot [Mon, 1 Aug 2016 13:06:35 +0000 (13:06 +0000)]
Merge "Allow SVGs encoded as WINDOWS-125[0-8]."

7 years agoMerge "$namespaceNames for tcy language"
jenkins-bot [Mon, 1 Aug 2016 12:26:53 +0000 (12:26 +0000)]
Merge "$namespaceNames for tcy language"

7 years agoAllow SVGs encoded as WINDOWS-125[0-8].
Brian Wolff [Mon, 1 Aug 2016 08:01:46 +0000 (08:01 +0000)]
Allow SVGs encoded as WINDOWS-125[0-8].

The check is meant to prevent weird encodings like UTF-7 or HZ.
Encodings like the WINDOWS-125X family which are extensions of ascii
are safe. Additionally people still use windows-1252 on rare occasion.

Bug: T72937
Change-Id: I6cd63274cc04a7fca3afd244b4122ea64042dced

7 years agoMove HTMLFormField subclasses to a separate directory
Bartosz Dziewoński [Sat, 30 Jul 2016 21:59:24 +0000 (23:59 +0200)]
Move HTMLFormField subclasses to a separate directory

It's getting more difficult to navigate the files in includes/htmlform/
with every new field and every new helper class that is being added.

Change-Id: I92ce2356baf6151f17b2440970d5abdf86503820

7 years ago$namespaceNames for tcy language
MarcoAurelio [Sun, 31 Jul 2016 10:43:27 +0000 (12:43 +0200)]
$namespaceNames for tcy language

Bug: T140898
See-also: I3ddfc12efff0911b547ac93ab31c92d49447b224
Change-Id: Ie8a22d4d679d368aa5777a485ab5e18282c55a4c

7 years agoMerge "Make recordUpload2() deferred updates PRESEND again"
jenkins-bot [Mon, 1 Aug 2016 05:21:05 +0000 (05:21 +0000)]
Merge "Make recordUpload2() deferred updates PRESEND again"

7 years agoMake recordUpload2() deferred updates PRESEND again
Aaron Schulz [Mon, 1 Aug 2016 02:55:45 +0000 (19:55 -0700)]
Make recordUpload2() deferred updates PRESEND again

Bug: T141687
Change-Id: Ica1a09a6e580b9da659d22183f396d88f694f256

7 years agoMerge "Revert "README: Changed link from bugs.mediawiki.org...""
jenkins-bot [Sun, 31 Jul 2016 23:39:42 +0000 (23:39 +0000)]
Merge "Revert "README: Changed link from bugs.mediawiki.org...""

7 years agoRevert "README: Changed link from bugs.mediawiki.org..."
Legoktm [Sun, 31 Jul 2016 23:30:29 +0000 (23:30 +0000)]
Revert "README: Changed link from bugs.mediawiki.org..."

The link is intentional as that is the canonical location
of where bugs should be filed, and is independent of any
future software change.

Finally, changes to the README should be drafted on-wiki first
at [[mw:README]].

This reverts commit af9258794cfd59d1209b97080c365060cbbd2e89.

Change-Id: Ie453cee5218261cba4f6e18d13c4089c23ff2166

7 years agoMerge "Remove DifferenceEngine::generateDiffBody()"
jenkins-bot [Sun, 31 Jul 2016 23:17:13 +0000 (23:17 +0000)]
Merge "Remove DifferenceEngine::generateDiffBody()"

7 years agoMerge "Localisation, minior cleanup, minor changes"
jenkins-bot [Sun, 31 Jul 2016 22:56:15 +0000 (22:56 +0000)]
Merge "Localisation, minior cleanup, minor changes"

7 years agoLocalisation, minior cleanup, minor changes
zppix1 [Sun, 31 Jul 2016 20:51:47 +0000 (15:51 -0500)]
Localisation, minior cleanup, minor changes

Bug: T141743
Change-Id: I6eb7a4ae2bba0708ec96568d90b43170dbde7f6b

7 years agoRemove DifferenceEngine::generateDiffBody()
Florian [Sat, 2 Apr 2016 11:44:17 +0000 (13:44 +0200)]
Remove DifferenceEngine::generateDiffBody()

Bug: T122754
Change-Id: Iedd319fa5e7b7218ee5341f18f31a8f1101b5eee

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 31 Jul 2016 19:53:32 +0000 (21:53 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I4d1981aaef6072be3d26f7be3c068b7ef65aacfe

7 years agoMerge "Added a link to Developer Hub in docs/README, Sectioning minor rewording,...
jenkins-bot [Sun, 31 Jul 2016 19:01:17 +0000 (19:01 +0000)]
Merge "Added a link to Developer Hub in docs/README, Sectioning minor rewording, localisation links added to extentsions/README. Other minor changes"

7 years agoMerge "mw.htmlform.ooui: Correctly support flatlist for non-infused widgets"
jenkins-bot [Sun, 31 Jul 2016 18:55:51 +0000 (18:55 +0000)]
Merge "mw.htmlform.ooui: Correctly support flatlist for non-infused widgets"

7 years agoUse PRESEND for WikiPage::doCreate updates
Aaron Schulz [Sun, 31 Jul 2016 17:54:47 +0000 (10:54 -0700)]
Use PRESEND for WikiPage::doCreate updates

Regression from Idf7d54fdac648

Bug: T141687
Change-Id: I9d6d6137ae324547eb45474dc58bc90bf8ccb78f

7 years agoMerge "Make WikiPage::doEditUpdates and related functions be run PRESEND again"
jenkins-bot [Sun, 31 Jul 2016 17:38:59 +0000 (17:38 +0000)]
Merge "Make WikiPage::doEditUpdates and related functions be run PRESEND again"

7 years agoAdded a link to Developer Hub in docs/README, Sectioning minor rewording, localisatio...
zppix1 [Sun, 31 Jul 2016 17:18:30 +0000 (12:18 -0500)]
Added a link to Developer Hub in docs/README, Sectioning minor rewording, localisation links added to extentsions/README. Other minor changes

Change-Id: Iec401322fbaa0a69d6d0eb368d2b5e109a05b01e

7 years agoMake WikiPage::doEditUpdates and related functions be run PRESEND again
Glaisher [Sun, 31 Jul 2016 17:22:27 +0000 (22:22 +0500)]
Make WikiPage::doEditUpdates and related functions be run PRESEND again

Regression from Idf7d54fdac648

Bug: T141687
Change-Id: I736fd6c0a9c4595ba0bba6a5b8d7f795b57fda60

7 years agoMerge "Changed link from bugs.mediawiki.org to phabricator.wikimedia.org as bug...
jenkins-bot [Sun, 31 Jul 2016 17:17:02 +0000 (17:17 +0000)]
Merge "Changed link  from bugs.mediawiki.org to phabricator.wikimedia.org as bug.mediawiki.org is no longer a link its just a redirect to the phab."

7 years agoChanged link from bugs.mediawiki.org to phabricator.wikimedia.org as bug.mediawiki...
zppix1 [Sun, 31 Jul 2016 16:49:05 +0000 (11:49 -0500)]
Changed link  from bugs.mediawiki.org to phabricator.wikimedia.org as bug.mediawiki.org is no longer a link its just a redirect to the phab.

Change-Id: Id6ae73a0edbbdc85c7c769494aa26a9a21734693

7 years agoMerge "ImageListPager: Don't fatal when unable to thumbnail a file"
jenkins-bot [Sun, 31 Jul 2016 13:08:28 +0000 (13:08 +0000)]
Merge "ImageListPager: Don't fatal when unable to thumbnail a file"

7 years agoMerge "Silence the TransactionProfiler in masterRunningReadOnly()"
jenkins-bot [Sun, 31 Jul 2016 05:27:57 +0000 (05:27 +0000)]
Merge "Silence the TransactionProfiler in masterRunningReadOnly()"

7 years agoMerge "mw.Title: Use $wgIllegalFileChars for file title checking"
jenkins-bot [Sun, 31 Jul 2016 05:03:13 +0000 (05:03 +0000)]
Merge "mw.Title: Use $wgIllegalFileChars for file title checking"

7 years agoImageListPager: Don't fatal when unable to thumbnail a file
Bartosz Dziewoński [Sun, 31 Jul 2016 00:06:10 +0000 (02:06 +0200)]
ImageListPager: Don't fatal when unable to thumbnail a file

Change-Id: I2e2879de2b0dd4cd347bf545c46c98b891def9eb

7 years agomw.htmlform.ooui: Correctly support flatlist for non-infused widgets
Bartosz Dziewoński [Sat, 30 Jul 2016 20:55:12 +0000 (22:55 +0200)]
mw.htmlform.ooui: Correctly support flatlist for non-infused widgets

Spotted in code review of I46dc6cc8f7ddf8552a726202df136cbbff66588c.
Follow-up to 5f67d80afd86a4a7d76c6c98f0b3490da25ff179.

Change-Id: I223c4d1b022aac6b13a8904bfc8f0f50c75da94f

7 years agoSilence the TransactionProfiler in masterRunningReadOnly()
Aaron Schulz [Sat, 30 Jul 2016 20:42:44 +0000 (13:42 -0700)]
Silence the TransactionProfiler in masterRunningReadOnly()

Change-Id: I93a5cce8c781c1e2ab4fb6bcefd3720e61f8a4dd

7 years agoMerge "Convert Special:NewFiles to use OOUI."
jenkins-bot [Sat, 30 Jul 2016 20:41:47 +0000 (20:41 +0000)]
Merge "Convert Special:NewFiles to use OOUI."

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 30 Jul 2016 19:53:06 +0000 (21:53 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I47121cdf937af7abdfdf27fa876926149ed08c83

7 years agomw.Title: Use $wgIllegalFileChars for file title checking
Bartosz Dziewoński [Sun, 24 Jul 2016 20:28:56 +0000 (22:28 +0200)]
mw.Title: Use $wgIllegalFileChars for file title checking

mw.Title.newFromFileName() will now correctly use $wgIllegalFileChars,
rather than partially and incorrectly duplicating it.

$wgIllegalFileChars is currently defined to contain ':', '/' and '\'.
Previously we incorrectly did not filter out backslashes '\'. The hash
'#' is already disallowed by $wgLegalTitleChars.

Bug: T140222
Change-Id: I17e3ef61e04ae002ef576c9416c8f265ee000e89

7 years agomaintenance: Allow having a nicer error message if an extension isn't enabled
Kunal Mehta [Thu, 28 Jul 2016 21:44:06 +0000 (14:44 -0700)]
maintenance: Allow having a nicer error message if an extension isn't enabled

Maintenance scripts can be invoked regardless of whether an extension is
enabled on a wiki or not. On wiki farms where some wikis may have an
extension or not, this can potentially be rather confusing. Especially
when the script bails out with a fatal class missing error or a database
table missing.

This allows maintenance scripts to specify that they require an
extension by calling:
 $this->requireExtension( 'ExtensionName' );
in the script's constructor.

Bug: T141531
Change-Id: Icfbf063bb9c9ac9e55c3a5a8ed815528a2c1ce1e

7 years agoMerge "Unbreak file caching"
jenkins-bot [Sat, 30 Jul 2016 03:29:01 +0000 (03:29 +0000)]
Merge "Unbreak file caching"

7 years agoUnbreak file caching
Aaron Schulz [Sat, 30 Jul 2016 03:03:24 +0000 (20:03 -0700)]
Unbreak file caching

This was totally broken by 796d62d0

Change-Id: I34ee08e926117b9472151d9fd415c1dfc6a57de1

7 years agoAutomatically detect READ_ONLY mode for MySQL/MariaDB
Aaron Schulz [Fri, 22 Jul 2016 05:15:30 +0000 (22:15 -0700)]
Automatically detect READ_ONLY mode for MySQL/MariaDB

This avoids having users think they can make edits when an
exception will just be thrown when they try to save. Likewise
for other write actions.

Bug: T24923
Change-Id: I49c4057b672875ec6f34681a5668a509cec05677

7 years agoMerge "Remove return by reference in Title::makeTitle"
jenkins-bot [Sat, 30 Jul 2016 00:34:36 +0000 (00:34 +0000)]
Merge "Remove return by reference in Title::makeTitle"

7 years agoMerge "Use mw.notification for success message on Special:UserRights"
jenkins-bot [Fri, 29 Jul 2016 21:24:47 +0000 (21:24 +0000)]
Merge "Use mw.notification for success message on Special:UserRights"

7 years agoUse mw.notification for success message on Special:UserRights
Florian [Wed, 14 Oct 2015 17:20:28 +0000 (19:20 +0200)]
Use mw.notification for success message on Special:UserRights

Split out Special:Preferences handling of successbox into it's own
mediawiki.notification.convertmessagebox module and make it reuseable.

Use this module on Special:UserRights.

Bug: T115463
Change-Id: I87054b55053d209835d6fdea1f6e3e67f10e3ac8

7 years agoMerge "Localisation updates from https://translatewiki.net."
L10n-bot [Fri, 29 Jul 2016 20:49:09 +0000 (20:49 +0000)]
Merge "Localisation updates from https://translatewiki.net."

7 years agoMerge "registration: Support conditionally registered namespaces"
jenkins-bot [Fri, 29 Jul 2016 20:47:09 +0000 (20:47 +0000)]
Merge "registration: Support conditionally registered namespaces"

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 29 Jul 2016 20:40:34 +0000 (22:40 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Iab10db9d190dbbf1f46fbf9726e7b78210f4ddab

7 years agoRemove return by reference in Title::makeTitle
Erik Bernhardson [Fri, 29 Jul 2016 20:30:32 +0000 (13:30 -0700)]
Remove return by reference in Title::makeTitle

This made sense back in php4, but has no useful effect anymore
with our minimum php version being 5.5. This also has the effect
of searching for 'function makeTitle' now actually finding something.

Change-Id: I0ea02a2e7dff285341b0e5b5b7773da78bfaaff3

7 years agoMerge "Special:Search replace visualClear with mw-search-visualclear"
jenkins-bot [Fri, 29 Jul 2016 17:08:59 +0000 (17:08 +0000)]
Merge "Special:Search replace visualClear with mw-search-visualclear"