Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChanaka Indrajith <pe.chanaka.ck@gmail.com>2012-09-16 13:05:45 +0400
committerChanaka Indrajith <pe.chanaka.ck@gmail.com>2012-09-16 13:05:45 +0400
commite6894be57f5735ab525a2f758ad842aacb8ef7bc (patch)
treea94e853e44998476b7a055380469c61d57037f80 /tbl_indexes.php
parent0829709064b8ec1170d63d6d9a5828a0a89b34af (diff)
Renamed ->method() with PMA_Util::method()
Diffstat (limited to 'tbl_indexes.php')
-rw-r--r--tbl_indexes.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/tbl_indexes.php b/tbl_indexes.php
index fd0258b9e9..14477a6f5f 100644
--- a/tbl_indexes.php
+++ b/tbl_indexes.php
@@ -48,8 +48,8 @@ if (isset($_REQUEST['do_save_data'])) {
$error = false;
// $sql_query is the one displayed in the query box
- $sql_query = 'ALTER TABLE ' . $common_functions->backquote($db)
- . '.' . $common_functions->backquote($table);
+ $sql_query = 'ALTER TABLE ' . PMA_Util::backquote($db)
+ . '.' . PMA_Util::backquote($table);
// Drops the old index
if (! empty($_REQUEST['old_index'])) {
@@ -57,7 +57,7 @@ if (isset($_REQUEST['do_save_data'])) {
$sql_query .= ' DROP PRIMARY KEY,';
} else {
$sql_query .= ' DROP INDEX '
- . $common_functions->backquote($_REQUEST['old_index']) . ',';
+ . PMA_Util::backquote($_REQUEST['old_index']) . ',';
}
} // end if
@@ -81,13 +81,13 @@ if (isset($_REQUEST['do_save_data'])) {
$error = PMA_Message::error(__('Can\'t rename index to PRIMARY!'));
}
$sql_query .= ' ADD ' . $index->getType() . ' '
- . ($index->getName() ? $common_functions->backquote($index->getName()) : '');
+ . ($index->getName() ? PMA_Util::backquote($index->getName()) : '');
break;
} // end switch
$index_fields = array();
foreach ($index->getColumns() as $key => $column) {
- $index_fields[$key] = $common_functions->backquote($column->getName());
+ $index_fields[$key] = PMA_Util::backquote($column->getName());
if ($column->getSubPart()) {
$index_fields[$key] .= '(' . $column->getSubPart() . ')';
}
@@ -114,7 +114,7 @@ if (isset($_REQUEST['do_save_data'])) {
$response->addJSON('index_table', PMA_Index::getView($table, $db));
$response->addJSON(
'sql_query',
- $common_functions->getMessage(null, $sql_query)
+ PMA_Util::getMessage(null, $sql_query)
);
} else {
$active_page = 'tbl_structure.php';
@@ -227,7 +227,7 @@ echo PMA_CommonFunctions::getInstance()->showHint(
<strong>
<label for="select_index_type">
<?php echo __('Index type:'); ?>
- <?php echo $common_functions->showMySQLDocu('SQL-Syntax', 'ALTER_TABLE'); ?>
+ <?php echo PMA_Util::showMySQLDocu('SQL-Syntax', 'ALTER_TABLE'); ?>
</label>
</strong>
</div>