No need to require_once footer

It is the last thing executed anyway (ends with exit).
This commit is contained in:
Michal Čihař
2010-07-26 16:20:24 +02:00
parent ee767e2d3d
commit d291827444
49 changed files with 65 additions and 65 deletions

View File

@@ -110,7 +110,7 @@ if (!$is_superuser) {
. __('Privileges') . "\n"
. '</h2>' . "\n";
PMA_Message::error(__('No Privileges'))->display();
require_once './libraries/footer.inc.php';
require './libraries/footer.inc.php';
}
/**
@@ -1679,7 +1679,7 @@ if (empty($_REQUEST['adduser']) && (! isset($checkprivs) || ! strlen($checkprivs
if ($user_does_not_exists) {
PMA_Message::warning(__('The selected user was not found in the privilege table.'))->display();
PMA_displayLoginInformationFields();
//require_once './libraries/footer.inc.php';
//require './libraries/footer.inc.php';
}
echo '<form name="usersForm" id="usersForm" action="server_privileges.php" method="post">' . "\n";
@@ -2219,6 +2219,6 @@ if (empty($_REQUEST['adduser']) && (! isset($checkprivs) || ! strlen($checkprivs
* Displays the footer
*/
echo "\n\n";
require_once './libraries/footer.inc.php';
require './libraries/footer.inc.php';
?>