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