~ubuntu-branches/ubuntu/utopic/moodle/utopic

« back to all changes in this revision

Viewing changes to lib/filebrowser/file_info.php

  • Committer: Package Import Robot
  • Author(s): Thijs Kinkhorst
  • Date: 2014-05-12 16:10:38 UTC
  • mfrom: (36.1.3 sid)
  • Revision ID: package-import@ubuntu.com-20140512161038-puyqf65k4e0s8ytz
Tags: 2.6.3-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
143
143
                $nonemptylist[] = $fileinfo;
144
144
            } else {
145
145
                $filename = $fileinfo->get_visible_name();
146
 
                $extension = textlib::strtolower(pathinfo($filename, PATHINFO_EXTENSION));
 
146
                $extension = core_text::strtolower(pathinfo($filename, PATHINFO_EXTENSION));
147
147
                if (!empty($extension) && in_array('.' . $extension, $extensions)) {
148
148
                    $nonemptylist[] = $fileinfo;
149
149
                }
177
177
            if (!$fileinfo->is_directory()) {
178
178
                if ($extensions !== '*') {
179
179
                    $filename = $fileinfo->get_visible_name();
180
 
                    $extension = textlib::strtolower(pathinfo($filename, PATHINFO_EXTENSION));
 
180
                    $extension = core_text::strtolower(pathinfo($filename, PATHINFO_EXTENSION));
181
181
                    if (empty($extension) || !in_array('.' . $extension, $extensions)) {
182
182
                        continue;
183
183
                    }