r111304 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r111303‎ | r111304 | r111305 >
Date:15:37, 12 February 2012
Author:ialex
Status:ok
Tags:
Comment:
Fix exception's text: use __construct() instead of class name for constructor and WikiPage::doEditUpdates() instead of Article::editUpdates()
Modified paths:
  • /trunk/phase3/includes/LinksUpdate.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/LinksUpdate.php
@@ -57,8 +57,8 @@
5858 $this->mDb = wfGetDB( DB_MASTER );
5959
6060 if ( !is_object( $title ) ) {
61 - throw new MWException( "The calling convention to LinksUpdate::LinksUpdate() has changed. " .
62 - "Please see Article::editUpdates() for an invocation example.\n" );
 61+ throw new MWException( "The calling convention to LinksUpdate::__construct() has changed. " .
 62+ "Please see WikiPage::doEditUpdates() for an invocation example.\n" );
6363 }
6464 $this->mTitle = $title;
6565 $this->mId = $title->getArticleID();

Status & tagging log