Index: trunk/extensions/FlaggedRevs/FlaggedRevs.php |
— | — | @@ -413,9 +413,8 @@ |
414 | 414 | # Override redirect behavior... |
415 | 415 | $wgHooks['InitializeArticleMaybeRedirect'][] = 'FlaggedRevsHooks::overrideRedirect'; |
416 | 416 | # Set page view tabs |
417 | | -$wgHooks['SkinTemplateTabs'][] = 'FlaggedRevsHooks::setActionTabs'; |
418 | | -# Set navigation |
419 | | -$wgHooks['SkinTemplateNavigation'][] = 'FlaggedRevsHooks::setNavigation'; |
| 417 | +$wgHooks['SkinTemplateTabs'][] = 'FlaggedRevsHooks::setActionTabs'; // Most skins |
| 418 | +$wgHooks['SkinTemplateNavigation'][] = 'FlaggedRevsHooks::setNavigation'; // Vector |
420 | 419 | # Add notice tags to edit view |
421 | 420 | $wgHooks['EditPage::showEditForm:initial'][] = 'FlaggedRevsHooks::addToEditView'; |
422 | 421 | # Add draft link to section edit error |
Index: trunk/extensions/FlaggedRevs/FlaggedRevsLogs.php |
— | — | @@ -27,10 +27,12 @@ |
28 | 28 | global $wgUser; |
29 | 29 | # Add history link showing edits right before the config change |
30 | 30 | $links = ' ('; |
31 | | - $links .= $wgUser->getSkin()->link( $title, |
| 31 | + $links .= $wgUser->getSkin()->link( |
| 32 | + $title, |
32 | 33 | wfMsgHtml( 'hist' ), |
33 | 34 | array(), |
34 | | - array( 'action' => 'history', 'offset' => $timestamp ) ); |
| 35 | + array( 'action' => 'history', 'offset' => $timestamp ) |
| 36 | + ); |
35 | 37 | $links .= ')'; |
36 | 38 | return $links; |
37 | 39 | } |
— | — | @@ -52,9 +54,11 @@ |
53 | 55 | ? 'review-logentry-diff2' // unreviewed |
54 | 56 | : 'review-logentry-diff'; // reviewed |
55 | 57 | $links .= '('; |
56 | | - $links .= $wgUser->getSkin()->makeKnownLinkObj( $title, |
| 58 | + $links .= $wgUser->getSkin()->makeKnownLinkObj( |
| 59 | + $title, |
57 | 60 | wfMsgHtml( $msg ), |
58 | | - "oldid={$oldStable}&diff={$revId}" ); |
| 61 | + "oldid={$oldStable}&diff={$revId}" |
| 62 | + ); |
59 | 63 | $links .= ')'; |
60 | 64 | } |
61 | 65 | # Show a diff link to this revision |
— | — | @@ -63,9 +67,11 @@ |
64 | 68 | : $params[2]; |
65 | 69 | $time = $wgLang->timeanddate( $ts ); |
66 | 70 | $links .= ' ('; |
67 | | - $links .= $wgUser->getSkin()->makeKnownLinkObj( $title, |
| 71 | + $links .= $wgUser->getSkin()->makeKnownLinkObj( |
| 72 | + $title, |
68 | 73 | wfMsgHtml( 'review-logentry-id', $revId, $time ), |
69 | | - "oldid={$revId}&diff=prev&diffonly=0" ); |
| 74 | + "oldid={$revId}&diff=prev&diffonly=0" |
| 75 | + ); |
70 | 76 | $links .= ')'; |
71 | 77 | } |
72 | 78 | return $links; |