X-Git-Url: https://disinclined.org/git/?a=blobdiff_plain;f=model%2Fmodel.php;h=fa75f652eda7037fd5036cf628ae18b55450b22f;hb=5f6c05fb2e7147dd96f16e00ba9e48aba978823c;hp=9088831576a24a5d56be7e065c81c3b31cb1eaaf;hpb=08d7e1f799b17025cc1066b1e9b09e1b44c66a67;p=dylansserver.git diff --git a/model/model.php b/model/model.php index 9088831..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,6 +32,8 @@ class model { $args = func_get_args(); $statement = $this->db->prepare($args[0]); $args = array_slice($args, 1); + foreach($args as $key => $value) + $args[$key] = &$args[$key]; call_user_func_array(array($statement, 'bind_param'), $args); $statement->execute(); $return = array();