|
@@ -5,10 +5,10 @@ class Act
|
|
|
{
|
|
|
private $db;
|
|
|
private $type;
|
|
|
- public function __construct($name, $type = 1)
|
|
|
+ public function __construct($name, $type = false, $type_id = false)
|
|
|
{
|
|
|
$this->type = Dever::input('type', '', '', $type);
|
|
|
- $this->type_id = Dever::input('type_id');
|
|
|
+ $this->type_id = Dever::input('type_id', '', '', $type_id);
|
|
|
$this->db = Dever::db($name, 'place');
|
|
|
$this->app = Dever::config('setting')['type'][$this->type];
|
|
|
}
|