diff options
author | xmujay <xmujay@gmail.com> | 2013-08-02 16:05:27 +0400 |
---|---|---|
committer | xmujay <xmujay@gmail.com> | 2013-08-02 16:05:27 +0400 |
commit | db39eeb4230e703bc579a431bf10685fd65a1f10 (patch) | |
tree | d5491f01788fcd300028e3bc6f64e1d94424f59c /server_replication.php | |
parent | 21564e3b2447907e79ce168a802e311a10b2a8c5 (diff) |
refactor server_variables
1. move functions to separated files
2. render HTML at once
3. refactor function name to PMA_getHtmlForSubPageHeader
Diffstat (limited to 'server_replication.php')
-rw-r--r-- | server_replication.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/server_replication.php b/server_replication.php index 31a9d6e1a8..9f1f2ae6f7 100644 --- a/server_replication.php +++ b/server_replication.php @@ -1,6 +1,7 @@ <?php /* vim: set expandtab sw=4 ts=4 sts=4: */ /** + * Server replications * * @package PhpMyAdmin */ @@ -27,7 +28,7 @@ $scripts->addFile('replication.js'); * Checks if the user is allowed to do what he tries to... */ if (! $is_superuser) { - $html = PMA_getSubPageHeader('replication'); + $html = PMA_getHtmlForSubPageHeader('replication'); $html .= PMA_Message::error(__('No Privileges'))->getDisplay(); $response->addHTML($html); exit; @@ -46,7 +47,7 @@ PMA_handleControlRequest(); * start output */ $response->addHTML('<div id="replication">'); -$response->addHTML(PMA_getSubPageHeader('replication')); +$response->addHTML(PMA_getHtmlForSubPageHeader('replication')); // Display error messages $response->addHTML(PMA_getHtmlForErrorMessage()); |