mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 01:16:44 +02:00
MDL-39326 css: no passed the no svg key to chunking when required
This commit is contained in:
parent
14559e1849
commit
13b0140a87
1 changed files with 10 additions and 2 deletions
|
@ -144,9 +144,17 @@ if ($type === 'editor') {
|
||||||
$relroot = preg_replace('|^http.?://[^/]+|', '', $CFG->wwwroot);
|
$relroot = preg_replace('|^http.?://[^/]+|', '', $CFG->wwwroot);
|
||||||
foreach ($css as $key=>$value) {
|
foreach ($css as $key=>$value) {
|
||||||
if (!empty($slashargument)) {
|
if (!empty($slashargument)) {
|
||||||
$chunkurl = "{$relroot}/theme/styles.php/{$themename}/{$rev}/{$key}";
|
if ($usesvg) {
|
||||||
|
$chunkurl = "{$relroot}/theme/styles.php/{$themename}/{$rev}/{$key}";
|
||||||
|
} else {
|
||||||
|
$chunkurl = "{$relroot}/theme/styles.php/_s/{$themename}/{$rev}/{$key}";
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
$chunkurl = "{$relroot}/theme/styles.php?theme={$themename}&rev={$rev}&type={$key}";
|
if ($usesvg) {
|
||||||
|
$chunkurl = "{$relroot}/theme/styles.php?theme={$themename}&rev={$rev}&type={$key}";
|
||||||
|
} else {
|
||||||
|
$chunkurl = "{$relroot}/theme/styles.php?theme={$themename}&rev={$rev}&type={$key}&svg=0";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
$cssfiles = array();
|
$cssfiles = array();
|
||||||
foreach($value as $val) {
|
foreach($value as $val) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue