/**
* Replace internal links
+ * @suppress SecurityCheck-XSS Gets confused with $entry['pdbk']
* @param string &$text
*/
protected function replaceInternal( &$text ) {
/**
* Replace interwiki links
* @param string &$text
+ * @suppress SecurityCheck-XSS Gets confused with $this->interwikis['pdbk']
*/
protected function replaceInterwiki( &$text ) {
if ( empty( $this->interwikis ) ) {
* @private
*/
public function replaceTextCallback( $matches ) {
- $type = $matches[1];
- $key = $matches[2];
+ list( , $type, $key ) = $matches;
if ( $type == 'LINK' ) {
list( $ns, $index ) = explode( ':', $key, 2 );
if ( isset( $this->internals[$ns][$index]['text'] ) ) {