$db->query( "DROP TABLE IF EXISTS $newTableName" );
} elseif ( in_array( $wgDBtype, array( 'postgres', 'oracle' ) ) ) {
/* DROPs wouldn't work due to Foreign Key Constraints (bug 14990, r58669)
- * Use "DROP TABLE IF EXISTS $newTableName CASCADE" for postgres? That
+ * Use "DROP TABLE IF EXISTS $newTableName CASCADE" for postgres? That
* syntax would also work for mysql.
*/
} elseif ( $db->tableExists( $tbl ) ) {
* @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;
}
/**