Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-30460 Wiki making file extension case-insensitive

  • Loading branch information...
commit 4021f5f9865c062e001f7a800c5168fe941eadda 1 parent 79b0fec
@ankitagarwal ankitagarwal authored
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;
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.