Make WikiPage::prepareTextForEdit() emit deprecation warnings
authorReedy <reedy@wikimedia.org>
Thu, 6 Oct 2016 13:27:20 +0000 (14:27 +0100)
committerReedy <reedy@wikimedia.org>
Thu, 6 Oct 2016 13:27:20 +0000 (14:27 +0100)
Bug: T146168
Change-Id: I2f68d920bf39d787d5143cd5dba4e09cb3635fe0

includes/page/WikiPage.php

index 98428dd..8748856 100644 (file)
@@ -2075,7 +2075,7 @@ class WikiPage implements Page, IDBAccessObject {
         * @return object
         */
        public function prepareTextForEdit( $text, $revid = null, User $user = null ) {
-               ContentHandler::deprecated( __METHOD__, '1.21' );
+               wfDeprecated( __METHOD__, '1.21' );
                $content = ContentHandler::makeContent( $text, $this->getTitle() );
                return $this->prepareContentForEdit( $content, $revid, $user );
        }