Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

MDL-30460 Wiki making file extension case-insensitive

  • Loading branch information...
commit ddd07da93ad4d336cca0a16fdd5ba000b28d43ad 1 parent cf04ce3
Ankit Agarwal ankitagarwal authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  mod/wiki/edit_form.php
2  mod/wiki/edit_form.php
@@ -70,7 +70,7 @@ protected function definition() {
70 70 foreach ($tree['files'] as $file) {
71 71 $filename = $file->get_filename();
72 72 foreach ($extensions as $ext) {
73   - if (preg_match('#'.$ext.'$#', $filename)) {
  73 + if (preg_match('#'.$ext.'$#i', $filename)) {
74 74 $files[] = $filename;
75 75 }
76 76 }

0 comments on commit ddd07da

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