Permalink
Browse files

Merge branch 'MDL-34607-22' of git://github.com/FMCorz/moodle into MO…

…ODLE_22_STABLE
  • Loading branch information...
2 parents b37dc15 + 98f282f commit 22d38f8b2ead8532882f26505be4b08e27444691 Sam Hemelryk committed Sep 24, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/filestorage/file_storage.php
@@ -284,7 +284,7 @@ public function get_area_files($contextid, $component, $filearea, $itemid = fals
*/
public function get_area_tree($contextid, $component, $filearea, $itemid) {
$result = array('dirname'=>'', 'dirfile'=>null, 'subdirs'=>array(), 'files'=>array());
- $files = $this->get_area_files($contextid, $component, $filearea, $itemid, "sortorder, itemid, filepath, filename", true);
+ $files = $this->get_area_files($contextid, $component, $filearea, $itemid, "itemid, filepath, filename", true);
// first create directory structure
foreach ($files as $hash=>$dir) {
if (!$dir->is_directory()) {

0 comments on commit 22d38f8

Please sign in to comment.