AllMessagesTablePager: Use $this->msg instead of wfMessage
authorFomafix <fomafix@googlemail.com>
Sat, 9 Jun 2018 17:05:15 +0000 (19:05 +0200)
committerKrinkle <krinklemail@gmail.com>
Fri, 24 May 2019 22:01:48 +0000 (22:01 +0000)
Change-Id: I20850e20b2749e4fe3391d5d3fbdb7dadbfced8d

includes/specials/pagers/AllMessagesTablePager.php

index 8120417..6facda1 100644 (file)
@@ -188,8 +188,8 @@ class AllMessagesTablePager extends TablePager {
                                ( $asc && ( $key < $offset || !$offset ) || !$asc && $key > $offset ) &&
                                ( ( $this->prefix && preg_match( $this->prefix, $key ) ) || $this->prefix === false )
                        ) {
-                               $actual = wfMessage( $key )->inLanguage( $this->lang )->plain();
-                               $default = wfMessage( $key )->inLanguage( $this->lang )->useDatabase( false )->plain();
+                               $actual = $this->msg( $key )->inLanguage( $this->lang )->plain();
+                               $default = $this->msg( $key )->inLanguage( $this->lang )->useDatabase( false )->plain();
                                $result->result[] = [
                                        'am_title' => $key,
                                        'am_actual' => $actual,