(bug 17497) Oasis opendocument added to mime.types (odg otg odt ott odp otp ods ots)
[lhc/web/wiklou.git] / maintenance / namespace2sql.php
index def0336..43a8cc6 100644 (file)
@@ -1,15 +1,18 @@
 <?php
-# $Header$
-#
-# Print SQL to insert namespace names into database.
-# This source code is in the public domain.
+/**
+ * Print SQL to insert namespace names into database.
+ * This source code is in the public domain.
+ *
+ * @file
+ * @ingroup Maintenance
+ */
 
 require_once( "commandLine.inc" );
 
 for ($i = -2; $i < 16; ++$i) {
-       $nsname = wfStrencode( $wgLang->getNsText( $i ) );
-       $dbname = wfStrencode( $wgDBname );
+       $nsname = mysql_escape_string( $wgLang->getNsText( $i ) );
+       $dbname = mysql_escape_string( $wgDBname );
        print "INSERT INTO ns_name(ns_db, ns_num, ns_name) VALUES('$dbname', $i, '$nsname');\n";
 }
 
-?>
+