mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/OATHAuth
synced 2024-11-24 16:25:23 +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 FormatJson;
|
||||||
use MediaWiki\MediaWikiServices;
|
use MediaWiki\MediaWikiServices;
|
||||||
use Wikimedia;
|
use Wikimedia;
|
||||||
|
use Wikimedia\AtEase\AtEase;
|
||||||
use Wikimedia\Rdbms\IDatabase;
|
use Wikimedia\Rdbms\IDatabase;
|
||||||
|
|
||||||
class UpdateTables {
|
class UpdateTables {
|
||||||
|
@ -313,9 +314,9 @@ class UpdateTables {
|
||||||
);
|
);
|
||||||
|
|
||||||
foreach ( $res as $row ) {
|
foreach ( $res as $row ) {
|
||||||
Wikimedia\suppressWarnings();
|
AtEase::suppressWarnings();
|
||||||
$scratchTokens = unserialize( base64_decode( $row->scratch_tokens ) );
|
$scratchTokens = unserialize( base64_decode( $row->scratch_tokens ) );
|
||||||
Wikimedia\restoreWarnings();
|
AtEase::restoreWarnings();
|
||||||
if ( $scratchTokens ) {
|
if ( $scratchTokens ) {
|
||||||
$db->update(
|
$db->update(
|
||||||
'oathauth_users',
|
'oathauth_users',
|
||||||
|
|
Loading…
Reference in a new issue