diff options
author | Michal Čihař <michal@cihar.com> | 2016-12-07 20:17:59 +0300 |
---|---|---|
committer | Michal Čihař <michal@cihar.com> | 2016-12-07 20:17:59 +0300 |
commit | 308c9d79512d8b8a759e787d11ab1668138d0d5f (patch) | |
tree | 92336b7ff438ff6d7b3ffbc5248e7834d56a8663 /db_tracking.php | |
parent | b56f101039b73866894325b0f6ab13894f0e44b2 (diff) |
Simplify Response object handling
- always use use and short name
- avoid calling getInstance() several times in one script
Signed-off-by: Michal Čihař <michal@cihar.com>
Diffstat (limited to 'db_tracking.php')
-rw-r--r-- | db_tracking.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/db_tracking.php b/db_tracking.php index c8f78379dd..3eb3eeab3d 100644 --- a/db_tracking.php +++ b/db_tracking.php @@ -5,6 +5,7 @@ * * @package PhpMyAdmin */ +use PMA\libraries\Response; use PMA\libraries\Tracker; /** @@ -16,7 +17,7 @@ require_once './libraries/tracking.lib.php'; require_once 'libraries/display_create_table.lib.php'; //Get some js files needed for Ajax requests -$response = PMA\libraries\Response::getInstance(); +$response = Response::getInstance(); $header = $response->getHeader(); $scripts = $header->getScripts(); $scripts->addFile('jquery/jquery.tablesorter.js'); |