diff --git "a/include/class-mw\\NsPart.php" "b/include/class-mw\\NsPart.php" index b34ba97..3983da4 100644 --- "a/include/class-mw\\NsPart.php" +++ "b/include/class-mw\\NsPart.php" @@ -1,46 +1,46 @@ . # MediaWiki namespace mw; /** * A string part of a wikilink, a namespace, etc. * * The first character is always capitalized. */ class NsPart extends TitlePartCapitalized { /** * Get a regex that matches this namespace part * * @return string */ - public function getRegex() { + public function getRegex( $unused = null ) { $s = $this->get(); if( $s ) { // normal namespace $s = \regex\Generic::insensitive( $this->get() ); $s = "{$s}[ _]*:"; } else { // main namespace, it can start with ':' $s = ':?'; } return $s; } } diff --git "a/include/class-mw\\Title.php" "b/include/class-mw\\Title.php" index 20803db..3bf4606 100644 --- "a/include/class-mw\\Title.php" +++ "b/include/class-mw\\Title.php" @@ -1,52 +1,52 @@ . # MediaWiki namespace mw; /** * A page Title without a namespace. * * See also CompleteTitle class. */ class Title extends TitlePartCapitalized { private $site; /** * Constructor * * @param $name string * @param $site object */ public function __construct( $name, $site ) { parent::__construct( $name ); $this->site = $site; } /** * Get a regex matching this title part * * @return string */ - public function getRegex() { + public function getRegex( $unused = null ) { return $this->site->hasCapitalLinks() ? $this->getRegexFirstCaseInsensitive() : parent::getRegex(); } }