$this->db->__construct($connect);
$this->db->connect();
- $this->db->html_base = $this->base;
- $this->db->base = $this->base.'/'.$this->db->id;
- return $this->db;
- }
+# NB 11.06.18 return $this->db;
+ } else {
// Re use
if (!empty($this->db)) return $this->db;
}
$this->db = new Db(['conf'=>$DB_CONFS]);
+ }
+ $this->db->html_base = $this->base;
+ #$this->db->base = ($this->base ? $this->base : '/').$this->db->id;
+ $this->db->base = $this->base . ($this->db->id ? '/' . $this->db->id : '');
+ #debug($this->db->base);
return $this->db;
}