Changeset 12149

Show
Ignore:
Timestamp:
09/12/07 09:34:11 (1 year ago)
Author:
piotras
Message:

Ask for hostname

Files:

Legend:

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

    r11958 r12149  
    126126        } 
    127127 
     128        /* TODO 
     129         * Try to get default host name */ 
     130 
     131        $default_hostname = "localhost";  
     132 
     133        if(!isset($this->host_name))  
     134        { 
     135            $value = midgard_setup_cli::get_text(_("Hostname to use ?"), $default_hostname); 
     136            if(!$value && $value == '') 
     137                $value = $default_hostname; 
     138 
     139            $setup->set_vhost($value); 
     140        } 
     141 
    128142        $this->midgard_setup_vhost->set_host_directories(); 
    129143        $this->midgard_setup_vhost->enable_apache_module();