From 1eff19d1b01c0871c205cf6547c599fd81485cc2 Mon Sep 17 00:00:00 2001 From: Ian Date: Sun, 11 Jan 2015 15:29:53 +0100 Subject: [PATCH] use in release versions only --- include/plugin_api.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/plugin_api.inc.php b/include/plugin_api.inc.php index bc4433a2..17a1b0ea 100644 --- a/include/plugin_api.inc.php +++ b/include/plugin_api.inc.php @@ -68,7 +68,7 @@ function serendipity_plugin_api_core_event_hook($event, &$bag, &$eventData, &$ad case 'js': // Add a global available (index.tpl; admin/index.tpl; preview_iframe.tpl) redirect error string function used by errorToExceptionHandler() // hardened by admin only - better have that here, to be reachable everywhere - if( $serendipity['serendipityUserlevel'] >= USERLEVEL_ADMIN ) { + if( $serendipity['production'] === true && $serendipity['serendipityUserlevel'] >= USERLEVEL_ADMIN ) { echo " function errorHandlerCreateDOM(htmlStr) { var frag = document.createDocumentFragment(),