diff --git a/libraries/schema/Export_Relation_Schema.class.php b/libraries/schema/Export_Relation_Schema.class.php index 4179dd0dc..2d23c5bbf 100644 --- a/libraries/schema/Export_Relation_Schema.class.php +++ b/libraries/schema/Export_Relation_Schema.class.php @@ -182,7 +182,7 @@ class PMA_Export_Relation_Schema /** * Displays an error message * - * @param integer pageNumber ID of the page choosen + * @param integer pageNumber ID of the chosen page * @param string type Schema Type * @param string error_message the error mesage * @global array the PMA configuration array diff --git a/libraries/schema/User_Schema.class.php b/libraries/schema/User_Schema.class.php index e69daa090..fbec138de 100644 --- a/libraries/schema/User_Schema.class.php +++ b/libraries/schema/User_Schema.class.php @@ -18,7 +18,7 @@ class PMA_User_Schema { - public $choosenPage; + public $chosenPage; public $autoLayoutForeign; public $autoLayoutInternal; public $pageNumber; @@ -40,18 +40,18 @@ class PMA_User_Schema * @access public */ - public function processUserPreferences() + public function processUserChoice() { global $action_choose,$db,$cfgRelation,$cfg,$query_default_option; if (isset($this->action)) { switch ($this->action) { case 'selectpage': - $this->choosenPage = $_REQUEST['chpage']; + $this->chosenPage = $_REQUEST['chpage']; if ($action_choose=="1") { - $this->deleteCoordinates($db, $cfgRelation, $this->choosenPage, $query_default_option); - $this->deletePages($db, $cfgRelation, $this->choosenPage, $query_default_option); - $this->choosenPage = 0; + $this->deleteCoordinates($db, $cfgRelation, $this->chosenPage, $query_default_option); + $this->deletePages($db, $cfgRelation, $this->chosenPage, $query_default_option); + $this->chosenPage = 0; } break; case 'createpage': @@ -61,12 +61,12 @@ class PMA_User_Schema $this->processRelations($db, $this->pageNumber,$cfgRelation,$query_default_option); break; case 'edcoord': - $this->choosenPage = $_POST['chpage']; + $this->chosenPage = $_POST['chpage']; $this->c_table_rows = $_POST['c_table_rows']; $this->_editCoordinates($db, $cfgRelation,$query_default_option); break; - case 'deleteCrap': - $this->_deleteTableRows($delrow,$cfgRelation,$db,$this->choosenPage); + case 'delete_old_references': + $this->_deleteTableRows($delrow,$cfgRelation,$db,$this->chosenPage); break; case 'process_export': $this->_processExportSchema(); @@ -84,7 +84,7 @@ class PMA_User_Schema * @return void * @access public */ - public function createPage($db) + public function showCreatePageDialog($db) { ?>
@@ -155,7 +155,7 @@ class PMA_User_Schema while ($curr_page = PMA_DBI_fetch_assoc($page_rs)) { echo "\n" . ' ' . ''; @@ -205,14 +205,14 @@ class PMA_User_Schema * show the tables involved */ - if (isset($this->choosenPage) && $this->choosenPage > 0) { + if (isset($this->chosenPage) && $this->chosenPage > 0) { echo "\n"; ?>

choosenPage) . '\''; + . ' AND pdf_page_number = \'' . PMA_sqlAddslashes($this->chosenPage) . '\''; $page_rs = PMA_query_as_controluser($page_query, FALSE, $query_default_option); $array_sh_page = array(); while ($temp_sh_page = @PMA_DBI_fetch_assoc($page_rs)) { @@ -230,7 +230,7 @@ class PMA_User_Schema - + @@ -318,7 +318,7 @@ class PMA_User_Schema echo "\n" . '' . "\n\n"; } // end if - $this->_deleteTables($db, $this->choosenPage, isset($tabExist)); + $this->_deleteTables($db, $this->chosenPage, isset($tabExist)); } /** @@ -369,7 +369,7 @@ class PMA_User_Schema ?>
- + @@ -439,7 +439,7 @@ class PMA_User_Schema if ($shoot) { echo '' . "\n" . PMA_generate_common_hidden_inputs($db, $table) - . '' . "\n" + . '' . "\n" . '' . "\n" . __('The current page has references to tables that no longer exist. Would you like to delete those references?') . '