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:
parent
ef93d2da0a
commit
08a03f0629
@ -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
|
||||
* Test if an extension is supported by the syntax highlighter.
|
||||
*
|
||||
* @return
|
||||
* @param string The extension to test
|
||||
* @return bool
|
||||
*/
|
||||
public static function isSupportedExtension($extension)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user