Permalink
Browse files

MDL-30460 Wiki making file extension case-insensitive

  • Loading branch information...
1 parent f28832d commit d616497a0e221f2a7f69dac4785cce6067f00f1d @ankitagarwal ankitagarwal committed Nov 25, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/wiki/edit_form.php
View
@@ -70,7 +70,7 @@ protected function definition() {
foreach ($tree['files'] as $file) {
$filename = $file->get_filename();
foreach ($extensions as $ext) {
- if (preg_match('#'.$ext.'$#', $filename)) {
+ if (preg_match('#'.$ext.'$#i', $filename)) {
$files[] = $filename;
}
}

0 comments on commit d616497

Please sign in to comment.