Initialize variable used in textarea highlighting

This commit is contained in:
Jakub Vrana 2012-05-13 15:26:42 -07:00
parent d6c5f85a24
commit 20e11be093
2 changed files with 2 additions and 1 deletions

View file

@ -16,6 +16,7 @@ if (!$error && $_POST["clear"]) {
$codemirror_path = "../externals/CodeMirror2"; $codemirror_path = "../externals/CodeMirror2";
$codemirror_mode = ($jush == "sql" ? "mysql" : "plsql"); $codemirror_mode = ($jush == "sql" ? "mysql" : "plsql");
$error_lines = array();
page_header(lang('SQL command'), $error, array(), "", "<link rel='stylesheet' href='$codemirror_path/lib/codemirror.css'>"); page_header(lang('SQL command'), $error, array(), "", "<link rel='stylesheet' href='$codemirror_path/lib/codemirror.css'>");
@ -54,7 +55,6 @@ if (!$error && $_POST) {
} }
$commands = 0; $commands = 0;
$errors = array(); $errors = array();
$error_lines = array();
$line = 0; $line = 0;
$parse = '[\'"' . ($jush == "sql" ? '`#' : ($jush == "sqlite" ? '`[' : ($jush == "mssql" ? '[' : ''))) . ']|/\\*|-- |$' . ($jush == "pgsql" ? '|\\$[^$]*\\$' : ''); $parse = '[\'"' . ($jush == "sql" ? '`#' : ($jush == "sqlite" ? '`[' : ($jush == "mssql" ? '[' : ''))) . ']|/\\*|-- |$' . ($jush == "pgsql" ? '|\\$[^$]*\\$' : '');
$total_start = microtime(); $total_start = microtime();

View file

@ -3,6 +3,7 @@ Print current time next to executed SQL queries
Highlight code in SQL command by CodeMirror Highlight code in SQL command by CodeMirror
Link to descending order Link to descending order
Link to original table in EXPLAIN of SELECT * FROM table t Link to original table in EXPLAIN of SELECT * FROM table t
Oracle: schema, processlist, table overview numbers
Replace JSMin by better JavaScript minifier Replace JSMin by better JavaScript minifier
Don't use AJAX links and forms Don't use AJAX links and forms
Ukrainian translation Ukrainian translation