There was a
question about the changes:
On Sat, 2007-03-17 at 22:46 -0700, Jeffrey V. Merkey wrote:
/ This version also includes updated php scripts
which enable wider
/>/ support for mwdumper, mwimport, and importDump, as well
as updated sql
/>/ scripts which support all Foundation interwiki sites contained in the
/>/ enwiki-20070206 XML dumps.
/
Can you explain exactly what this refers to? "wider support"? Update sql
scripts? What changes have you made to facilitate this?
1. Added creteBcrat.php which allows recreation of sysop and bureaucrat
accounts with a fresh database directly through mysql without needing to
run MediaWiki install. See
meta.wikimedia.org/wiki/Data_dumps. This is
a preferred environment for mwdumper and mwimport during XML import.
The diff between createBcrat.php and maintenance/createAndPromote.php is as follows:
-----------------------------------------------------
root@bling:~/tmp/wolf-mediawiki# diff -u
mediawiki-1.9.3.WG-20070316/maintenance/createAndPromote.php createBcrat.php
--- mediawiki-1.9.3.WG-20070316/maintenance/createAndPromote.php 2007-03-18
18:08:06.000000000 +1100
+++ createBcrat.php 2007-03-23 12:56:47.000000000 +1100
@@ -27,6 +27,10 @@
die( 1 );
} elseif( 0 != $user->idForName() ) {
echo( "account exists.\n" );
+ $user->addGroup( 'sysop' );
+ $user->addGroup( 'bureaucrat' );
+ $ssu->doUpdate();
+ echo( "done.\n" );
die( 1 );
}
@@ -37,6 +41,7 @@
# Promote user
$user->addGroup( 'sysop' );
+$user->addGroup( 'bureaucrat' );
# Increment site_stats.ss_users
$ssu = new SiteStatsUpdate( 0, 0, 0, 0, 1 );
-----------------------------------------------------
Anyone want this in core?
2. Added over 40 missing language codes to
wikipedia-interwiki.sql to
synchronize with the current enwiki XML dumps.
Merged & sorted in r20632.
3. Included a sample LocalSettings.php script with
examples for
enabling tidylib, local HTML caching, and extensions necessary to render
the XML dumps as of enwiki-20070206.
It's potentially not a bad idea to include the extensions needed, commented out,
at the end LocalSettings.php, such as:
-----------------------------------------------------
/////////////// Extensions ///////////////
// If you want to use the Database dumps from
http://download.wikimedia.org/ then
// you will probably want to install these extensions and uncomment these lines:
# require_once( "$IP/extensions/ParserFunctions/ParserFunctions.php" );
# require_once( "$IP/extensions/Cite.php" );
# require_once( "$IP/extensions/ImageMap/ImageMap.php" );
# require_once( "$IP/extensions/wikihiero/wikihiero.php" );
-----------------------------------------------------
That might save this list at least a few questions a year.
Worth it?
All the best,
Nick.