Index: trunk/extensions/Translate/tag/PageTranslationHooks.php |
— | — | @@ -16,7 +16,13 @@ |
17 | 17 | // Uuugly hack |
18 | 18 | static $allowTargetEdit = false; |
19 | 19 | |
20 | | - /// Hook: ParserBeforeStrip |
| 20 | + /** |
| 21 | + * Hook: ParserBeforeStrip |
| 22 | + * @param $parser Parser |
| 23 | + * @param $text |
| 24 | + * @param $state |
| 25 | + * @return bool |
| 26 | + */ |
21 | 27 | public static function renderTagPage( $parser, &$text, $state ) { |
22 | 28 | $title = $parser->getTitle(); |
23 | 29 | |
Index: trunk/extensions/AbuseFilter/Views/AbuseFilterViewRevert.php |
— | — | @@ -7,14 +7,12 @@ |
8 | 8 | function show() { |
9 | 9 | $filter = $this->mPage->mFilter; |
10 | 10 | |
11 | | - global $wgUser, $wgOut; |
12 | 11 | $user = $this->getUser(); |
13 | 12 | $out = $this->getOutput(); |
14 | 13 | $sk = $this->getSkin(); |
15 | 14 | |
16 | 15 | if ( !$user->isAllowed( 'abusefilter-revert' ) ) { |
17 | 16 | throw new PermissionsError( 'abusefilter-revert' ); |
18 | | - return; |
19 | 17 | } |
20 | 18 | |
21 | 19 | $this->loadParameters(); |