File tree 1 file changed +5
-9
lines changed
1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ function scan($dir, $lang)
81
81
'control-structures. ' , 'language. ' ,
82
82
'about. ' , 'faq. ' , 'features. ' ,
83
83
);
84
-
84
+
85
85
$ count = 0 ;
86
86
echo "Lang: $ lang \n" ;
87
87
@@ -115,7 +115,7 @@ function scan($dir, $lang)
115
115
if ($ x !== false ) {
116
116
$ keyword = substr ($ keyword , 0 , $ x );
117
117
}
118
-
118
+
119
119
// Skip PHP 4 domxml (book.domxml). It uses function. syntax, unlike book.dom
120
120
if (0 === strpos ($ keyword , 'function.dom ' ) && false === strpos ($ keyword , 'simplexml ' )) {
121
121
continue ;
@@ -166,7 +166,7 @@ function scan($dir, $lang)
166
166
}
167
167
}
168
168
closedir ($ d );
169
-
169
+
170
170
echo "Added entries for $ count files \n" ;
171
171
echo "\n" ;
172
172
}
@@ -179,14 +179,11 @@ function scan_langs($root)
179
179
if (!$ d ) {
180
180
return ;
181
181
}
182
- readdir ($ d ); readdir ($ d );
183
182
while (($ f = readdir ($ d )) !== false ) {
184
- if ($ f === '.svn ' ) {
185
- continue ;
186
- }
187
- if ($ f === '.git ' ) {
183
+ if (strpos ($ f , '. ' ) !== false ) {
188
184
continue ;
189
185
}
186
+
190
187
$ file = $ root . DIRECTORY_SEPARATOR . $ f ;
191
188
192
189
if (is_dir ($ file )) {
@@ -195,4 +192,3 @@ function scan_langs($root)
195
192
}
196
193
closedir ($ d );
197
194
}
198
-
You can’t perform that action at this time.
0 commit comments