Adding initial language file for Tajik (tg); currently includes only namespace transl...
[mediawiki.git] / maintenance / nukePage.php
blobb5c3f2831c414e7714720e6db8ebc2abb4866cd8
1 <?php
3 /**
4 * Erase a page record from the database
5 * Irreversible (can't use standard undelete) and does not update link tables
7 * @package MediaWiki
8 * @subpackage Maintenance
9 * @author Rob Church <robchur@gmail.com>
12 require_once( 'commandLine.inc' );
13 require_once( 'nukePage.inc' );
15 echo( "Erase Page Record\n\n" );
17 if( isset( $args[0] ) ) {
18 NukePage( $args[0], true );
19 } else {
20 ShowUsage();
23 /** Show script usage information */
24 function ShowUsage() {
25 echo( "Remove a page record from the database.\n\n" );
26 echo( "Usage: php nukePage.php <title>\n\n" );
27 echo( " <title> : Page title; spaces escaped with underscores\n\n" );