Index: trunk/phase3/includes/cache/LinkCache.php |
— | — | @@ -114,15 +114,9 @@ |
115 | 115 | */ |
116 | 116 | public function clearLink( $title ) { |
117 | 117 | $dbkey = $title->getPrefixedDbKey(); |
118 | | - if( isset($this->mBadLinks[$dbkey]) ) { |
119 | | - unset($this->mBadLinks[$dbkey]); |
120 | | - } |
121 | | - if( isset($this->mGoodLinks[$dbkey]) ) { |
122 | | - unset($this->mGoodLinks[$dbkey]); |
123 | | - } |
124 | | - if( isset($this->mGoodLinkFields[$dbkey]) ) { |
125 | | - unset($this->mGoodLinkFields[$dbkey]); |
126 | | - } |
| 118 | + unset( $this->mBadLinks[$dbkey] ); |
| 119 | + unset( $this->mGoodLinks[$dbkey] ); |
| 120 | + unset( $this->mGoodLinkFields[$dbkey] ); |
127 | 121 | } |
128 | 122 | |
129 | 123 | public function getGoodLinks() { return $this->mGoodLinks; } |