Skip to content

Commit

Permalink
filters MDL-22564 fixing some php errors in the filters
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Davis committed May 26, 2010
1 parent cad676e commit e4cd4de
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions filter/algebra/filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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";
Expand Down
4 changes: 2 additions & 2 deletions filter/tex/filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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";
}
Expand Down

0 comments on commit e4cd4de

Please sign in to comment.