MDL-19787 Added missing globals

This commit is contained in:
nicolasconnault 2009-09-18 05:44:00 +00:00
parent c9c9fb90b0
commit 14f064525d
2 changed files with 3 additions and 1 deletions

View 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

View 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';