WikiPage::getUsedTemplates() was removed

Change-Id: I5c17a57042025b2f72083a97034a5a2dd6c8cfb5
This commit is contained in:
Reedy 2016-01-02 02:56:17 +00:00
parent d85322a862
commit cfaf26e501
2 changed files with 1 additions and 11 deletions

View file

@ -196,6 +196,7 @@ changes to languages because of Phabricator reports.
TextPassDumper classes have been removed.
* The maintenance/backupTextPass.inc file was deleted. You should include
maintenance/dumpTextPass.php instead.
* WikiPage::getUsedTemplates() was removed (deprecated since 1.19).
== Compatibility ==

View file

@ -3559,17 +3559,6 @@ class WikiPage implements Page, IDBAccessObject {
}
}
/**
* Return a list of templates used by this article.
* Uses the templatelinks table
*
* @deprecated since 1.19; use Title::getTemplateLinksFrom()
* @return array Array of Title objects
*/
public function getUsedTemplates() {
return $this->mTitle->getTemplateLinksFrom();
}
/**
* This function is called right before saving the wikitext,
* so we can do things like signatures and links-in-context.