mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-24 16:16:14 +00:00
some fixes for the real version
This commit is contained in:
parent
5eb052da4b
commit
1db9d4625e
4 changed files with 5 additions and 6 deletions
|
@ -81,7 +81,7 @@ class Helpers{
|
|||
if ( !file_exists( $value ) ){
|
||||
//echo $value;
|
||||
print($value);
|
||||
drupal_mkdir($value);
|
||||
mkdir($value);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -13,11 +13,11 @@ class Mail_Handler{
|
|||
|
||||
|
||||
public static function send_ticketing_mail($receiver, $ticketObj, $content, $type, $sender = 0) {
|
||||
global $MAIL_LOG_PATH;
|
||||
error_log("Receiver: {$receiver}, content: {$content}, type: {$type}, SendingId: {$sender} \n", 3, $MAIL_LOG_PATH);
|
||||
|
||||
global $TICKET_MAILING_SUPPORT;
|
||||
if($TICKET_MAILING_SUPPORT){
|
||||
|
||||
global $MAIL_LOG_PATH;
|
||||
error_log("Receiver: {$receiver}, content: {$content}, type: {$type}, SendingId: {$sender} \n", 3, $MAIL_LOG_PATH);
|
||||
if($sender == 0){
|
||||
//if it is not forwarded (==public == which returns 0) then make it NULL which is needed to be placed in the DB.
|
||||
$sender = NULL;
|
||||
|
|
|
@ -87,7 +87,7 @@ class Ticket{
|
|||
|
||||
//create the new ticket!
|
||||
$ticket = new Ticket();
|
||||
$values = array("Title" => $title, "Status"=> 1, "Queue"=> 0, "Ticket_Category" => $category, "Author" => $author, "Priority" => 0);
|
||||
$values = array("Title" => $title, "Timestamp"=>0, "Status"=> 1, "Queue"=> 0, "Ticket_Category" => $category, "Author" => $author, "Priority" => 0);
|
||||
$ticket->set($values);
|
||||
$ticket->create();
|
||||
$ticket_id = $ticket->getTId();
|
||||
|
|
|
@ -42,7 +42,6 @@ class Ticket_Log{
|
|||
$instanceLog->setAuthor($instanceAuthor);
|
||||
$instanceLog->setTicket($ticket_id);
|
||||
$instanceLog->setQuery($log['Query']);
|
||||
|
||||
$result[] = $instanceLog;
|
||||
}
|
||||
return $result;
|
||||
|
|
Loading…
Reference in a new issue