Index: trunk/extensions/ArticleAssessmentPilot/ArticleAssessmentPilot.hooks.php |
— | — | @@ -46,6 +46,7 @@ |
47 | 47 | } |
48 | 48 | |
49 | 49 | public static function addResources( $out ) { |
| 50 | + |
50 | 51 | $title = $out->getTitle(); |
51 | 52 | |
52 | 53 | // Chances are we only want to be rating Mainspace, right? |
— | — | @@ -53,6 +54,13 @@ |
54 | 55 | return true; |
55 | 56 | } |
56 | 57 | |
| 58 | + global $wgRequest; |
| 59 | + |
| 60 | + // Only show for view actions. |
| 61 | + if ( $wgRequest->getVal( 'action' ) !== null && $wgRequest->getVal( 'action' ) !== 'view' ) { |
| 62 | + return true; |
| 63 | + } |
| 64 | + |
57 | 65 | global $wgArticleAssessmentCategory; |
58 | 66 | |
59 | 67 | // check if this page should have the form |