Saturday 6 July 2019

mantis - php T_STRING error

While configuring custom fields in mantis i got this error message , any idea



Parse error: syntax error, unexpected T_STRING in
C:\wamp\www\MyProj\custom_strings_inc.php on line 3



The code is


if( lang_get_current() == 'german' ) {
$defect_impact = 'Defect Impact'; #// German translation of Defect Impact
$defect_type = 'Defect Type'; #// German translation of Defect Type
$phase_of_origin = ’Phase Of Origin’; #// German translation of Phase Of Origin
}else{
# Default (use your preferred language as the default)
$defect_impact = 'Defect Impact'; // German translation of Defect Impact
$defect_type = 'Defect Type'; // German translation of Defect Type
$phase_of_origin = 'Phase Of Origin'; // German translation of Phase Of Origin
}
?>

No comments:

Post a Comment

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...