}
public function execute() {
- global $IP, $wgDefaultExternalStore, $wgNoDBParam, $wgPasswordSender;
+ global $IP, $wgDefaultExternalStore, $wgNoDBParam;
$wgNoDBParam = true;
$lang = $this->getArg( 0 );
$wgArticle = new Article( $wgTitle );
$ucsite = ucfirst( $site );
- $wgArticle->doEdit( $this->getFirstArticle( $ucsite, $name ), '', EDIT_NEW | EDIT_DEFER_UPDATES | EDIT_AUTOSUMMARY,
- false, null, false, false, '', true );
+ $wgArticle->insertNewArticle( $this->getFirstArticle( $ucsite, $name ), '', false, false );
$this->output( "Adding to dblists\n" );
$time = wfTimestamp( TS_RFC2822 );
// These arguments need to be escaped twice: once for echo and once for at
- $escDbName = wfEscapeShellArg( wfEscapeShellArg( $dbname ) );
+ $escDbName = wfEscapeShellArg( wfEscapeShellArg( $dbName ) );
$escTime = wfEscapeShellArg( wfEscapeShellArg( $time ) );
$escUcsite = wfEscapeShellArg( wfEscapeShellArg( $ucsite ) );
$escName = wfEscapeShellArg( wfEscapeShellArg( $name ) );