db comments broken

This commit is contained in:
Marc Delisle
2005-03-09 15:36:49 +00:00
parent e5e44534d2
commit d8962c1da1

View File

@@ -5,7 +5,6 @@
require_once('./libraries/grab_globals.lib.php'); require_once('./libraries/grab_globals.lib.php');
require_once('./libraries/common.lib.php'); require_once('./libraries/common.lib.php');
require_once('./libraries/mysql_charsets.lib.php'); require_once('./libraries/mysql_charsets.lib.php');
/** /**
* Rename database * 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 * 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) * because there is no table in the database ($is_info is TRUE)
@@ -105,19 +119,6 @@ echo ' ' . '&nbsp;<input type="submit" value="' . $strGo . '" />' .
echo ' </td> </tr>'; echo ' </td> </tr>';
echo ' </form>'; echo ' </form>';
/**
* 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 '<table border="0" cellpadding="2" cellspacing="0">'; echo '<table border="0" cellpadding="2" cellspacing="0">';
if ($cfgRelation['commwork']) { if ($cfgRelation['commwork']) {
?> ?>