diff options
author | 2018-11-25 09:22:20 -0500 | |
---|---|---|
committer | 2018-11-25 09:22:20 -0500 | |
commit | bbd1007e15edf8ccfa5ee5434548cb5c3528f40a (patch) | |
tree | fc27fa9800d834907cccd49127a1d0d6ff7ea7cf /MLEB | |
parent | Translate: Fix logic error with is_callable (diff) | |
download | extensions-bbd1007e15edf8ccfa5ee5434548cb5c3528f40a.tar.gz extensions-bbd1007e15edf8ccfa5ee5434548cb5c3528f40a.tar.bz2 extensions-bbd1007e15edf8ccfa5ee5434548cb5c3528f40a.zip |
Translate: Fix more is_callable errors
Signed-off-by: Brian Evans <grknight@gentoo.org>
Diffstat (limited to 'MLEB')
-rw-r--r-- | MLEB/Translate/MessageCollection.php | 2 | ||||
-rw-r--r-- | MLEB/Translate/scripts/characterEditStats.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/MLEB/Translate/MessageCollection.php b/MLEB/Translate/MessageCollection.php index 9d158310..ac065be0 100644 --- a/MLEB/Translate/MessageCollection.php +++ b/MLEB/Translate/MessageCollection.php @@ -694,7 +694,7 @@ class MessageCollection implements ArrayAccess, Iterator, Countable { $dbr = TranslateUtils::getSafeReadDB(); - if ( is_callable( Revision::class, 'getQueryInfo' ) ) { + if ( is_callable( [ 'Revision', 'getQueryInfo' ] ) ) { $revQuery = Revision::getQueryInfo( [ 'page', 'text' ] ); } else { $revQuery = [ diff --git a/MLEB/Translate/scripts/characterEditStats.php b/MLEB/Translate/scripts/characterEditStats.php index 69db5a27..775a9649 100644 --- a/MLEB/Translate/scripts/characterEditStats.php +++ b/MLEB/Translate/scripts/characterEditStats.php @@ -113,7 +113,7 @@ class CharacterEditStats extends Maintenance { $cutoff = $dbr->addQuotes( $dbr->timestamp( time() - $days * 24 * 3600 ) ); // The field renames are to be compatible with recentchanges table query - if ( is_callable( Revision::class, 'getQueryInfo' ) ) { + if ( is_callable( [ 'Revision', 'getQueryInfo' ] ) ) { $revQuery = Revision::getQueryInfo( [ 'page' ] ); $revUserText = isset( $revQuery['fields']['rev_user_text'] ) ? $revQuery['fields']['rev_user_text'] |