Skip to content
Snippets Groups Projects
Commit 60ab1a04 authored by Peter Rotich's avatar Peter Rotich
Browse files

Change ticket_message to ticket_thread

parent 20e5b7fb
No related branches found
No related tags found
No related merge requests found
...@@ -178,16 +178,19 @@ class Installer extends SetupWizard { ...@@ -178,16 +178,19 @@ class Installer extends SetupWizard {
if(!($msg=file_get_contents(INC_DIR.'msg/installed.txt'))) if(!($msg=file_get_contents(INC_DIR.'msg/installed.txt')))
$msg='Congratulations and Thank you for choosing osTicket!'; $msg='Congratulations and Thank you for choosing osTicket!';
$sql='INSERT INTO '.PREFIX.'ticket_message SET created=NOW(),source="Web" ' $sql='INSERT INTO '.PREFIX.'ticket_thread SET created=NOW()'
.', source="Web" '
.', thread_type="M" '
.', ticket_id='.db_input($tid) .', ticket_id='.db_input($tid)
.', message='.db_input($msg); .', title='.db_input('osTicket Installed')
.', body='.db_input($msg);
@mysql_query($sql); @mysql_query($sql);
} }
//TODO: create another personalized ticket and assign to admin?? //TODO: create another personalized ticket and assign to admin??
//Log a message. //Log a message.
$msg="Congratulations osTicket basic installation completed!\n\nThank you for choosing osTicket!"; $msg="Congratulations osTicket basic installation completed!\n\nThank you for choosing osTicket!";
$sql='INSERT INTO '.PREFIX.'syslog SET created=NOW(),updated=NOW(),log_type="Debug" ' $sql='INSERT INTO '.PREFIX.'syslog SET created=NOW(), updated=NOW(), log_type="Debug" '
.', title="osTicket installed!"' .', title="osTicket installed!"'
.', log='.db_input($msg) .', log='.db_input($msg)
.', ip_address='.db_input($_SERVER['REMOTE_ADDR']); .', ip_address='.db_input($_SERVER['REMOTE_ADDR']);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment