r89796 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r89795‎ | r89796 | r89797 >
Date:21:17, 9 June 2011
Author:ialex
Status:ok
Tags:
Comment:
Marked Article::doRedirect() as deprecated, was used by Article::insertNewArticle() and Article::updateArticle() that were removed. No usage left in core or extensions.
Modified paths:
  • /trunk/phase3/includes/Article.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Article.php
@@ -2303,11 +2303,13 @@
23042304 * Output a redirect back to the article.
23052305 * This is typically used after an edit.
23062306 *
 2307+ * @deprecated in 1.19; call $wgOut->redirect() directly
23072308 * @param $noRedir Boolean: add redirect=no
23082309 * @param $sectionAnchor String: section to redirect to, including "#"
23092310 * @param $extraQuery String: extra query params
23102311 */
23112312 public function doRedirect( $noRedir = false, $sectionAnchor = '', $extraQuery = '' ) {
 2313+ wfDeprecated( __METHOD__ );
23122314 global $wgOut;
23132315
23142316 if ( $noRedir ) {

Status & tagging log