Matches the default parameters of Title::newFromText().
Change-Id: Id08312d424be9ae7e64688bb21687204ae77c560
* @throws MalformedTitleException
* @return TitleValue
*/
- public function parseTitle( $text, $defaultNamespace ) {
+ public function parseTitle( $text, $defaultNamespace = NS_MAIN ) {
// NOTE: this is an ugly cludge that allows this class to share the
// code for parsing with the old Title class. The parser code should
// be refactored to avoid this.
* @throws MalformedTitleException If the text is not a valid representation of a page title.
* @return TitleValue
*/
- public function parseTitle( $text, $defaultNamespace );
+ public function parseTitle( $text, $defaultNamespace = NS_MAIN );
}