change relative URLs in stylsheets to absolute URLs

This commit is contained in:
gbateson
2006-01-10 04:06:38 +00:00
parent 562452486d
commit 3ebf4ea79e
2 changed files with 2364 additions and 2343 deletions
+2359 -2339
View File
File diff suppressed because it is too large Load Diff
+5 -4
View File
@@ -11,15 +11,15 @@ class hotpot_xml_quiz_template extends hotpot_xml_template_default {
$get_css = optional_param('css', false);
if (!empty($get_css)) {
$this->css = '';
$this->read_template('hp6.cs_', 'css');
// set $this->css
$this->v6_expand_StyleSheet();
} else if (!empty($get_js)) {
$this->js = '';
// set $this->js
$this->read_template($this->parent->draganddrop.$this->parent->quiztype.'6.js_', 'js');
} else {
$this->html = '';
// set $this->html
$this->read_template($this->parent->draganddrop.$this->parent->quiztype.'6.ht_', 'html');
}
@@ -253,6 +253,7 @@ class hotpot_xml_quiz_template extends hotpot_xml_template_default {
}
function v6_expand_StyleSheet() {
$this->read_template('hp6.cs_', 'css');
$this->css = hotpot_convert_stylesheets_urls($this->parent->get_baseurl(), $this->parent->reference, $this->css);
return $this->css;
}