Skip to content
Browse files

Merge pull request #4 from Upperdog/master

Ignore Vim's .swp files
  • Loading branch information...
2 parents d9ad837 + 8895936 commit a8e685e52f539bed11fb632447f99c960edd4ba5 @adactio committed Oct 8, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 index.php
View
2 index.php
@@ -28,7 +28,7 @@
$files = array();
$handle=opendir('patterns');
while (false !== ($file = readdir($handle))):
- if(stristr($file,'.html')):
+ if(substr($file, -5) == '.html'):
$files[] = $file;
endif;
endwhile;

0 comments on commit a8e685e

Please sign in to comment.
Something went wrong with that request. Please try again.