diff options
author | 2019-04-11 12:18:10 -0400 | |
---|---|---|
committer | 2019-04-11 12:18:10 -0400 | |
commit | 1b0fbe023d0a91c20e7a0252d65fb955e1a87619 (patch) | |
tree | 6332263af2d6501e6b5e52c4094af0bfad288c56 | |
parent | Update Echo for 1.32 (diff) | |
download | extensions-1b0fbe023d0a91c20e7a0252d65fb955e1a87619.tar.gz extensions-1b0fbe023d0a91c20e7a0252d65fb955e1a87619.tar.bz2 extensions-1b0fbe023d0a91c20e7a0252d65fb955e1a87619.zip |
EditAccount: Update function for new MediaWiki
Signed-off-by: Brian Evans <grknight@gentoo.org>
-rw-r--r-- | EditAccount/SpecialEditAccount_body.php | 4 | ||||
-rw-r--r-- | EditAccount/extension.json | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/EditAccount/SpecialEditAccount_body.php b/EditAccount/SpecialEditAccount_body.php index b44b22c7..d9188325 100644 --- a/EditAccount/SpecialEditAccount_body.php +++ b/EditAccount/SpecialEditAccount_body.php @@ -615,9 +615,9 @@ class EditAccount extends SpecialPage { getcwd() . '/avatars/' . $dbName . '_' . $this->mUser->getId() . '_' . $size . '*' ); - wfSuppressWarnings(); + Wikimedia\suppressWarnings(); $img = basename( $files[0] ); - wfRestoreWarnings(); + Wikimedia\restoreWarnings(); if ( $img && $img[0] ) { unlink( getcwd() . '/avatars/' . $img ); } diff --git a/EditAccount/extension.json b/EditAccount/extension.json index 7a4ab1e2..ebe73e90 100644 --- a/EditAccount/extension.json +++ b/EditAccount/extension.json @@ -8,6 +8,9 @@ "url": "https://www.mediawiki.org/wiki/Extension:EditAccount", "descriptionmsg": "editaccount-desc", "type": "specialpage", + "requires": { + "MediaWiki": ">= 1.31.0" + }, "license-name": "GPL-2.0-or-later", "GroupPermissions": { "*": { |