Index: trunk/extensions/Storyboard/Storyboard.php |
— | — | @@ -70,7 +70,7 @@ |
71 | 71 | // as they should, since they are only getting called for content pages. There is no |
72 | 72 | // good reason why they are not called on special pages, sho this should be changed in core. |
73 | 73 | $wgHooks['SkinTemplateTabs'][] = 'efStoryboardAddStoryEditAction'; |
74 | | -$wgHooks['SkinTemplateNavigation'][] = 'efStoryboardAddStoryEditActionVector'; |
| 74 | +$wgHooks['SkinTemplateNavigation::SpecialPage'][] = 'efStoryboardAddStoryEditActionVector'; |
75 | 75 | |
76 | 76 | |
77 | 77 | /** |
— | — | @@ -125,15 +125,16 @@ |
126 | 126 | } |
127 | 127 | |
128 | 128 | function efStoryboardAddStoryEditAction( &$sktemplate, &$content_actions ) { |
129 | | - global $wgRequest, $wgRequest, $wgTitle; |
| 129 | + global $wgRequest; |
130 | 130 | |
131 | 131 | $action = $wgRequest->getText( 'action' ); |
| 132 | + $title = $sktemplate->getTitle(); |
132 | 133 | |
133 | | - if ( $wgTitle->equals( SpecialPage::getTitleFor( 'story' ) ) ) { |
| 134 | + if ( $title->isSpecial( 'Story' ) ) { |
134 | 135 | $content_actions['edit'] = array( |
135 | 136 | 'class' => $action == 'edit' ? 'selected' : false, |
136 | 137 | 'text' => wfMsg( 'edit' ), |
137 | | - 'href' => $wgTitle->getLocalUrl( 'action=edit' ) |
| 138 | + 'href' => $title->getLocalUrl( 'action=edit' ) |
138 | 139 | ); |
139 | 140 | } |
140 | 141 | |
— | — | @@ -181,4 +182,4 @@ |
182 | 183 | global $wgOut; |
183 | 184 | $wgOut->addInlineScript( $js ); |
184 | 185 | } |
185 | | -} |
\ No newline at end of file |
| 186 | +} |