Fixed issue 159, Problem with display of source files with extension of c, etc.

Updated the code documentation to avoid confusions.
This commit is contained in:
Loic d'Anterroches 2009-03-26 12:04:16 +01:00
parent ef93d2da0a
commit 08a03f0629

View File

@ -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)
{