Doxygen documentation update: * Changed alls @addtogroup to @ingroup. @addtogroup adds the comment to the group description, but doesn't add the file, class, function, ... to the group like @ingroup does. See for example http://svn.wikimedia.org/doc/group__SpecialPage.html where it's impossible to see related files, classes, ... that should belong to that group. * Added @file to file description, it seems that it should be explicitely decalred for file descriptions, otherwise doxygen will think that the comment document the first class, variabled, function, ... that is in that file. * Removed some empty comments * Removed some ?> Added following groups: * ExternalStorage * JobQueue * MaintenanceLanguage One more thing: there are still a lot of warnings when generating the doc.
18 lines
416 B
PHP
18 lines
416 B
PHP
<?php
|
|
/**
|
|
* 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 = 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";
|
|
}
|
|
|
|
|