diff --git a/db_operations.php b/db_operations.php index 8761d997b..eb28a9df5 100644 --- a/db_operations.php +++ b/db_operations.php @@ -5,7 +5,6 @@ require_once('./libraries/grab_globals.lib.php'); require_once('./libraries/common.lib.php'); require_once('./libraries/mysql_charsets.lib.php'); - /** * Rename database */ @@ -55,6 +54,21 @@ if (isset($db) && } } } +/** + * Settings for relations stuff + */ + +require_once('./libraries/relation.lib.php'); +$cfgRelation = PMA_getRelationsParam(); + +/** + * Check if comments were updated + * (must be done before displaying the menu tabs) + */ +if ($cfgRelation['commwork'] && isset($db_comment) && $db_comment == 'true') { + PMA_SetComment($db, '', '(db_comment)', $comment); +} + /** * Prepares the tables list if the user where not redirected to this script * because there is no table in the database ($is_info is TRUE) @@ -105,19 +119,6 @@ echo ' ' . ' ' . echo ' '; echo ' '; -/** - * Settings for relations stuff - */ -require_once('./libraries/relation.lib.php'); -$cfgRelation = PMA_getRelationsParam(); - -/** - * Check if comments were updated - */ -if ($cfgRelation['commwork'] && isset($db_comment) && $db_comment == 'true') { - PMA_SetComment($db, '', '(db_comment)', $comment); -} - echo ''; if ($cfgRelation['commwork']) { ?>