diff options
author | Thilina Buddika <thilinaabeyrathna@gmail.com> | 2012-06-16 08:58:44 +0400 |
---|---|---|
committer | Thilina Buddika <thilinaabeyrathna@gmail.com> | 2012-06-16 08:58:44 +0400 |
commit | beb526cefae28b42399167b81e8a04ec74ed197f (patch) | |
tree | 15618a13604b48618c28cfdea585be2011cc4a9b /tbl_change.php | |
parent | 7a7a18fd0e96e5eeb94d1ea9fec7a26d144d2fef (diff) | |
parent | 0954bfbd46c90bcc7de3ed578671d29204c4806e (diff) |
remove warning messages
Diffstat (limited to 'tbl_change.php')
-rw-r--r-- | tbl_change.php | 23 |
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'; ?> |