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-25 19:10:07 +0300
committerHugues Peccatte <hugues.peccatte@gmail.com>2015-09-01 22:22:52 +0300
commitf0ba28fc1df881fa17e8f1670ca8261c5d416bd3 (patch)
treea3bf6dc1a29362b09460817448b2cd4d2b4e3a1b /tbl_tracking.php
parenta4456bde74a5770dfff1354a07bb24badce5c04f (diff)
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 <hugues.peccatte@gmail.com>
Diffstat (limited to 'tbl_tracking.php')
-rw-r--r--tbl_tracking.php16
1 files changed, 9 insertions, 7 deletions
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 .= '&amp;goto=tbl_tracking.php&amp;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 .= '<br class="clearfloat"/>';
-$response = PMA_Response::getInstance();
+$response = PMA\libraries\Response::getInstance();
$response->addHTML($html);