summaryrefslogtreecommitdiff
path: root/roundcubemail/program/include
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-08-19 12:51:39 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-08-19 12:51:39 +0000
commit3d2886805994b7c9004942a2e13ad7362a9c5f51 (patch)
treee421a001e167fd4c8b1454f9ac2f57ab2f7c8001 /roundcubemail/program/include
parentb4f03cb6cd164a0d17edc6a9fde96eb001552878 (diff)
- Don't add console to error pages, prevents js error
git-svn-id: https://svn.roundcube.net/trunk@5099 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include')
-rwxr-xr-xroundcubemail/program/include/rcube_template.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/roundcubemail/program/include/rcube_template.php b/roundcubemail/program/include/rcube_template.php
index f5c741fc5..c4dd73b23 100755
--- a/roundcubemail/program/include/rcube_template.php
+++ b/roundcubemail/program/include/rcube_template.php
@@ -434,7 +434,7 @@ class rcube_template extends rcube_html_page
if ($write) {
// add debug console
- if ($this->config['debug_level'] & 8) {
+ if ($realname != 'error' && ($this->config['debug_level'] & 8)) {
$this->add_footer('<div id="console" style="position:absolute;top:5px;left:5px;width:405px;padding:2px;background:white;z-index:9000;display:none">
<a href="#toggle" onclick="con=$(\'#dbgconsole\');con[con.is(\':visible\')?\'hide\':\'show\']();return false">console</a>
<textarea name="console" id="dbgconsole" rows="20" cols="40" wrap="off" style="display:none;width:400px;border:none;font-size:10px" spellcheck="false"></textarea></div>'