MWNamespace: Add getCategoryLinkType() method
authorKevin Israel <pleasestand@live.com>
Thu, 28 Jun 2018 09:58:28 +0000 (05:58 -0400)
committerAaron Schulz <aschulz@wikimedia.org>
Fri, 29 Jun 2018 15:37:11 +0000 (15:37 +0000)
commita50f61009df774890ae33cc98d990139d7501d65
tree1b110c421cd49035cdfbaf6ea5fd5dc94cdb5f64
parentbad624a2bf3147c8e658723ce2c572bc7f0f6c19
MWNamespace: Add getCategoryLinkType() method

This method returns the value used as cl_type for category links that
are "from" pages within the namespace, and is added to avoid duplication
of code across a few classes.

Change-Id: I4e55932a5a27858cfedb12009b455fcd02f9b5df
includes/MWNamespace.php
includes/MovePage.php
includes/deferred/LinksUpdate.php
includes/page/WikiPage.php
maintenance/updateCollation.php
tests/phpunit/includes/MWNamespaceTest.php