Indefero

Indefero Commit Details


Date:2008-12-17 08:08:51 (16 years 5 days ago)
Author:Loic d'Anterroches
Branch:dev, develop, feature-issue_links, feature.better-home, feature.content-md5, feature.diff-whitespace, feature.download-md5, feature.issue-links, feature.issue-of-others, feature.issue-summary, feature.search-filter, feature.webrepos, feature.wiki-default-page, master, release-1.1, release-1.2, release-1.3
Commit:d11b107ce1923390f276901b574036dc9c0df553
Parents: e282c65bb05138f0d2181d94b9e05d656a402074
Message:Added more text extensions and give the ability to add in the config.

Using the 'idf_extra_text_ext' configuration variable you can add more
text extensions.
Changes:

File differences

src/IDF/Views/Source.php
401401
402402
403403
404
404
405
405406
406407
407408
if (0 === strpos($fileinfo[0], 'text/')) {
return true;
}
$ext = 'mdtext php js cpp php-dist';
$ext = 'mdtext php js cpp php-dist h gitignore sh py pl rb '
.Pluf::f('idf_extra_text_ext', '');
return (in_array($fileinfo[2], explode(' ', $ext)));
}
src/IDF/conf/idf.php-dist
190190
191191
192192
193
193
194
195
196
197
194198
'mercurial' => 'IDF_Scm_Mercurial',
);
$cfg['idf_mimetypes_db'] = '/etc/mime.types';
# If you want to use another memtypes database
# $cfg['idf_mimetypes_db'] = '/etc/mime.types';
# Extra text files when displaying source
# $cfg['idf_extra_text_ext'] = 'ext1 ext2 ext3';
return $cfg;

Archive Download the corresponding diff file

Page rendered in 0.09170s using 13 queries.