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:
7a0d080
)
database MDL-24349 made exporting of preset database activities produce valid preset...
author
Andrew Davis
<andrew@affinitysoftware.net>
Thu, 23 Sep 2010 06:45:05 +0000
(06:45 +0000)
committer
Andrew Davis
<andrew@affinitysoftware.net>
Thu, 23 Sep 2010 06:45:05 +0000
(06:45 +0000)
mod/data/lib.php
patch
|
blob
|
blame
|
history
diff --git
a/mod/data/lib.php
b/mod/data/lib.php
index
00d2321
..
a99e73e
100755
(executable)
--- a/
mod/data/lib.php
+++ b/
mod/data/lib.php
@@
-3019,7
+3019,7
@@
function data_presets_export($course, $cm, $data, $tostorage=false) {
print_error('generateerror', 'data');
}
- $file
list
= array(
+ $file
names
= array(
'preset.xml',
'singletemplate.html',
'listtemplateheader.html',
@@
-3033,8
+3033,9
@@
function data_presets_export($course, $cm, $data, $tostorage=false) {
'asearchtemplate.html'
);
- foreach ($filelist as $key => $file) {
- $filelist[$key] = $exportdir . '/' . $filelist[$key];
+ $filelist = array();
+ foreach ($filenames as $filename) {
+ $filelist[$filename] = $exportdir . '/' . $filename;
}
$exportfile = $exportdir.'.zip';