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:
authorHugues Peccatte <hugues.peccatte@gmail.com>2015-08-30 11:19:28 +0300
committerHugues Peccatte <hugues.peccatte@gmail.com>2015-09-01 22:30:23 +0300
commite5e447e937e34d2af25778139f1ec639b58f1675 (patch)
treee308ceb8909078afdca33e860747e26f39a3a550 /tbl_change.php
parenta3fc1777785d82fbc56a074475563e0344df6c6b (diff)
Set namespace on config classes.
Update config classes. Add @noinspection tag. Update documentation and script. Set ConfigGenerator in a namespace. Rename ConfigGenerator filename. Remove ConfigGenerator requires. Fix namespaces of mock objects. Remove useless require. Add missing 'use'. Add missing require. Update PHPDoc. Fix class test typo. Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
Diffstat (limited to 'tbl_change.php')
-rw-r--r--tbl_change.php14
1 files changed, 8 insertions, 6 deletions
diff --git a/tbl_change.php b/tbl_change.php
index 79dbe2aa7d..552137418a 100644
--- a/tbl_change.php
+++ b/tbl_change.php
@@ -7,14 +7,16 @@
*
* @package PhpMyAdmin
*/
+use PMA\libraries\config\PageSettings;
+use PMA\libraries\Response;
+use PMA\libraries\Util;
/**
* Gets the variables sent or posted to this script and displays the header
*/
require_once 'libraries/common.inc.php';
-require_once 'libraries/config/page_settings.class.php';
-PMA_PageSettings::showGroup('Edit');
+PageSettings::showGroup('Edit');
/**
* Ensures db and table are valid, else moves to the "parent" script
@@ -72,7 +74,7 @@ $comments_map = PMA_getCommentsMap($db, $table);
/**
* Load JavaScript files
*/
-$response = PMA\libraries\Response::getInstance();
+$response = Response::getInstance();
$header = $response->getHeader();
$scripts = $header->getScripts();
$scripts->addFile('functions.js');
@@ -90,7 +92,7 @@ $scripts->addFile('gis_data_editor.js');
* $disp_message come from tbl_replace.php
*/
if (! empty($disp_message)) {
- $response->addHTML(PMA\libraries\Util::getMessage($disp_message, null));
+ $response->addHTML(Util::getMessage($disp_message, null));
}
$table_columns = PMA_getTableColumns($db, $table);
@@ -152,7 +154,7 @@ $html_output .= PMA_getHtmlForInsertEditFormHeader($has_blob_field, $is_upload);
$html_output .= PMA_URL_getHiddenInputs($_form_params);
-$titles['Browse'] = PMA\libraries\Util::getIcon('b_browse.png', __('Browse foreign values'));
+$titles['Browse'] = Util::getIcon('b_browse.png', __('Browse foreign values'));
// user can toggle the display of Function column and column types
// (currently does not work for multi-edits)
@@ -214,7 +216,7 @@ $html_output .= PMA_getActionsPanel(
if ($biggest_max_file_size > 0) {
$html_output .= ' '
- . PMA\libraries\Util::generateHiddenMaxFileSize(
+ . Util::generateHiddenMaxFileSize(
$biggest_max_file_size
) . "\n";
}