Stylize maintenance folder..
[lhc/web/wiklou.git] / maintenance / dumpLinks.php
index 529cd1a..d09a7f7 100644 (file)
@@ -29,7 +29,7 @@
  * @ingroup Mainatenance
  */
 
-require_once( dirname(__FILE__) . '/Maintenance.php' );
+require_once( dirname( __FILE__ ) . '/Maintenance.php' );
 
 class DumpLinks extends Maintenance {
        public function __construct() {
@@ -51,9 +51,9 @@ class DumpLinks extends Maintenance {
                        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 );
@@ -63,7 +63,7 @@ class DumpLinks extends Maintenance {
                        $link = Title::makeTitle( $row->pl_namespace, $row->pl_title );
                        $this->output( " " . $link->getPrefixedUrl() );
                }
-               if( isset( $lastPage ) )
+               if ( isset( $lastPage ) )
                        $this->output( "\n" );
        }
 }