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:
f685e83
)
adding a TODO highlighting bad api design
author
Petr Skoda
<skodak@moodle.org>
Fri, 3 Sep 2010 18:58:04 +0000
(18:58 +0000)
committer
Petr Skoda
<skodak@moodle.org>
Fri, 3 Sep 2010 18:58:04 +0000
(18:58 +0000)
repository/repository_ajax.php
patch
|
blob
|
blame
|
history
diff --git
a/repository/repository_ajax.php
b/repository/repository_ajax.php
index
7dd1ca9
..
7939679
100755
(executable)
--- a/
repository/repository_ajax.php
+++ b/
repository/repository_ajax.php
@@
-194,7
+194,7
@@
switch ($action) {
echo json_encode($info);
die;
} else {
- if (in_array($repo->options['type'], array('local', 'recent', 'user', 'coursefiles'))) {
+ if (in_array($repo->options['type'], array('local', 'recent', 'user', 'coursefiles'))) {
//TODO: this hardcoding is a really ugly hack (skodak)
$fileinfo = $repo->copy_to_area($source, $itemid, $saveas_path, $saveas_filename);
$info = array();
$info['file'] = $fileinfo['title'];