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:
authorMadhura Jayaratne <madhura.cj@gmail.com>2015-04-09 10:58:35 +0300
committerMadhura Jayaratne <madhura.cj@gmail.com>2015-04-09 10:58:35 +0300
commit214e54ceec5210a7f881ae987d05431bbf6d3ddd (patch)
treeb691a7b99c201b71212274fe5c7817c32260a949 /js/messages.php
parentc28dbb5970f5fc3b1b429ec00c46d5a8963e84cf (diff)
Output buffering for dynamic scripts
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
Diffstat (limited to 'js/messages.php')
-rw-r--r--js/messages.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/js/messages.php b/js/messages.php
index 05b9ee4ae4..07fd963c51 100644
--- a/js/messages.php
+++ b/js/messages.php
@@ -26,6 +26,13 @@ session_write_close();
require_once './libraries/js_escape.lib.php';
require_once './libraries/Util.class.php';
+require_once './libraries/OutputBuffering.class.php';
+$buffer = PMA_OutputBuffering::getInstance();
+$buffer->start();
+register_shutdown_function(function() {
+ echo PMA_OutputBuffering::getInstance()->getContents();
+});
+
$js_messages['strNoDropDatabases'] = __('"DROP DATABASE" statements are disabled.');
if ($cfg['AllowUserDropDatabase']) {
$js_messages['strNoDropDatabases'] = '';