* @ingroup Mainatenance
*/
-require_once( dirname(__FILE__) . '/Maintenance.php' );
+require_once( dirname( __FILE__ ) . '/Maintenance.php' );
class DumpLinks extends Maintenance {
public function __construct() {
array( 'ORDER BY' => 'page_id' ) );
$lastPage = null;
- foreach( $result as $row ) {
- if( $lastPage != $row->page_id ) {
- if( isset( $lastPage ) ) {
+ foreach ( $result as $row ) {
+ if ( $lastPage != $row->page_id ) {
+ if ( isset( $lastPage ) ) {
$this->output( "\n" );
}
$page = Title::makeTitle( $row->page_namespace, $row->page_title );
$link = Title::makeTitle( $row->pl_namespace, $row->pl_title );
$this->output( " " . $link->getPrefixedUrl() );
}
- if( isset( $lastPage ) )
+ if ( isset( $lastPage ) )
$this->output( "\n" );
}
}