Index: trunk/extensions/ArticleAssessmentPilot/ArticleAssessmentPilot.hooks.php |
— | — | @@ -6,7 +6,6 @@ |
7 | 7 | * @file |
8 | 8 | * @ingroup Extensions |
9 | 9 | */ |
10 | | - |
11 | 10 | class ArticleAssessmentPilotHooks { |
12 | 11 | |
13 | 12 | /* Static Functions */ |
— | — | @@ -33,7 +32,14 @@ |
34 | 33 | } |
35 | 34 | |
36 | 35 | public static function addCode( &$data, $skin ) { |
| 36 | + $title = $skin->getTitle(); |
| 37 | + |
37 | 38 | //check if this page should have the form |
| 39 | + |
| 40 | + //Chances are we only want to be rating Mainspace, right? |
| 41 | + if ( $title->getNamespace() !== NS_MAIN ) { |
| 42 | + return true; |
| 43 | + } |
38 | 44 | |
39 | 45 | //write the form |
40 | 46 | |