* For example, if a page supports subpages "foo", "bar" and "baz" (as in Special:PageName/foo,
* etc.):
*
- * - `prefixSearchSubpages( "ba" )` should return `array( "bar", "baz" )`
- * - `prefixSearchSubpages( "f" )` should return `array( "foo" )`
- * - `prefixSearchSubpages( "z" )` should return `array()`
- * - `prefixSearchSubpages( "" )` should return `array( foo", "bar", "baz" )`
+ * - `prefixSearchSubpages( "ba" )` should return `[ "bar", "baz" ]`
+ * - `prefixSearchSubpages( "f" )` should return `[ "foo" ]`
+ * - `prefixSearchSubpages( "z" )` should return `[]`
+ * - `prefixSearchSubpages( "" )` should return `[ foo", "bar", "baz" ]`
*
* @param string $search Prefix to search for
* @param int $limit Maximum number of results to return (usually 10)
return $this->msg( strtolower( $this->mName ) )->text();
}
- /**
- * Get a self-referential title object
- *
- * @param string|bool $subpage
- * @return Title
- * @deprecated since 1.23, use SpecialPage::getPageTitle
- */
- function getTitle( $subpage = false ) {
- wfDeprecated( __METHOD__, '1.23' );
- return $this->getPageTitle( $subpage );
- }
-
/**
* Get a self-referential title object
*