$restrictions = $titleObject->getRestrictions( strtolower( $type ) );
# Title::getRestrictions returns an array, its possible it may have
# multiple values in the future
- return implode( $restrictions, ',' );
+ return implode( ',', $restrictions );
}
return '';
}
foreach ( $sources[0] as $sourceTitle ) {
$names[] = $sourceTitle->getPrefixedText();
}
- return implode( $names, '|' );
+ return implode( '|', $names );
}
return '';
}