From 08a03f062994daa578dc0605bc6edace007139f0 Mon Sep 17 00:00:00 2001 From: Loic d'Anterroches Date: Thu, 26 Mar 2009 12:04:16 +0100 Subject: [PATCH] Fixed issue 159, Problem with display of source files with extension of c, etc. Updated the code documentation to avoid confusions. --- src/IDF/Views/Source.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/IDF/Views/Source.php b/src/IDF/Views/Source.php index 99152fd..f396591 100644 --- a/src/IDF/Views/Source.php +++ b/src/IDF/Views/Source.php @@ -27,10 +27,13 @@ Pluf::loadFunction('Pluf_Shortcuts_GetObjectOr404'); Pluf::loadFunction('Pluf_Shortcuts_GetFormForModel'); /** - * View git repository. + * View SCM repository. */ class IDF_Views_Source { + /** + * Extension supported by the syntax highlighter. + */ public static $supportedExtenstions = array('c', 'cc', 'cpp', 'cs', 'css', 'cyc', 'java', 'bsh', 'csh', 'sh', 'cv', 'py', 'perl', 'php', @@ -524,9 +527,10 @@ class IDF_Views_Source } /** - * @param string the extension to test - * - * @return + * Test if an extension is supported by the syntax highlighter. + * + * @param string The extension to test + * @return bool */ public static function isSupportedExtension($extension) {