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:
7fa3089
)
MDL-36754 core_files: Add back missing baseurl line
author
Andrew Nicols
<andrew@nicols.co.uk>
Tue, 14 Aug 2018 07:54:12 +0000
(15:54 +0800)
committer
Andrew Nicols
<andrew@nicols.co.uk>
Tue, 14 Aug 2018 07:54:12 +0000
(15:54 +0800)
lib/filelib.php
patch
|
blob
|
blame
|
history
diff --git
a/lib/filelib.php
b/lib/filelib.php
index
01b360c
..
ded335b
100644
(file)
--- a/
lib/filelib.php
+++ b/
lib/filelib.php
@@
-481,6
+481,7
@@
function file_rewrite_pluginfile_urls($text, $file, $contextid, $component, $fil
$finalfile = basename($file);
$tokenfile = "token{$finalfile}";
$file = substr($file, 0, strlen($file) - strlen($finalfile)) . $tokenfile;
+ $baseurl = "{$CFG->wwwroot}/{$file}";
if (!$CFG->slasharguments) {
$baseurl .= "?token={$token}&file=";