Change nameSpace to all lowercase everywhere.

Makes it consistent with MW's spelling of the term.
This commit is contained in:
Daniel Kraus
2017-08-31 13:56:42 +02:00
parent 352add204f
commit 6bf1d3f072
6 changed files with 25 additions and 25 deletions

View File

@ -39,7 +39,7 @@ class Extension {
// Only process if page is in one of our namespaces we want to link
// Fixes ugly autolinking of sidebar pages
if ( in_array( $title->getNamespace(), $config->nameSpaces )) {
if ( in_array( $title->getNamespace(), $config->namespaces )) {
$text = $content->getContentHandler()->serializeContent( $content );
if ( !\MagicWord::get( 'MAG_LINKTITLES_NOAUTOLINKS' )->match( $text ) ) {
$linker = new Linker( $config );
@ -65,7 +65,7 @@ class Extension {
// If the page contains the magic word '__NOAUTOLINKS__', do not parse it.
// Only process if page is in one of our namespaces we want to link
if ( !\MagicWord::get( 'MAG_LINKTITLES_NOAUTOLINKS' )->match( $text ) &&
in_array( $title->getNamespace(), $config->nameSpaces ) ) {
in_array( $title->getNamespace(), $config->namespaces ) ) {
$linker = new Linker( $config );
$text = $linker->linkContent( $title, $text );
}