* @param $line Integer: the input line number, for reporting errors
*/
public function addArticle( $name, $text, $line ) {
+ global $wgCapitalLinks;
+ $oldCapitalLinks = $wgCapitalLinks;
+ $wgCapitalLinks = true; // We only need this from SetupGlobals() See r70917#c8637
+
$title = Title::newFromText( $name );
if ( is_null( $title ) ) {
wfDie( "invalid title at line $line\n" );
$art = new Article( $title );
$art->insertNewArticle( $text, '', false, false );
+
+ $wgCapitalLinks = $oldCapitalLinks;
}
/**