Index: trunk/extensions/MoodBar/SpecialMoodBarFeedback.php |
— | — | @@ -33,7 +33,7 @@ |
34 | 34 | } |
35 | 35 | |
36 | 36 | public function buildForm() { |
37 | | - global $wgRequest; |
| 37 | + global $wgRequest, $wgMoodBarConfig; |
38 | 38 | $filtersMsg = wfMessage( 'moodbar-feedback-filters' )->escaped(); |
39 | 39 | $typeMsg = wfMessage( 'moodbar-feedback-filters-type' )->escaped(); |
40 | 40 | $praiseMsg = wfMessage( 'moodbar-feedback-filters-type-happy' )->escaped(); |
— | — | @@ -42,6 +42,7 @@ |
43 | 43 | $usernameMsg = wfMessage( 'moodbar-feedback-filters-username' )->escaped(); |
44 | 44 | $setFiltersMsg = wfMessage( 'moodbar-feedback-filters-button' )->escaped(); |
45 | 45 | $whatIsMsg = wfMessage( 'moodbar-feedback-whatis' )->escaped(); |
| 46 | + $whatIsURL = htmlspecialchars( $wgMoodBarConfig['infoUrl'] ); |
46 | 47 | |
47 | 48 | $types = $wgRequest->getArray( 'type' ); |
48 | 49 | $happyCheckbox = Xml::check( 'type[]', in_array( 'happy', $types ), |
— | — | @@ -78,7 +79,7 @@ |
79 | 80 | $usernameTextbox |
80 | 81 | <button type="submit" id="fbd-filters-set">$setFiltersMsg</button> |
81 | 82 | </form> |
82 | | - <a href="#" id="fbd-about">$whatIsMsg</a> |
| 83 | + <a href="$whatIsURL" id="fbd-about">$whatIsMsg</a> |
83 | 84 | </div> |
84 | 85 | HTML; |
85 | 86 | } |
— | — | @@ -97,7 +98,7 @@ |
98 | 99 | $username = htmlspecialchars( $row->user_name === null ? $row->mbf_user_ip : $row->user_name ); |
99 | 100 | $links = Linker::userToolLinks( $row->mbf_user_id, $username ); |
100 | 101 | $comment = htmlspecialchars( $row->mbf_comment ); |
101 | | - $permalinkURL = $this->getTitle( $row->mbf_id )->getLinkURL(); |
| 102 | + $permalinkURL = htmlspecialchars( $this->getTitle( $row->mbf_id )->getLinkURL() ); |
102 | 103 | $permalinkText = wfMessage( 'moodbar-feedback-permalink' )->escaped(); |
103 | 104 | |
104 | 105 | $list .= <<<HTML |