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:
b6f8a93
)
MDL-37332 portfolio: don't add double slashes
author
Dan Poltawski
<dan@moodle.com>
Fri, 24 May 2013 07:16:57 +0000
(15:16 +0800)
committer
Dan Poltawski
<dan@moodle.com>
Fri, 31 May 2013 03:49:55 +0000
(11:49 +0800)
get_filepath() always returns trailing slash.
This breaks windows export - thanks to Jason Platts
lib/portfolio/exporter.php
patch
|
blob
|
blame
|
history
diff --git
a/lib/portfolio/exporter.php
b/lib/portfolio/exporter.php
index
cc73d37
..
879f68b
100644
(file)
--- a/
lib/portfolio/exporter.php
+++ b/
lib/portfolio/exporter.php
@@
-835,7
+835,7
@@
class portfolio_exporter {
if ($f->get_filename() == $skipfile) {
continue;
}
- $returnfiles[$f->get_filepath() .
'/' .
$f->get_filename()] = $f;
+ $returnfiles[$f->get_filepath() . $f->get_filename()] = $f;
}
return $returnfiles;
}