mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/OATHAuth
synced 2024-11-28 10:10:19 +00:00
Replace usages of Wikimedia\(suppress|restore)Warnings()
Change-Id: Iac7480957819652d487e177bc9caf0c8c3db83e4
This commit is contained in:
parent
e3ef5d1619
commit
211c1cb930
|
@ -7,6 +7,7 @@ use DatabaseUpdater;
|
|||
use FormatJson;
|
||||
use MediaWiki\MediaWikiServices;
|
||||
use Wikimedia;
|
||||
use Wikimedia\AtEase\AtEase;
|
||||
use Wikimedia\Rdbms\IDatabase;
|
||||
|
||||
class UpdateTables {
|
||||
|
@ -313,9 +314,9 @@ class UpdateTables {
|
|||
);
|
||||
|
||||
foreach ( $res as $row ) {
|
||||
Wikimedia\suppressWarnings();
|
||||
AtEase::suppressWarnings();
|
||||
$scratchTokens = unserialize( base64_decode( $row->scratch_tokens ) );
|
||||
Wikimedia\restoreWarnings();
|
||||
AtEase::restoreWarnings();
|
||||
if ( $scratchTokens ) {
|
||||
$db->update(
|
||||
'oathauth_users',
|
||||
|
|
Loading…
Reference in a new issue