Skip to content
Snippets Groups Projects
Commit a7775f3a authored by Jared Hancock's avatar Jared Hancock
Browse files

Set the company name from helpdesk name on install

parent 7855484a
No related branches found
No related tags found
No related merge requests found
......@@ -213,6 +213,12 @@ class Installer extends SetupWizard {
if(!db_query($sql, false))
$this->errors['err']='Unable to create config settings (#7)';
}
// Set company name
require_once(INCLUDE_DIR.'class.company.php');
$company = new Company();
$company->getForm()->setAnswer('name', $vars['name']);
$company->getForm()->save();
}
if($this->errors) return false; //Abort on internal errors.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment