[PATCH] Already defined error
-
Due to a conflict with wp-syntax plugin I was getting warnings like
Notice: Constant GESHI_VERSION already defined in /path/to/wp-content/plugins/mysql-profiler/lib/geshi/geshi.php on line 44
Notice: Constant GESHI_LANG_ROOT already defined in /path/to/wp-content/plugins/mysql-profiler/lib/geshi/geshi.php on line 53
Notice: Constant GESHI_NO_LINE_NUMBERS already defined in /path/to/wp-content/plugins/mysql-profiler/lib/geshi/geshi.php on line 58
etcIn mysql-profiler/lib/mysql_profiler.php
init()
function I changedif ($this->highlight_syntax) {
to
if ($this->highlight_syntax && !defined('GESHI_VERSION')) {
Once that was done everything was good!
- The topic ‘[PATCH] Already defined error’ is closed to new replies.