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 /server_privileges.php
parent6557b71b88fe19997844169854d34af73a02c70f (diff)
+ rfe #3517354 [interface] Allow disabling CodeMirror with $cfg['CodemirrorEnable'] = false
Diffstat (limited to 'server_privileges.php')
-rw-r--r--server_privileges.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/server_privileges.php b/server_privileges.php
index a96eef03c2..79f3b2a169 100644
--- a/server_privileges.php
+++ b/server_privileges.php
@@ -15,8 +15,11 @@ require_once 'libraries/common.inc.php';
*/
$GLOBALS['js_include'][] = 'server_privileges.js';
$GLOBALS['js_include'][] = 'functions.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';
+}
$_add_user_error = false;
require 'libraries/server_common.inc.php';