r27843 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r27842‎ | r27843 | r27844 >
Date:20:18, 25 November 2007
Author:tlaqua
Status:old
Tags:
Comment:
Moved call to parent::__construct below call to self::loadMessages - was throwing Bad Title error (it couldn't fine changeauthor-short in the message cache).
Modified paths:
  • /trunk/extensions/ChangeAuthor/ChangeAuthor.body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ChangeAuthor/ChangeAuthor.body.php
@@ -29,8 +29,8 @@
3030 function __construct()
3131 {
3232 global $wgUser;
 33+ self::loadMessages();
3334 parent::__construct(wfMsg('changeauthor-short'), 'changeauthor');
34 - self::loadMessages();
3535 $this->selfTitle = Title::makeTitleSafe(NS_SPECIAL, wfMsg('changeauthor-short'));
3636 $this->skin = $wgUser->getSkin();
3737 }

Status & tagging log