Revert r54244 which was stupid and fix this properly. Require commandLine.inc/Mainten...
[lhc/web/wiklou.git] / maintenance / createAndPromote.php
index 566885c..694f999 100644 (file)
@@ -22,7 +22,7 @@
  * @author Rob Church <robchur@gmail.com>
  */
 
-require_once( "Maintenance.php" );
+require_once( dirname(__FILE__) . '/Maintenance.php' );
 
 class CreateAndPromote extends Maintenance {
 
@@ -41,9 +41,9 @@ class CreateAndPromote extends Maintenance {
                
                $user = User::newFromName( $username );
                if( !is_object( $user ) ) {
-                       $this->error( "invalid username.\n", true );
+                       $this->error( "invalid username.", true );
                } elseif( 0 != $user->idForName() ) {
-                       $this->error( "account exists.\n", true );
+                       $this->error( "account exists.", true );
                }
 
                # Try to set the password