# This patch file was generated by NetBeans IDE
# This patch can be applied using context Tools: Apply Diff Patch action on respective folder.
# It uses platform neutral UTF-8 encoding.
# Above lines and this line are ignored by the patching process.
Index: moodle/filter/algebra/filter.php
--- moodle/filter/algebra/filter.php Base (1.30)
+++ moodle/filter/algebra/filter.php Locally Modified (Based On 1.30)
@@ -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 @@
         $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";
Index: moodle/filter/tex/filter.php
--- moodle/filter/tex/filter.php Base (1.33)
+++ moodle/filter/tex/filter.php Locally Modified (Based On 1.33)
@@ -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 @@
             $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";
     }
