Skip to content

Commit

Permalink
MDL-30460 Wiki making file extension case-insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
ankitagarwal committed Nov 25, 2011
1 parent 79b0fec commit 4021f5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/wiki/edit_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 4021f5f

Please sign in to comment.