';
diff --git a/admin/xmldb/actions/edit_index/edit_index.class.php b/admin/xmldb/actions/edit_index/edit_index.class.php
index 999765db5ae..01f0d17a35f 100644
--- a/admin/xmldb/actions/edit_index/edit_index.class.php
+++ b/admin/xmldb/actions/edit_index/edit_index.class.php
@@ -61,7 +61,7 @@ class edit_index extends XMLDBAction {
$this->does_generate = ACTION_GENERATE_HTML;
/// These are always here
- global $CFG, $XMLDB;
+ global $CFG, $XMLDB, $OUTPUT;
/// Do the job, setting result as needed
/// Get the dir containing the file
@@ -119,7 +119,9 @@ class edit_index extends XMLDBAction {
$typeoptions = array (0 => 'not unique',
1 => 'unique');
$o.= '
';
diff --git a/admin/xmldb/actions/new_statement/new_statement.class.php b/admin/xmldb/actions/new_statement/new_statement.class.php
index 982d55e0a91..2cf683859c2 100644
--- a/admin/xmldb/actions/new_statement/new_statement.class.php
+++ b/admin/xmldb/actions/new_statement/new_statement.class.php
@@ -60,7 +60,7 @@ class new_statement extends XMLDBAction {
$this->does_generate = ACTION_GENERATE_HTML;
/// These are always here
- global $CFG, $XMLDB, $DB;
+ global $CFG, $XMLDB, $DB, $OUTPUT;
/// Do the job, setting result as needed
/// Get the dir containing the file
@@ -103,7 +103,7 @@ class new_statement extends XMLDBAction {
$o.= ' ';
$o.= ' ';
$o.= '
';
diff --git a/admin/xmldb/actions/new_table_from_mysql/new_table_from_mysql.class.php b/admin/xmldb/actions/new_table_from_mysql/new_table_from_mysql.class.php
index ca25a8b3eef..79a69b0b946 100644
--- a/admin/xmldb/actions/new_table_from_mysql/new_table_from_mysql.class.php
+++ b/admin/xmldb/actions/new_table_from_mysql/new_table_from_mysql.class.php
@@ -60,7 +60,7 @@ class new_table_from_mysql extends XMLDBAction {
$this->does_generate = ACTION_GENERATE_HTML;
/// These are always here
- global $CFG, $XMLDB, $DB;
+ global $CFG, $XMLDB, $DB, $OUTPUT;
/// Do the job, setting result as needed
/// Get the dir containing the file
@@ -111,7 +111,7 @@ class new_table_from_mysql extends XMLDBAction {
$o.= ' ';
$o.= ' ';
$o.= '
';
diff --git a/admin/xmldb/actions/view_structure_php/view_structure_php.class.php b/admin/xmldb/actions/view_structure_php/view_structure_php.class.php
index e04e9ab64ed..5f4c5b0af24 100644
--- a/admin/xmldb/actions/view_structure_php/view_structure_php.class.php
+++ b/admin/xmldb/actions/view_structure_php/view_structure_php.class.php
@@ -62,7 +62,7 @@ class view_structure_php extends XMLDBAction {
$this->does_generate = ACTION_GENERATE_HTML;
/// These are always here
- global $CFG, $XMLDB;
+ global $CFG, $XMLDB, $OUTPUT;
/// Do the job, setting result as needed
/// Get the dir containing the file
@@ -115,7 +115,7 @@ class view_structure_php extends XMLDBAction {
$o.= ' ';
$o.= ' ';
$o.= '
';
$o.= '';
diff --git a/admin/xmldb/actions/view_table_php/view_table_php.class.php b/admin/xmldb/actions/view_table_php/view_table_php.class.php
index e519228805d..b11a7c284d5 100644
--- a/admin/xmldb/actions/view_table_php/view_table_php.class.php
+++ b/admin/xmldb/actions/view_table_php/view_table_php.class.php
@@ -68,7 +68,7 @@ class view_table_php extends XMLDBAction {
$this->does_generate = ACTION_GENERATE_HTML;
/// These are always here
- global $CFG, $XMLDB;
+ global $CFG, $XMLDB, $OUTPUT;
/// Do the job, setting result as needed
/// Get the dir containing the file
@@ -166,7 +166,7 @@ class view_table_php extends XMLDBAction {
$o.= ' ';
$o.= ' ';
$o.= '