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:
authorJo Michael <me@mynetx.net>2012-04-13 03:43:32 +0400
committerJo Michael <me@mynetx.net>2012-04-13 03:43:32 +0400
commit8744f8cf66e57963c74bfc7bca800667ba793554 (patch)
treecb742feb6be3101a2b8a6b42e8b6364875dceac4 /db_routines.php
parent6557b71b88fe19997844169854d34af73a02c70f (diff)
+ rfe #3517354 [interface] Allow disabling CodeMirror with $cfg['CodemirrorEnable'] = false
Diffstat (limited to 'db_routines.php')
-rw-r--r--db_routines.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/db_routines.php b/db_routines.php
index dd55c72a8c..13f33f1561 100644
--- a/db_routines.php
+++ b/db_routines.php
@@ -24,8 +24,11 @@ if (PMA_DRIZZLE) {
$GLOBALS['js_include'][] = 'jquery/timepicker.js';
$GLOBALS['js_include'][] = 'rte/common.js';
$GLOBALS['js_include'][] = 'rte/routines.js';
-$GLOBALS['js_include'][] = 'codemirror/lib/codemirror.js';
-$GLOBALS['js_include'][] = 'codemirror/mode/mysql/mysql.js';
+
+if ($GLOBALS['cfg']['CodemirrorEnable']) {
+ $GLOBALS['js_include'][] = 'codemirror/lib/codemirror.js';
+ $GLOBALS['js_include'][] = 'codemirror/mode/mysql/mysql.js';
+}
/**
* Include all other files