Index: trunk/extensions/OpenSearchXml/ApiOpenSearchXml.php |
— | — | @@ -89,9 +89,8 @@ |
90 | 90 | } |
91 | 91 | |
92 | 92 | protected function formatItem( $name ) { |
93 | | - $title = TItle::newFromText( $name ); |
| 93 | + $title = Title::newFromText( $name ); |
94 | 94 | if( $title ) { |
95 | | - $title = $this->_checkRedirect( $title ); |
96 | 95 | if( $this->_seen( $title ) ) { |
97 | 96 | return false; |
98 | 97 | } |
— | — | @@ -116,16 +115,6 @@ |
117 | 116 | return $item; |
118 | 117 | } |
119 | 118 | |
120 | | - protected function _checkRedirect( $title ) { |
121 | | - $art = new Article( $title ); |
122 | | - $target = $art->getRedirectTarget(); |
123 | | - if( $target ) { |
124 | | - return $target; |
125 | | - } else { |
126 | | - return $title; |
127 | | - } |
128 | | - } |
129 | | - |
130 | 119 | protected function _seen( $title ) { |
131 | 120 | $name = $title->getPrefixedText(); |
132 | 121 | if( isset( $this->mSeen[$name] ) ) { |