From 8a44f287f559ab415efa8b0f29fde4a92bc17df8 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Sun, 4 Mar 2012 07:10:29 -0500 Subject: [PATCH] No longer depend on grab_globals.lib.php for $_GET variables --- sql.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sql.php b/sql.php index 42d72caae2..b006141655 100644 --- a/sql.php +++ b/sql.php @@ -23,7 +23,9 @@ $GLOBALS['js_include'][] = 'gis_data_editor.js'; $GLOBALS['js_include'][] = 'codemirror/lib/codemirror.js'; $GLOBALS['js_include'][] = 'codemirror/mode/mysql/mysql.js'; - +if (isset($_REQUEST['printview'])) { + $GLOBALS['printview'] = $_REQUEST['printview']; +} if (isset($_SESSION['profiling'])) { $GLOBALS['js_include'][] = 'highcharts/highcharts.js';