Added more text extensions.

This commit is contained in:
Loic d'Anterroches 2008-12-17 14:34:55 +01:00
parent dbd513b24e
commit e282c65bb0

View File

@ -401,7 +401,7 @@ class IDF_Views_Source
if (0 === strpos($fileinfo[0], 'text/')) { if (0 === strpos($fileinfo[0], 'text/')) {
return true; return true;
} }
$ext = 'mdtext php js'; $ext = 'mdtext php js cpp php-dist';
return (in_array($fileinfo[2], explode(' ', $ext))); return (in_array($fileinfo[2], explode(' ', $ext)));
} }