CategoryManager is a member variable. Also explicitly define the
haveParserMigrationExt member variable too.

Change-Id: I2aa77e5c1819a80ba18f67c0f65b2d47dbaa0303
This commit is contained in:
Kunal Mehta 2017-08-22 16:08:50 -07:00
parent 227dc9f1cc
commit 139a8aafea

View file

@ -44,6 +44,11 @@ class LintErrorsPager extends TablePager {
*/
private $linkRenderer;
/**
* @var bool
*/
private $haveParserMigrationExt;
/**
* @var int|null
*/
@ -98,7 +103,7 @@ class LintErrorsPager extends TablePager {
$row->linter_cat = $this->categoryId;
$lintError = Database::makeLintError( $row );
if ( $this->haveParserMigrationExt &&
$categoryManager->needsParserMigrationEdit( $name )
$this->categoryManager->needsParserMigrationEdit( $name )
) {
$editAction = 'parsermigration-edit';
} else {