jquery.tablesorter: Support sortable column headers with rowspans
[lhc/web/wiklou.git] / maintenance / updateSpecialPages.php
index f92f67a..181c222 100644 (file)
@@ -22,7 +22,7 @@
  * @ingroup Maintenance
  */
 
-require_once( __DIR__ . '/Maintenance.php' );
+require_once __DIR__ . '/Maintenance.php';
 
 /**
  * Maintenance script to update cached special pages.
@@ -67,7 +67,7 @@ class UpdateSpecialPages extends Maintenance {
                }
 
                // This is needed to initialise $wgQueryPages
-               require_once( "$IP/includes/QueryPage.php" );
+               require_once "$IP/includes/QueryPage.php";
 
                foreach ( $wgQueryPages as $page ) {
                        list( $class, $special ) = $page;
@@ -94,13 +94,13 @@ class UpdateSpecialPages extends Maintenance {
                        } else {
                                if ( !class_exists( $class ) ) {
                                        $file = $specialObj->getFile();
-                                       require_once( $file );
+                                       require_once $file;
                                }
                                $queryPage = new $class;
                        }
 
                        if ( !$this->hasOption( 'only' ) || $this->getOption( 'only' ) == $queryPage->getName() ) {
-                               $this->output( sprintf( '%-30s ',  $special ) );
+                               $this->output( sprintf( '%-30s ', $special ) );
                                if ( $queryPage->isExpensive() ) {
                                        $t1 = explode( ' ', microtime() );
                                        # Do the query
@@ -124,7 +124,7 @@ class UpdateSpecialPages extends Maintenance {
                                                $this->output( sprintf( "%.2fs\n", $seconds ) );
                                        }
                                        # Reopen any connections that have closed
-                                       if ( !wfGetLB()->pingAll() )  {
+                                       if ( !wfGetLB()->pingAll() ) {
                                                $this->output( "\n" );
                                                do {
                                                        $this->error( "Connection failed, reconnecting in 10 seconds..." );
@@ -146,4 +146,4 @@ class UpdateSpecialPages extends Maintenance {
 }
 
 $maintClass = "UpdateSpecialPages";
-require_once( RUN_MAINTENANCE_IF_MAIN );
+require_once RUN_MAINTENANCE_IF_MAIN;