Make WikiPage::getAutosummary emit deprecation warnings.
authordaniel <daniel.kinzler@wikimedia.de>
Sat, 24 Sep 2016 15:15:08 +0000 (17:15 +0200)
committerReedy <reedy@wikimedia.org>
Thu, 29 Sep 2016 09:00:00 +0000 (09:00 +0000)
Bug: T146164
Change-Id: Ibe76af8af3686c028e54923b9ce01b93af3032ab

includes/page/WikiPage.php

index 9befdcd..928fc14 100644 (file)
@@ -3553,7 +3553,7 @@ class WikiPage implements Page, IDBAccessObject {
                // NOTE: stub for backwards-compatibility. assumes the given text is
                // wikitext. will break horribly if it isn't.
 
-               ContentHandler::deprecated( __METHOD__, '1.21' );
+               wfDeprecated( __METHOD__, '1.21' );
 
                $handler = ContentHandler::getForModelID( CONTENT_MODEL_WIKITEXT );
                $oldContent = is_null( $oldtext ) ? null : $handler->unserializeContent( $oldtext );