X-Git-Url: https://disinclined.org/git/?a=blobdiff_plain;f=model%2Fmodel.php;h=fa75f652eda7037fd5036cf628ae18b55450b22f;hb=5f6c05fb2e7147dd96f16e00ba9e48aba978823c;hp=f9bb164bba104e5c26d1782940848978a9e6e9cd;hpb=4db3a80e869ec8b8c3e0c3f8401c8df12ff5c553;p=dylansserver.git diff --git a/model/model.php b/model/model.php index f9bb164..fa75f65 100644 --- a/model/model.php +++ b/model/model.php @@ -2,7 +2,7 @@ class model { - private $config_file = '/etc/dylansserver.ini'; + private $config_file = '/etc/disinclined.ini'; protected $model; protected $recaptcha_publickey; protected $recaptcha_privatekey; @@ -23,7 +23,8 @@ class model { } $this->recaptcha_publickey = $config['recaptcha']['publickey']; $this->recaptcha_privatekey = $config['recaptcha']['privatekey']; - $this->title = $config['site']['default_title']; + $this->title = $config['site']['title']; + $this->tab_title = $config['site']['tab_title']; $this->home_link = $config['site']['home_link']; } @@ -31,7 +32,9 @@ class model { $args = func_get_args(); $statement = $this->db->prepare($args[0]); $args = array_slice($args, 1); - call_user_func_array(array($statement, 'bind_param'), &$args); + foreach($args as $key => $value) + $args[$key] = &$args[$key]; + call_user_func_array(array($statement, 'bind_param'), $args); $statement->execute(); $return = array(); $statement->store_result();