From: Alexandre Emsenhuber Date: Thu, 9 Jun 2011 21:17:41 +0000 (+0000) Subject: Marked Article::doRedirect() as deprecated, was used by Article::insertNewArticle... X-Git-Tag: 1.31.0-rc.0~29603 X-Git-Url: https://git.cyclocoop.org/%7B%7B%20url_for%28%27user_edit%27%2C%20userid=session.user.id%29%20%7D%7D?a=commitdiff_plain;h=1ed1cf9d868f48ccf791aa17fabf253b2307a6a8;p=lhc%2Fweb%2Fwiklou.git Marked Article::doRedirect() as deprecated, was used by Article::insertNewArticle() and Article::updateArticle() that were removed. No usage left in core or extensions. --- diff --git a/includes/Article.php b/includes/Article.php index c2ad333ef4..f25d365dfa 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -2303,11 +2303,13 @@ class Article { * Output a redirect back to the article. * This is typically used after an edit. * + * @deprecated in 1.19; call $wgOut->redirect() directly * @param $noRedir Boolean: add redirect=no * @param $sectionAnchor String: section to redirect to, including "#" * @param $extraQuery String: extra query params */ public function doRedirect( $noRedir = false, $sectionAnchor = '', $extraQuery = '' ) { + wfDeprecated( __METHOD__ ); global $wgOut; if ( $noRedir ) {