Index: trunk/extensions/ArticleFeedbackv5/SpecialArticleFeedbackv5.php |
— | — | @@ -108,7 +108,14 @@ |
109 | 109 | return; |
110 | 110 | } |
111 | 111 | |
112 | | - # TODO: Fix links. |
| 112 | + $helpPage = 'Article_Feedback_Tool/Version_5/Help/Feedback_page'; |
| 113 | + if( $wgUser->isAllowed( 'aftv5-delete-feedback' ) ) { |
| 114 | + $helpPage = 'Article_Feedback_Tool/Version_5/Help/Feedback_page_Oversighters'; |
| 115 | + } elseif( $wgUser->isAllowed( 'aftv5-hide-feedback' ) ) { |
| 116 | + $helpPage = 'Article_Feedback_Tool/Version_5/Help/Feedback_page_Hiders'; |
| 117 | + } |
| 118 | + |
| 119 | + $helpTitle = Title::newFromText( $helpPage, 'Wikipedia' ); |
113 | 120 | $out->addHTML( |
114 | 121 | Html::openElement( |
115 | 122 | 'div', |
— | — | @@ -129,7 +136,7 @@ |
130 | 137 | ) |
131 | 138 | . ' | ' . |
132 | 139 | Linker::link( |
133 | | - $title, |
| 140 | + $helpTitle, |
134 | 141 | $this->msg( 'articlefeedbackv5-whats-this' )->escaped() |
135 | 142 | ) |
136 | 143 | . Html::closeElement( 'div' ) |