Remove unused parameter

This commit is contained in:
Michal Čihař 2012-06-04 11:52:14 +02:00
parent 4059ac7298
commit ccb9228bce
2 changed files with 3 additions and 9 deletions

View File

@ -780,10 +780,7 @@ class PMA_Table
/* Try moving table directly */
if ($move && $what == 'data') {
$tbl = new PMA_Table($source_table, $source_db);
$result = $tbl->rename(
$target_table, $target_db,
PMA_Table::isView($source_db, $source_table)
);
$result = $tbl->rename($target_table, $target_db);
if ($result) {
$GLOBALS['message'] = $tbl->getLastMessage();
return true;
@ -1296,13 +1293,10 @@ class PMA_Table
*
* @param string $new_name new table name
* @param string $new_db new database name
* @param bool $is_view is this for a VIEW rename?
*
* @todo remove the $is_view parameter (also in callers)
*
* @return bool success
*/
function rename($new_name, $new_db = null, $is_view = false)
function rename($new_name, $new_db = null)
{
if (null !== $new_db && $new_db !== $this->getDbName()) {
// Ensure the target is valid

View File

@ -34,7 +34,7 @@ if (isset($_REQUEST['submitoptions'])) {
$warning_messages = array();
if (isset($_REQUEST['new_name'])) {
if ($pma_table->rename($_REQUEST['new_name'], null, $is_view = true)) {
if ($pma_table->rename($_REQUEST['new_name'])) {
$_message .= $pma_table->getLastMessage();
$result = true;
$GLOBALS['table'] = $pma_table->getName();