Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

change relative URLs in stylsheets to absolute URLs

  • Loading branch information...
commit 3ebf4ea79e6cabfa1fad89f30d22dea0ea0d0601 1 parent 5624524
gbateson authored
Showing with 2,364 additions and 2,343 deletions.
  1. +2,359 −2,339 mod/hotpot/lib.php
  2. +5 −4 mod/hotpot/template/v6.php
View
4,698 mod/hotpot/lib.php
2,359 additions, 2,339 deletions not shown
View
9 mod/hotpot/template/v6.php
@@ -11,15 +11,15 @@ function hotpot_xml_quiz_template(&$parent) {
$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 @@ function v6_expand_HeaderCode() {
}
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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.