diff --git a/modules/xerte/play.php b/modules/xerte/play.php index 7a3cf7b056..be74f7f452 100644 --- a/modules/xerte/play.php +++ b/modules/xerte/play.php @@ -14,16 +14,14 @@ function show_template($row_play){ $string_for_flash = $xerte_toolkits_site->users_file_area_short . $row_play['template_id'] . "-" . $row_play['username'] . "-" . $row_play['template_name'] . "/"; - $dimension = split("~",get_template_screen_size($row_play['template_name'],$row_play['template_framework'])); - + list($x, $y) = explode("~",get_template_screen_size($row_play['template_name'],$row_play['template_framework'])); echo file_get_contents("modules/" . $row_play['template_framework'] . "/preview_" . $row_play['template_framework'] . "_top"); // slightly modified xerte preview code to allow for flash vars - - echo "myRLO = new rloObject('" . $dimension[0] . "','" . $dimension[1] . "','modules/" . $row_play['template_framework'] . "/parent_templates/" . $row_play['template_name'] . "/" . $row_play['template_name'] . ".rlt','$string_for_flash', '$string_for_flash_xml', '$xerte_toolkits_site->site_url')"; + echo "myRLO = new rloObject('" . $x . "','" . $y . "','modules/" . $row_play['template_framework'] . "/parent_templates/" . $row_play['template_name'] . "/" . $row_play['template_name'] . ".rlt','$string_for_flash', '$string_for_flash_xml', '$xerte_toolkits_site->site_url')"; echo "
"; } -?> \ No newline at end of file +?>