public function appendProtocols( $property ) {
global $wgUrlProtocols;
- $this->getResult()->setIndexedTagName( $wgUrlProtocols, 'p' );
- return $this->getResult()->addValue( 'query', $property, $wgUrlProtocols );
+ // Make a copy of the global so we don't try to set the _element key of it - bug 45130
+ $protocols = array_values( $wgUrlProtocols );
+ $this->getResult()->setIndexedTagName( $protocols, 'p' );
+ return $this->getResult()->addValue( 'query', $property, $protocols );
}
private function formatParserTags( $item ) {