mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-19787 Added missing globals
This commit is contained in:
parent
c9c9fb90b0
commit
14f064525d
@ -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
|
||||
|
||||
|
@ -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';
|
||||
|
Loading…
x
Reference in New Issue
Block a user