No point in fetching the result in Database::unlock() if we're not using it anyway.
[lhc/web/wiklou.git] / maintenance / namespace2sql.php
1 <?php
2 /**
3 * Print SQL to insert namespace names into database.
4 * This source code is in the public domain.
5 *
6 * @file
7 * @ingroup Maintenance
8 */
9
10 require_once( "commandLine.inc" );
11
12 for ($i = -2; $i < 16; ++$i) {
13 $nsname = mysql_escape_string( $wgLang->getNsText( $i ) );
14 $dbname = mysql_escape_string( $wgDBname );
15 print "INSERT INTO ns_name(ns_db, ns_num, ns_name) VALUES('$dbname', $i, '$nsname');\n";
16 }
17
18