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 /url.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 'url.php')
-rw-r--r-- | url.php | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -6,6 +6,7 @@ * @package PhpMyAdmin */ use PMA\libraries\Sanitize; +use PMA\libraries\Response; /** * Gets core libraries and defines some variables @@ -14,7 +15,7 @@ define('PMA_MINIMUM_COMMON', true); require_once './libraries/common.inc.php'; // Only output the http headers -$response = PMA\libraries\Response::getInstance(); +$response = Response::getInstance(); $response->getHeader()->sendHttpHeaders(); $response->disable(); |