diff options
Diffstat (limited to 'includes/api/ApiDelete.php')
-rw-r--r-- | includes/api/ApiDelete.php | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/includes/api/ApiDelete.php b/includes/api/ApiDelete.php index 762a583eb36b..3c2c0bea3753 100644 --- a/includes/api/ApiDelete.php +++ b/includes/api/ApiDelete.php @@ -248,15 +248,12 @@ class ApiDelete extends ApiBase { } } - if ( $reason === null ) { // Log and RC don't like null reasons - $reason = ''; - } - return FileDeleteForm::doDelete( $title, $file, $oldimage, - $reason, + // Log and RC don't like null reasons + $reason ?? '', $suppress, $this->getUser(), $tags, |