Changeset 11772

Show
Ignore:
Timestamp:
08/28/07 14:43:39 (1 year ago)
Author:
piotras
Message:

Set default "root" for MySQL admin if no name has been specified

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/midgard/data/midgard_setup_database.php

    r11722 r11772  
    1010class midgard_setup_database_exception extends Exception 
    1111{ 
    12        public function __construct($message, $code = 0)  
    13        
    14                parent::__construct($message, $code); 
    15        
     12    public function __construct($message, $code = 0)  
     13   
     14        parent::__construct($message, $code); 
     15   
    1616} 
    1717 
     
    184184        $value = midgard_setup_cli::get_text(_("What is MySQL admin username?")); 
    185185 
     186        if(!$value && $value == '') 
     187            $value = "root"; 
     188 
    186189            midgard_setup_cli::message( 
    187190            _("Preparing to create database. You will be asked for password if needed."));