From 2846038ed10901298e521bd469eea6093b9f8601 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Luca=20B=C3=B6sch?= Date: Mon, 4 Jun 2018 14:17:17 +0200 Subject: [PATCH] MDL-45088 xmldb: Fix table alignment --- admin/tool/xmldb/actions/edit_table/edit_table.class.php | 8 ++++---- admin/tool/xmldb/actions/edit_xml_file/edit_xml_file.class.php | 4 ++-- admin/tool/xmldb/actions/view_table_php/view_table_php.class.php | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/admin/tool/xmldb/actions/edit_table/edit_table.class.php b/admin/tool/xmldb/actions/edit_table/edit_table.class.php index 5c2e7b93f82..32f6fea00e0 100644 --- a/admin/tool/xmldb/actions/edit_table/edit_table.class.php +++ b/admin/tool/xmldb/actions/edit_table/edit_table.class.php @@ -124,7 +124,7 @@ class edit_table extends XMLDBAction { $o.= ' '; $o.= ' '; $o.= ' '; - $o.= ' '; + $o .= '
'; // If the table is being used, we cannot rename it if ($structure->getTableUses($table->getName())) { $o.= ' '; @@ -243,7 +243,7 @@ class edit_table extends XMLDBAction { // The readable info $r = ''; // Print table row - $o .= ''; + $o .= ''; $row = ($row + 1) % 2; } $o .= '
Name:' . s($table->getName()) .'
' . $field->readableInfo() . '
' . $f . $b . $r . '
' . $f . $b . $r . '
'; @@ -296,7 +296,7 @@ class edit_table extends XMLDBAction { // The readable info $r = '' . $key->readableInfo() . ''; // Print table row - $o .= '' . $k . $b . $r .''; + $o .= '' . $k . $b . $r .''; $row = ($row + 1) % 2; } $o .= ''; @@ -337,7 +337,7 @@ class edit_table extends XMLDBAction { // The readable info $r = '' . $index->readableInfo() . ''; // Print table row - $o .= '' . $i . $b . $r .''; + $o .= '' . $i . $b . $r .''; $row = ($row + 1) % 2; } $o .= ''; diff --git a/admin/tool/xmldb/actions/edit_xml_file/edit_xml_file.class.php b/admin/tool/xmldb/actions/edit_xml_file/edit_xml_file.class.php index 1fdd4cb1b53..f053c08c040 100644 --- a/admin/tool/xmldb/actions/edit_xml_file/edit_xml_file.class.php +++ b/admin/tool/xmldb/actions/edit_xml_file/edit_xml_file.class.php @@ -115,7 +115,7 @@ class edit_xml_file extends XMLDBAction { $o.= ' '; $o.= ' '; $o.= ' '; - $o.= ' '; + $o .= '
'; $o.= ' '; $o.= ' '; $o.= ' '; @@ -216,7 +216,7 @@ class edit_xml_file extends XMLDBAction { } $b .= ''; // Print table row - $o .= ''; + $o .= ''; $row = ($row + 1) % 2; } $o .= '
Path:' . s($structure->getPath()) . '
Version:' . s($structure->getVersion()) . '
' . $t . $b . '
' . $t . $b . '
'; diff --git a/admin/tool/xmldb/actions/view_table_php/view_table_php.class.php b/admin/tool/xmldb/actions/view_table_php/view_table_php.class.php index e9752019405..d337572a8dc 100644 --- a/admin/tool/xmldb/actions/view_table_php/view_table_php.class.php +++ b/admin/tool/xmldb/actions/view_table_php/view_table_php.class.php @@ -162,7 +162,7 @@ class view_table_php extends XMLDBAction { $o.= ' '; $o.= ' '; $o.= ' '; - $o.= ' '; + $o .= '
'; $o.= ' '; $o.= ' '; $o.= '
' . html_writer::select($popcommands, 'command', $commandparam, false) . ' ' .html_writer::select($popfields, 'fieldkeyindex', $origfieldkeyindexparam, false) . '
'; -- 2.11.4.GIT