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:
authorMaurício Meneghini Fauth <mauriciofauth@gmail.com>2017-09-08 06:28:06 +0300
committerMaurício Meneghini Fauth <mauriciofauth@gmail.com>2017-09-08 06:28:06 +0300
commitf7051b2e5c108d58013321e1450793474a127182 (patch)
tree47644a14b94cef742ee5eb3fa72b4949c3177295 /server_replication.php
parent4022337194521b666c344c84bdab5d703f25bc4d (diff)
Refactor server_common functions to static methods
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
Diffstat (limited to 'server_replication.php')
-rw-r--r--server_replication.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/server_replication.php b/server_replication.php
index f7e8ed3f91..90176093fa 100644
--- a/server_replication.php
+++ b/server_replication.php
@@ -6,6 +6,7 @@
* @package PhpMyAdmin
*/
use PhpMyAdmin\Response;
+use PhpMyAdmin\Server\Common;
/**
* include files
@@ -30,7 +31,7 @@ $scripts->addFile('vendor/zxcvbn.js');
* Checks if the user is allowed to do what he tries to...
*/
if (! $is_superuser) {
- $html = PMA_getHtmlForSubPageHeader('replication');
+ $html = Common::getHtmlForSubPageHeader('replication');
$html .= PhpMyAdmin\Message::error(__('No Privileges'))->getDisplay();
$response->addHTML($html);
exit;
@@ -51,7 +52,7 @@ PMA_handleControlRequest();
* start output
*/
$response->addHTML('<div id="replication">');
-$response->addHTML(PMA_getHtmlForSubPageHeader('replication'));
+$response->addHTML(Common::getHtmlForSubPageHeader('replication'));
// Display error messages
$response->addHTML(PMA_getHtmlForErrorMessage());