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:
authorThilina Buddika <thilinaabeyrathna@gmail.com>2012-06-16 08:58:44 +0400
committerThilina Buddika <thilinaabeyrathna@gmail.com>2012-06-16 08:58:44 +0400
commitbeb526cefae28b42399167b81e8a04ec74ed197f (patch)
tree15618a13604b48618c28cfdea585be2011cc4a9b /tbl_change.php
parent7a7a18fd0e96e5eeb94d1ea9fec7a26d144d2fef (diff)
parent0954bfbd46c90bcc7de3ed578671d29204c4806e (diff)
remove warning messages
Diffstat (limited to 'tbl_change.php')
-rw-r--r--tbl_change.php23
1 files changed, 8 insertions, 15 deletions
diff --git a/tbl_change.php b/tbl_change.php
index 38f4236d6a..274a630db7 100644
--- a/tbl_change.php
+++ b/tbl_change.php
@@ -12,7 +12,6 @@
* Gets the variables sent or posted to this script and displays the header
*/
require_once 'libraries/common.inc.php';
-require_once 'libraries/common.lib.php';
/**
* Ensures db and table are valid, else moves to the "parent" script
@@ -108,17 +107,15 @@ if ($GLOBALS['cfg']['ShowPropertyComments']) {
*/
/**
- * used in ./libraries/header.inc.php to load JavaScript library file
+ * Load JavaScript files
*/
-$GLOBALS['js_include'][] = 'functions.js';
-$GLOBALS['js_include'][] = 'tbl_change.js';
-$GLOBALS['js_include'][] = 'jquery/timepicker.js';
-$GLOBALS['js_include'][] = 'gis_data_editor.js';
-
-/**
- * HTTP and HTML headers
- */
-require_once 'libraries/header.inc.php';
+$response = PMA_Response::getInstance();
+$header = $response->getHeader();
+$scripts = $header->getScripts();
+$scripts->addFile('functions.js');
+$scripts->addFile('tbl_change.js');
+$scripts->addFile('jquery/timepicker.js');
+$scripts->addFile('gis_data_editor.js');
/**
* Displays the query submitted and its result
@@ -385,9 +382,5 @@ if ($insert_mode) {
$html_output .= PMA_getContinueInsertionForm($table, $db, $where_clause_array, $err_url);
}
echo $html_output;
-/**
- * Displays the footer
- */
-require 'libraries/footer.inc.php';
?>