Index: trunk/extensions/Translate/TranslateEditAddons.php |
— | — | @@ -19,6 +19,7 @@ |
20 | 20 | |
21 | 21 | /** |
22 | 22 | * Add some tabs for navigation for users who do not use Ajax interface. |
| 23 | + * @param $skin Skin |
23 | 24 | */ |
24 | 25 | static function addNavigationTabs( $skin, &$tabs ) { |
25 | 26 | global $wgRequest; |
— | — | @@ -34,7 +35,6 @@ |
35 | 36 | return true; |
36 | 37 | } |
37 | 38 | |
38 | | - |
39 | 39 | $collection = $group->initCollection( 'en' ); |
40 | 40 | $collection->filter( 'optional' ); |
41 | 41 | $keys = array_keys( $collection->keys() ); |
— | — | @@ -43,6 +43,7 @@ |
44 | 44 | $key = strtolower( strtr( $key, ' ', '_' ) ); |
45 | 45 | |
46 | 46 | $next = $prev = null; |
| 47 | + |
47 | 48 | foreach ( $keys as $index => $tkey ) { |
48 | 49 | if ( $key === strtolower( strtr( $tkey, ' ', '_' ) ) ) { |
49 | 50 | break; |
— | — | @@ -59,7 +60,6 @@ |
60 | 61 | $next = $keys[$index+1]; |
61 | 62 | } |
62 | 63 | |
63 | | - |
64 | 64 | $id = $group->getId(); |
65 | 65 | $ns = $title->getNamespace(); |
66 | 66 | |
— | — | @@ -107,12 +107,12 @@ |
108 | 108 | } |
109 | 109 | |
110 | 110 | protected static function addTab( $skin, &$tabs, $name, $data, &$index ) { |
111 | | - if ( $skin instanceof SkinVector ) { |
112 | | - $data['class'] = false; // Vector needs it for some reason |
113 | | - $tabs['namespaces'][$name] = $data; |
114 | | - } else { |
115 | | - array_splice( $tabs, $index++, 0, array( $name => $data ) ); |
116 | | - } |
| 111 | + if ( $skin instanceof SkinVector ) { |
| 112 | + $data['class'] = false; // Vector needs it for some reason |
| 113 | + $tabs['namespaces'][$name] = $data; |
| 114 | + } else { |
| 115 | + array_splice( $tabs, $index++, 0, array( $name => $data ) ); |
| 116 | + } |
117 | 117 | } |
118 | 118 | |
119 | 119 | /** |
— | — | @@ -378,7 +378,6 @@ |
379 | 379 | $dbw->insert( 'revtag', $conds, __METHOD__ ); |
380 | 380 | } |
381 | 381 | |
382 | | - |
383 | 382 | // Diffs for changed messages. |
384 | 383 | if ( $fuzzy !== false ) { |
385 | 384 | return true; |