]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-19787 Added missing globals
authornicolasconnault <nicolasconnault>
Fri, 18 Sep 2009 05:44:00 +0000 (05:44 +0000)
committernicolasconnault <nicolasconnault>
Fri, 18 Sep 2009 05:44:00 +0000 (05:44 +0000)
admin/xmldb/actions/edit_table_save/edit_table_save.class.php
admin/xmldb/index.php

index f41dcfd7d3f28065694e0daadda8be15186fab14..eeef79f30f39eee577e6d3eda4cb6a65c6caac72 100644 (file)
@@ -62,7 +62,7 @@ class edit_table_save extends XMLDBAction {
         //$this->does_generate = ACTION_GENERATE_HTML;
 
     /// These are always here
-        global $CFG, $XMLDB;
+        global $CFG, $XMLDB, $PAGE, $OUTPUT;
 
     /// Do the job, setting result as needed
 
index 6a4723793d9bbd7de9b8965e8d2e087207e83eec..4706f50292f012b4a5e676d70c5267a6493fe913 100644 (file)
@@ -61,6 +61,8 @@
 /// Body of the script, based on action, we delegate the work
     $action = optional_param ('action', 'main_view', PARAM_ALPHAEXT);
 
+    $PAGE->set_url('/admin/xmldb/index.php', array('action' => $action));
+
 /// Get the action path and invoke it
     $actionsroot = "$CFG->dirroot/$CFG->admin/xmldb/actions";
     $actionclass = $action . '.class.php';