开发者

php T_STRING error

开发者 https://www.devze.com 2023-04-12 18:09 出处:网络
While configuring custom fields in mantis i got this error message , any idea Parse error: syntax erro开发者_C百科r, unexpected T_STRING in

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

Parse error: syntax erro开发者_C百科r, unexpected T_STRING in C:\wamp\www\MyProj\custom_strings_inc.php on line 3

The code is

<?php
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
}
?>


Wrong quotes on this line:

$phase_of_origin =  ’Phase Of Origin’;

Should be:

$phase_of_origin =  'Phase Of Origin';
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号