From: Alexandre Emsenhuber Date: Sat, 15 Jan 2011 16:07:49 +0000 (+0000) Subject: Added wfDeprecated() to Article::insertNewArticle() and Article::updateArticle()... X-Git-Tag: 1.31.0-rc.0~32517 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/password.php?a=commitdiff_plain;h=151e665515a870d4d7aee0721905465750a9ad5f;p=lhc%2Fweb%2Fwiklou.git Added wfDeprecated() to Article::insertNewArticle() and Article::updateArticle(). The last usage of these two methods was removed in r80402. --- diff --git a/includes/Article.php b/includes/Article.php index 0031c2ae21..b0a176430c 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -1941,11 +1941,11 @@ class Article { } /** - * This function is not deprecated until somebody fixes the core not to use - * it. Nevertheless, use Article::doEdit() instead. - * @deprecated @since 1.7 + * @deprecated @since 1.7 use Article::doEdit() */ function insertNewArticle( $text, $summary, $isminor, $watchthis, $suppressRC = false, $comment = false, $bot = false ) { + wfDeprecated( __METHOD__ ); + $flags = EDIT_NEW | EDIT_DEFER_UPDATES | EDIT_AUTOSUMMARY | ( $isminor ? EDIT_MINOR : 0 ) | ( $suppressRC ? EDIT_SUPPRESS_RC : 0 ) | @@ -1978,6 +1978,8 @@ class Article { * @deprecated @since 1.7 use Article::doEdit() */ function updateArticle( $text, $summary, $minor, $watchthis, $forceBot = false, $sectionanchor = '' ) { + wfDeprecated( __METHOD__ ); + $flags = EDIT_UPDATE | EDIT_DEFER_UPDATES | EDIT_AUTOSUMMARY | ( $minor ? EDIT_MINOR : 0 ) | ( $forceBot ? EDIT_FORCE_BOT : 0 );