filters MDL-22564 fixing some php errors in the filters

This commit is contained in:
Andrew Davis
2010-05-26 01:31:11 +00:00
parent cad676eede
commit e4cd4de28a
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -40,7 +40,7 @@
function string_file_picture_algebra($imagefile, $tex= "", $height="", $width="", $align="middle") {
// Given the path to a picture file in a course, or a URL,
// this function includes the picture in the page.
global $CFG;
global $CFG, $OUTPUT;
$output = "";
$origtex = $tex;
@@ -76,7 +76,7 @@ function string_file_picture_algebra($imagefile, $tex= "", $height="", $width=""
$link = '/filter/algebra/displaytex.php?'.urlencode($tex);
$action = new popup_action('click', $link, 'popup', array('height'=>300,'width'=>240));
}
$output .= $OUTPUT->action_link($link, $anchortagcontents, $action, array('title'=>'TeX'));
$output .= $OUTPUT->action_link($link, $anchorcontents, $action, array('title'=>'TeX'));
} else {
$output .= "Error: must pass URL or course";
+2 -2
View File
@@ -37,7 +37,7 @@
/////////////////////////////////////////////////////////////////////////////
function string_file_picture_tex($imagefile, $tex= "", $height="", $width="", $align="middle", $alt='') {
global $CFG;
global $CFG, $OUTPUT;
if ($alt==='') {
$alt = s($tex);
@@ -93,7 +93,7 @@ function string_file_picture_tex($imagefile, $tex= "", $height="", $width="", $a
$link = '/filter/tex/displaytex.php?'.urlencode($tex);
$action = new popup_action('click', $link, 'popup', array('height'=>300,'width'=>240));
}
$output .= $OUTPUT->action_link($link, $anchortagcontents, $action, array('title'=>'TeX'));
$output .= $OUTPUT->action_link($link, $anchorcontents, $action, array('title'=>'TeX'));
} else {
$output .= "Error: must pass URL or course";
}