Skip to content

Commit

Permalink
db comments broken
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc Delisle committed Mar 9, 2005
1 parent e5e4453 commit d8962c1
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions db_operations.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down Expand Up @@ -55,6 +54,21 @@
}
}
}
/**
* 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)
Expand Down Expand Up @@ -105,19 +119,6 @@
echo ' </td> </tr>';
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">';
if ($cfgRelation['commwork']) {
?>
Expand Down

0 comments on commit d8962c1

Please sign in to comment.