X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialAllMessages.php;h=ed1c903c5eb2ffaf8758c993e0bad2ccb5043a37;hb=46a13941f98d14a49103a49fb1a586b6c69eca66;hp=6a86af2d8789898c6dd2d55df6b99f6e68f4c967;hpb=d864012f338917db791c234675ab7a5b427ade98;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialAllMessages.php b/includes/specials/SpecialAllMessages.php index 6a86af2d87..ed1c903c5e 100644 --- a/includes/specials/SpecialAllMessages.php +++ b/includes/specials/SpecialAllMessages.php @@ -130,7 +130,7 @@ class AllMessagesTablePager extends TablePager { if ( $prefix !== null ) { $this->displayPrefix = $prefix->getDBkey(); - $this->prefix = '/^' . preg_quote( $this->displayPrefix ) . '/i'; + $this->prefix = '/^' . preg_quote( $this->displayPrefix, '/' ) . '/i'; } else { $this->displayPrefix = false; $this->prefix = false; @@ -206,7 +206,7 @@ class AllMessagesTablePager extends TablePager { Xml::label( $this->msg( 'table_pager_limit_label' )->text(), 'mw-table_pager_limit_label' ) . ' ' . - $this->getLimitSelect() . + $this->getLimitSelect( array( 'id' => 'mw-table_pager_limit_label' ) ) . ' @@ -392,10 +392,10 @@ class AllMessagesTablePager extends TablePager { ); } - return $title . ' ' - . $this->msg( 'parentheses' )->rawParams( $talk )->escaped() - . ' ' - . $this->msg( 'parentheses' )->rawParams( $translation )->escaped(); + return $title . ' ' . + $this->msg( 'parentheses' )->rawParams( $talk )->escaped() . + ' ' . + $this->msg( 'parentheses' )->rawParams( $translation )->escaped(); case 'am_default' : case 'am_actual' : @@ -445,7 +445,11 @@ class AllMessagesTablePager extends TablePager { } elseif ( $field === 'am_title' ) { return array( 'class' => $field ); } else { - return array( 'lang' => $this->langcode, 'dir' => $this->lang->getDir(), 'class' => $field ); + return array( + 'lang' => wfBCP47( $this->langcode ), + 'dir' => $this->lang->getDir(), + 'class' => $field + ); } }