|
From: Benjamin C. <bc...@us...> - 2002-10-19 20:10:16
|
Update of /cvsroot/phpbt/phpbt/inc
In directory usw-pr-cvs1:/tmp/cvs-serv2083/inc
Modified Files:
functions.php
Log Message:
Ignore files that aren't php files when building the list of languages.
Index: functions.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/inc/functions.php,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -r1.35 -r1.36
--- functions.php 23 Sep 2002 20:08:59 -0000 1.35
+++ functions.php 19 Oct 2002 20:10:13 -0000 1.36
@@ -176,7 +176,7 @@
case 'LANGUAGE' :
$dir = opendir('languages');
while (false !== ($file = readdir($dir))) {
- if ($file != '.' && $file != '..' && $file != 'CVS') {
+ if ($file != '.' && $file != '..' && $file != 'CVS' && substr($file, -3) == 'php') {
$filelist[] = str_replace('.php', '', $file);
}
}
|