MDL-20534 lti: Replacing <<< strings with normal multi-line strings.

This commit is contained in:
Chris Scribner 2011-11-07 01:05:42 -05:00
parent a55c361955
commit 5de15b83cc
8 changed files with 157 additions and 156 deletions

View file

@ -87,23 +87,23 @@ if (!empty($errormsg)) {
echo '<html><body>';
$script = <<<SCRIPT
<script type='text/javascript'>
$script = "
<script type=\"text/javascript\">
//<![CDATA[
if(window != top){
top.location.href = '{$url}';
}
//]]
</script>
SCRIPT;
";
$clickhere = get_string('return_to_course', 'lti', (object)array('link' => $url));
$noscript = <<<NOSCRIPT
$noscript = "
<noscript>
{$clickhere}
</noscript>
NOSCRIPT;
";
echo $script;
echo $noscript;