Skip to content

Commit

Permalink
split is deprecated; replace with explode; rename exploded parts to m…
Browse files Browse the repository at this point in the history
…ake more obvious

git-svn-id: https://xerteonlinetoolkits.googlecode.com/svn/trunk@125 912cdd6b-5c7d-d5a7-a2ba-d0f0cdb91641
  • Loading branch information
Dave Goodwin committed Oct 5, 2011
1 parent b8d8362 commit bfb2d43
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions modules/xerte/play.php
Expand Up @@ -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 "</script></div><div id=\"popup_parent\"></body></html>";

}

?>
?>

0 comments on commit bfb2d43

Please sign in to comment.