Changeset 12690
- Timestamp:
- 10/08/07 14:17:30 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/midgard/data/midgard_admin_sitewizard_creator_host.php
r12581 r12690 25 25 private $host_prefix = ''; 26 26 27 private $host_port = 0; 28 27 29 private $host_style_id = null; 28 30 … … 37 39 $this->verbose('Initializing host creation'); 38 40 39 if ( is_object($this->sitegroup))41 if (!is_object($this->sitegroup)) 40 42 { 41 if (!$this->sitegroup = mgd_get_sitegroup( $sitegroup_guid) /*new midgard_sitegroup()*/)43 if (!$this->sitegroup = mgd_get_sitegroup(/*$sitegroup_guid*/ 1) /*new midgard_sitegroup()*/) 42 44 { 43 45 throw new midgard_admin_sitewizard_exception("Sitewizard couldn't initialize sitegroup object. … … 62 64 $this->host->sitegroup = $this->sitegroup->id; 63 65 $this->host->name = $this->host_url; 64 $this->host->port = 80;66 $this->host->port = $this->host_port; 65 67 $this->host->online = 1; 66 68 $this->host->owner = $this->sitegroup->admingroup; … … 86 88 } 87 89 88 $this->verbose("Created host PREFIX: " . $ host->name . $host->prefix . " GUID: "90 $this->verbose("Created host PREFIX: " . $this->host->name . $this->host->prefix . " GUID: " 89 91 . $this->host->guid); 90 92 … … 142 144 } 143 145 146 public function set_host_port($host_port) 147 { 148 $this->verbose("Setting host port \"" . $host_port . "\""); 149 150 $this->host_port = $host_port; 151 } 152 144 153 public function set_host_prefix($host_prefix) 145 154 { … … 177 186 { 178 187 return $this->host; 188 } 189 190 public function get_sitegroup() 191 { 192 return $this->sitegroup; 179 193 } 180 194 trunk/midgard/data/midgard_admin_sitewizard_creator_structure.php
r12581 r12690 444 444 $this->verbose('Creating root topic from configuration'); 445 445 446 $this->creation_root_topic = midgard_topic();446 $this->creation_root_topic = new midgard_topic(); 447 447 $this->creation_root_topic->up = 0; 448 448 $this->creation_root_topic->sitegroup = $this->sitegroup->id;
