some fixes for the real version

--HG--
branch : quitta-gsoc-2013
hg/feature/sse2
Quitta 11 years ago
parent 9362db15c2
commit 46114b65b3

@ -81,7 +81,7 @@ class Helpers{
if ( !file_exists( $value ) ){ if ( !file_exists( $value ) ){
//echo $value; //echo $value;
print($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) { 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; global $TICKET_MAILING_SUPPORT;
if($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($sender == 0){
//if it is not forwarded (==public == which returns 0) then make it NULL which is needed to be placed in the DB. //if it is not forwarded (==public == which returns 0) then make it NULL which is needed to be placed in the DB.
$sender = NULL; $sender = NULL;

@ -87,7 +87,7 @@ class Ticket{
//create the new ticket! //create the new ticket!
$ticket = 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->set($values);
$ticket->create(); $ticket->create();
$ticket_id = $ticket->getTId(); $ticket_id = $ticket->getTId();

@ -42,7 +42,6 @@ class Ticket_Log{
$instanceLog->setAuthor($instanceAuthor); $instanceLog->setAuthor($instanceAuthor);
$instanceLog->setTicket($ticket_id); $instanceLog->setTicket($ticket_id);
$instanceLog->setQuery($log['Query']); $instanceLog->setQuery($log['Query']);
$result[] = $instanceLog; $result[] = $instanceLog;
} }
return $result; return $result;

Loading…
Cancel
Save