if ( $out->isArticle() && MWNamespace::hasSubpages( $out->getTitle()->getNamespace() ) ) {
$ptext = $this->getTitle()->getPrefixedText();
- if ( preg_match( '/\//', $ptext ) ) {
+ if ( strpos( $ptext, '/' ) !== false ) {
$links = explode( '/', $ptext );
array_pop( $links );
$c = 0;
public function linkKnown(
$target,
$html = null,
- $customAttribs = [ ],
- $query = [ ],
+ $customAttribs = [],
+ $query = [],
$options = [ 'known', 'noclasses' ]
) {
wfDeprecated( __METHOD__, '1.21' );