Index: trunk/phase3/includes/specials/SpecialExport.php |
— | — | @@ -175,8 +175,8 @@ |
176 | 176 | |
177 | 177 | private function userCanOverrideExportDepth() { |
178 | 178 | global $wgUser; |
179 | | - |
180 | | - return in_array( 'override-export-depth', $wgUser->getRights()); |
| 179 | + |
| 180 | + return $wgUser->isAllowed( 'override-export-depth' ); |
181 | 181 | } |
182 | 182 | |
183 | 183 | /** |