From: Alexandre Emsenhuber Date: Mon, 18 Feb 2013 11:05:25 +0000 (+0100) Subject: Use $this->checkReadOnly() for read only database check in Special:Invalidateemail X-Git-Tag: 1.31.0-rc.0~20624^2 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/modifier.php?a=commitdiff_plain;h=54234b06fd56548fa8e931aa5adddd20cfdca94b;p=lhc%2Fweb%2Fwiklou.git Use $this->checkReadOnly() for read only database check in Special:Invalidateemail This makes that check consistent with the one used in Special:Confirmemail. Change-Id: I5f25c39f0fe6d3e362874f74d9b64fb330446abc --- diff --git a/includes/specials/SpecialConfirmemail.php b/includes/specials/SpecialConfirmemail.php index 3e9ce128e9..85a415d915 100644 --- a/includes/specials/SpecialConfirmemail.php +++ b/includes/specials/SpecialConfirmemail.php @@ -145,9 +145,7 @@ class EmailInvalidation extends UnlistedSpecialPage { function execute( $code ) { $this->setHeaders(); - if ( wfReadOnly() ) { - throw new ReadOnlyError; - } + $this->checkReadOnly(); $this->attemptInvalidate( $code ); }