Stylize maintenance folder..
[lhc/web/wiklou.git] / maintenance / getSlaveServer.php
index eac97a5..86e43af 100644 (file)
@@ -20,7 +20,7 @@
  * @ingroup Maintenance
  */
  
-require_once( dirname(__FILE__) . '/Maintenance.php' );
+require_once( dirname( __FILE__ ) . '/Maintenance.php' );
 
 class GetSlaveServer extends Maintenance {
        public function __construct() {
@@ -30,11 +30,11 @@ class GetSlaveServer extends Maintenance {
        }
        public function execute() {
                global $wgAllDBsAreLocalhost;
-               if( $wgAllDBsAreLocalhost ) {
+               if ( $wgAllDBsAreLocalhost ) {
                        $host = 'localhost';
                } else {
-                       if( $this->hasOption('group') ) {
-                               $db = wfGetDB( DB_SLAVE, $this->getOption('group') );
+                       if ( $this->hasOption( 'group' ) ) {
+                               $db = wfGetDB( DB_SLAVE, $this->getOption( 'group' ) );
                                $host = $db->getServer();
                        } else {
                                $lb = wfGetLB();