Permalink
Browse files

MDL-30460 Wiki making file extension case-insensitive

  • Loading branch information...
1 parent cf04ce3 commit ddd07da93ad4d336cca0a16fdd5ba000b28d43ad @ankitagarwal ankitagarwal committed Nov 25, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/wiki/edit_form.php
View
2 mod/wiki/edit_form.php
@@ -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 ddd07da

Please sign in to comment.