r71544 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r71543‎ | r71544 | r71545 >
Date:01:46, 24 August 2010
Author:reedy
Status:deferred
Tags:
Comment:
Restricting addition of code to NS_MAIN
Modified paths:
  • /trunk/extensions/ArticleAssessmentPilot/ArticleAssessmentPilot.hooks.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ArticleAssessmentPilot/ArticleAssessmentPilot.hooks.php
@@ -6,7 +6,6 @@
77 * @file
88 * @ingroup Extensions
99 */
10 -
1110 class ArticleAssessmentPilotHooks {
1211
1312 /* Static Functions */
@@ -33,7 +32,14 @@
3433 }
3534
3635 public static function addCode( &$data, $skin ) {
 36+ $title = $skin->getTitle();
 37+
3738 //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+ }
3844
3945 //write the form
4046

Status & tagging log