MDL-39326 css: no passed the no svg key to chunking when required

This commit is contained in:
Sam Hemelryk 2013-04-24 13:52:48 +12:00
parent 14559e1849
commit 13b0140a87

View file

@ -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)) {
if ($usesvg) {
$chunkurl = "{$relroot}/theme/styles.php/{$themename}/{$rev}/{$key}"; $chunkurl = "{$relroot}/theme/styles.php/{$themename}/{$rev}/{$key}";
} else { } else {
$chunkurl = "{$relroot}/theme/styles.php/_s/{$themename}/{$rev}/{$key}";
}
} else {
if ($usesvg) {
$chunkurl = "{$relroot}/theme/styles.php?theme={$themename}&rev={$rev}&type={$key}"; $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) {