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:
94b9c2e
)
MDL-24321 switching to stdClass in /files/
author
Petr Skoda
<skodak@moodle.org>
Tue, 21 Sep 2010 08:15:38 +0000
(08:15 +0000)
committer
Petr Skoda
<skodak@moodle.org>
Tue, 21 Sep 2010 08:15:38 +0000
(08:15 +0000)
files/coursefilesedit.php
patch
|
blob
|
blame
|
history
diff --git
a/files/coursefilesedit.php
b/files/coursefilesedit.php
index
64b04de
..
f0516cb
100644
(file)
--- a/
files/coursefilesedit.php
+++ b/
files/coursefilesedit.php
@@
-45,7
+45,7
@@
$PAGE->set_title($heading);
$PAGE->set_heading($heading);
$PAGE->set_pagelayout('course');
-$data = new
object
();
+$data = new
stdClass
();
$options = array('subdirs'=>1, 'maxfiles'=>-1, 'accepted_types'=>'*', 'return_types'=>FILE_INTERNAL);
file_prepare_standard_filemanager($data, 'files', $options, $context, $component, $filearea, $itemid);
$form = new coursefiles_edit_form(null, array('data'=>$data, 'contextid'=>$contextid));