updateSpecialPages: Get rid of dead SpecialPage::getFile() code
That method doesn't exist any more. Change-Id: I35eb8e2d7e77a6fcb17187356bafd92cfede6b40
This commit is contained in:
parent
36e17cb902
commit
f98db63ff1
1 changed files with 3 additions and 5 deletions
|
|
@ -71,11 +71,9 @@ class UpdateSpecialPages extends Maintenance {
|
|||
if ( $specialObj instanceof QueryPage ) {
|
||||
$queryPage = $specialObj;
|
||||
} else {
|
||||
if ( !class_exists( $class ) ) {
|
||||
$file = $specialObj->getFile();
|
||||
require_once $file;
|
||||
}
|
||||
$queryPage = new $class;
|
||||
$class = get_class( $specialObj );
|
||||
$this->error( "$class is not an instance of QueryPage.\n", 1 );
|
||||
die;
|
||||
}
|
||||
|
||||
if ( !$this->hasOption( 'only' ) || $this->getOption( 'only' ) == $queryPage->getName() ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue