Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c366bea
)
MDL-34607 File API: Removed ordering by sortorder in area tree
author
Frederic Massart
<fred@moodle.com>
Mon, 17 Sep 2012 08:57:05 +0000
(16:57 +0800)
committer
Frederic Massart
<fred@moodle.com>
Fri, 21 Sep 2012 01:56:52 +0000
(09:56 +0800)
lib/filestorage/file_storage.php
patch
|
blob
|
blame
|
history
diff --git
a/lib/filestorage/file_storage.php
b/lib/filestorage/file_storage.php
index
917705b
..
c34ebe6
100644
(file)
--- a/
lib/filestorage/file_storage.php
+++ b/
lib/filestorage/file_storage.php
@@
-443,7
+443,7
@@
class file_storage {
*/
public function get_area_tree($contextid, $component, $filearea, $itemid) {
$result = array('dirname'=>'', 'dirfile'=>null, 'subdirs'=>array(), 'files'=>array());
*/
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()) {
// first create directory structure
foreach ($files as $hash=>$dir) {
if (!$dir->is_directory()) {