From 2fc504b47fd1524a9a21d37e32262b482b2472a0 Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Sun, 25 May 2014 15:03:52 +0000 Subject: [PATCH] fixed bugs in code_file and code_blame --- codepot/src/codepot/views/code_blame.php | 2 +- codepot/src/codepot/views/code_file.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 &&