diff --git a/maintenance/SanctionsCreateTemplates.php b/maintenance/SanctionsCreateTemplates.php index b1ae8ca..e7a6386 100644 --- a/maintenance/SanctionsCreateTemplates.php +++ b/maintenance/SanctionsCreateTemplates.php @@ -100,7 +100,7 @@ protected function create( Title $title, WikitextContent $content ) { $article = new Article( $title ); $page = $article->getPage(); - if ( $page->getRevision() !== null ) { + if ( $page->getRevisionRecord() !== null ) { // template already exists, don't overwrite it return Status::newGood(); }