1
0
mirror of https://github.com/phpmyadmin/phpmyadmin.git synced 2026-10-28 07:41:55 +03:00

Use same logic for printing SQL results as elsewhere

This commit is contained in:
Michal Čihař
2011-10-24 14:17:02 +02:00
parent 3dc06f4f70
commit 663958b564
2 changed files with 4 additions and 13 deletions

14
sql.php
View File

@@ -990,19 +990,7 @@ $(document).ready(makeProfilingChart);
// Do print the page if required
if (isset($printview) && $printview == '1') {
?>
<script type="text/javascript">
//<![CDATA[
// Do print the page
window.onload = function()
{
if (typeof(window.print) != 'undefined') {
window.print();
}
}
//]]>
</script>
<?php
PMA_printButton();
} // end print case
if ($GLOBALS['is_ajax_request'] != true) {