r33058 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r33057‎ | r33058 | r33059 >
Date:23:16, 9 April 2008
Author:siebrand
Status:old
Tags:
Comment:
Use doEdit instead of deprecated insertNewArticle
Modified paths:
  • /trunk/extensions/NewUserMessage/NewUserMessage.php (modified) (history)

Diff [purge]

Index: trunk/extensions/NewUserMessage/NewUserMessage.php
@@ -39,7 +39,7 @@
4040
4141 if (!$talk->exists()) {
4242 $article = new Article($talk);
43 - $article->insertNewArticle('{'.'{'."$wgNewUserMessageTemplate|$name}}",false,false,true,false);
 43+ $article->doEdit('{'.'{'."$wgNewUserMessageTemplate|$name}}", false, EDIT_MINOR);
4444 }
4545
4646 return true;

Status & tagging log