Skip to content
This repository has been archived by the owner on Jun 30, 2024. It is now read-only.

Commit

Permalink
Replace deprecated WikiPage::getRevision()
Browse files Browse the repository at this point in the history
  • Loading branch information
lens0021 committed Aug 12, 2020
1 parent 7883414 commit 4083ac5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion maintenance/SanctionsCreateTemplates.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 4083ac5

Please sign in to comment.