2
0
mirror of https://github.com/ACSPRI/queXS synced 2024-04-02 12:12:16 +00:00

Fixes lp:1255359 Translation strings with single quotes break some SQL queries

This commit is contained in:
Adam Zammit
2013-11-27 12:03:07 +11:00
parent dc5a7e8ba9
commit e5feb27daa
25 changed files with 80 additions and 67 deletions

View File

@@ -174,15 +174,15 @@ if (AUTO_DIAL_SECONDS !== false)
if ($contact_phone_id !== false)
{
//got a number to dial so initiate the countdown to begin dialing
$texttodisplay = T_("Will dial in");
$endtexttodisplay = T_("Dialling now");
$texttodisplay = TQ_("Will dial in");
$endtexttodisplay = TQ_("Dialling now");
$jsfunctocall = "document.location.href = 'nocallavailable.php?contact_phone=" . $contact_phone_id . "';";
}
else
{
//no more numbers to dial so initiate the countdown to end the case
$texttodisplay = T_("Will end case in");
$endtexttodisplay = T_("Ending case now");
$texttodisplay = TQ_("Will end case in");
$endtexttodisplay = TQ_("Ending case now");
$jsfunctocall = "openParent('endcase=endcase');";
}
print "<div id='timer'></div>";
@@ -200,7 +200,7 @@ if (AUTO_DIAL_SECONDS !== false)
" . $jsfunctocall . "
return;
}
document.getElementById('timer').innerHTML='". $texttodisplay ." ' + count + ' " . T_("seconds") . "';
document.getElementById('timer').innerHTML='". $texttodisplay ." ' + count + ' " . TQ_("seconds") . "';
}
window.onload = function()