diff --git a/codepot/src/codepot/views/code_blame.php b/codepot/src/codepot/views/code_blame.php index a1a783ad..9a1c0e47 100644 --- a/codepot/src/codepot/views/code_blame.php +++ b/codepot/src/codepot/views/code_blame.php @@ -180,7 +180,7 @@ if ($fileext == 'adb' || $fileext == 'ads') $fileext = 'ada'; else if ($fileext == 'pas') $fileext = 'pascal'; else if ($fileext == 'bas') $fileext = 'basic'; -if ($fileext != '') $prettyprint_lang = "lang-$fileext"; +$prettyprint_lang = ($fileext != '')? "lang-$fileext": ''; $prettyprint_linenums = 'linenums'; if ($login['settings'] != NULL && diff --git a/codepot/src/codepot/views/code_file.php b/codepot/src/codepot/views/code_file.php index ef8703a4..4023f7de 100644 --- a/codepot/src/codepot/views/code_file.php +++ b/codepot/src/codepot/views/code_file.php @@ -183,7 +183,7 @@ if ($fileext == 'adb' || $fileext == 'ads') $fileext = 'ada'; else if ($fileext == 'pas') $fileext = 'pascal'; else if ($fileext == 'bas') $fileext = 'basic'; -if ($fileext != '') $prettyprint_lang = "lang-$fileext"; +$prettyprint_lang = ($fileext != '')? "lang-$fileext": ''; $prettyprint_linenums = 'linenums'; if ($login['settings'] != NULL &&