From f0ba28fc1df881fa17e8f1670ca8261c5d416bd3 Mon Sep 17 00:00:00 2001 From: Hugues Peccatte Date: Tue, 25 Aug 2015 18:10:07 +0200 Subject: Set namespace on Advisor, Config, Console and Util classes. Set namespace on DbQbe. Set namespace to 'DbSearch'. Split Advisor.class.php file. Change Advisor namespace. Rename DbQbe class and file. Set namespace on DisplayResults. Set namespace on Error. Use namespace for ErrorHandler. Add class autoloader. Change ErrorHandler filename. Remove some require. Update Config namespace path. Update PMA_Util to PMA\libraries\Util. Rename Font and File classes files. Use namespace for Footer. Set namespace in all libraries classes. Namespace OutputBuffering. Export SubPartition. Rename Partition file. Namespace PDF. Namespace RecentFavoriteTable. Replace PMA_Response by Response and PMA_Message by Message. Update uses and calls. Fix unit tests. Fix SqlParser autoload. Signed-off-by: Hugues Peccatte --- tbl_tracking.php | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'tbl_tracking.php') diff --git a/tbl_tracking.php b/tbl_tracking.php index 7f8c44613b..042899e5bc 100644 --- a/tbl_tracking.php +++ b/tbl_tracking.php @@ -7,12 +7,14 @@ */ // Run common work +use PMA\libraries\PMA_Tracker; + require_once './libraries/common.inc.php'; require_once './libraries/tracking.lib.php'; //Get some js files needed for Ajax requests -$response = PMA_Response::getInstance(); +$response = PMA\libraries\Response::getInstance(); $header = $response->getHeader(); $scripts = $header->getScripts(); $scripts->addFile('jquery/jquery.tablesorter.js'); @@ -28,13 +30,13 @@ if (PMA_Tracker::isActive() && ! (isset($_REQUEST['report_export']) && $_REQUEST['export_type'] == 'sqldumpfile') ) { - $msg = PMA_Message::notice( + $msg = PMA\libraries\Message::notice( sprintf( __('Tracking of %s is activated.'), htmlspecialchars($GLOBALS["db"] . '.' . $GLOBALS["table"]) ) ); - PMA_Response::getInstance()->addHTML($msg->getDisplay()); + PMA\libraries\Response::getInstance()->addHTML($msg->getDisplay()); } $url_query .= '&goto=tbl_tracking.php&back=tbl_tracking.php'; @@ -98,12 +100,12 @@ if (isset($_REQUEST['submit_mult'])) { foreach ($_REQUEST['selected_versions'] as $version) { PMA_deleteTrackingVersion($version); } - $html .= PMA_Message::success( + $html .= PMA\libraries\Message::success( __('Tracking versions deleted successfully.') )->getDisplay(); } } else { - $html .= PMA_Message::notice( + $html .= PMA\libraries\Message::notice( __('No versions selected.') )->getDisplay(); } @@ -135,7 +137,7 @@ if (isset($_REQUEST['toggle_activation']) // Export as SQL execution if (isset($_REQUEST['report_export']) && $_REQUEST['export_type'] == 'execution') { $sql_result = PMA_exportAsSQLExecution($entries); - $msg = PMA_Message::success(__('SQL statements executed.')); + $msg = PMA\libraries\Message::success(__('SQL statements executed.')); $html .= $msg->getDisplay(); } @@ -204,5 +206,5 @@ $html .= PMA_getHtmlForDataDefinitionAndManipulationStatements( $html .= '
'; -$response = PMA_Response::getInstance(); +$response = PMA\libraries\Response::getInstance(); $response->addHTML($html); -- cgit v1.2.3