dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ae51814
)
Simpler code
author
Robin Pepermans
<robin@users.mediawiki.org>
Thu, 30 Jun 2011 15:20:57 +0000
(15:20 +0000)
committer
Robin Pepermans
<robin@users.mediawiki.org>
Thu, 30 Jun 2011 15:20:57 +0000
(15:20 +0000)
includes/Pager.php
patch
|
blob
|
history
diff --git
a/includes/Pager.php
b/includes/Pager.php
index
3d87eb7
..
0e04eac
100644
(file)
--- a/
includes/Pager.php
+++ b/
includes/Pager.php
@@
-945,7
+945,7
@@
abstract class TablePager extends IndexPager {
* A navigation bar with images
*/
function getNavigationBar() {
* A navigation bar with images
*/
function getNavigationBar() {
- global $wgStylePath
, $wgContLang, $wgLang, $wgBetterDirectionality
;
+ global $wgStylePath;
if ( !$this->isNavigationBarShown() ) {
return '';
if ( !$this->isNavigationBarShown() ) {
return '';
@@
-970,8
+970,7
@@
abstract class TablePager extends IndexPager {
'next' => 'arrow_disabled_right_25.png',
'last' => 'arrow_disabled_last_25.png',
);
'next' => 'arrow_disabled_right_25.png',
'last' => 'arrow_disabled_last_25.png',
);
- $isRTL = ( $wgBetterDirectionality ? $wgLang->isRTL() : $wgContLang->isRTL() );
- if( $isRTL ) {
+ if( wfUILang()->isRTL() ) {
$keys = array_keys( $labels );
$images = array_combine( $keys, array_reverse( $images ) );
$disabledImages = array_combine( $keys, array_reverse( $disabledImages ) );
$keys = array_keys( $labels );
$images = array_combine( $keys, array_reverse( $images ) );
$disabledImages = array_combine( $keys, array_reverse( $disabledImages ) );