Skip to content

Commit

Permalink
Fixed issue #9410: Method gT cause error when printing Yes/No respons…
Browse files Browse the repository at this point in the history
…es in PDFs
  • Loading branch information
Aestu committed Dec 26, 2014
1 parent 936b2e7 commit 23ad464
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions application/helpers/common_helper.php
Expand Up @@ -75,12 +75,16 @@ function egT($sToTranslate, $iCount, $sEscapeMode = 'html')

/**
* Quotes a translation according to purpose
* if sEscapeMode is null, we use HTML method because probably we had to specify null as sEscapeMode upstream
*
* @param mixed $sText Text to quote
* @param string $sEscapeMode Optional - One of the values 'html','js' or 'unescaped' - defaults to 'html'
*/
function quoteText($sText, $sEscapeMode = 'html')
{
if ($sEscapeMode === null)
$sEscapeMode = 'html';

switch ($sEscapeMode)
{
case 'html':
Expand Down

0 comments on commit 23ad464

Please sign in to comment.