Index: trunk/phase3/includes/Title.php |
— | — | @@ -1258,6 +1258,11 @@ |
1259 | 1259 | public function getTitleProtection() { |
1260 | 1260 | $dbr = wfGetDB( DB_SLAVE ); |
1261 | 1261 | |
| 1262 | + // Can't protect pages in special namespaces |
| 1263 | + if ( $this->getNamespace() < NS_MAIN ) { |
| 1264 | + return false; |
| 1265 | + } |
| 1266 | + |
1262 | 1267 | $res = $dbr->select( 'protected_titles', '*', |
1263 | 1268 | array ('pt_namespace' => $this->getNamespace(), 'pt_title' => $this->getDBKey()) ); |
1264 | 1269 | |