Skip to content
Snippets Groups Projects
Commit 12a376e6 authored by srosse's avatar srosse
Browse files

no-jira: show again stacktraces of red screens but only in debug mode

parent cff72e2e
No related branches found
No related tags found
No related merge requests found
...@@ -182,7 +182,6 @@ public class ExceptionWindowController extends DefaultChiefController { ...@@ -182,7 +182,6 @@ public class ExceptionWindowController extends DefaultChiefController {
} else { } else {
msg.contextPut("debug", Boolean.FALSE); msg.contextPut("debug", Boolean.FALSE);
} }
msg.contextPut("listenerInfoRaw", componentListenerInfo);
msg.contextPut("listenerInfo", Formatter.escWithBR(componentListenerInfo).toString()); msg.contextPut("listenerInfo", Formatter.escWithBR(componentListenerInfo).toString());
msg.contextPut("stacktrace", OLATRuntimeException.throwableToHtml(th)); msg.contextPut("stacktrace", OLATRuntimeException.throwableToHtml(th));
......
...@@ -6,22 +6,20 @@ ...@@ -6,22 +6,20 @@
<meta name="keywords" content="$r.translate("meta.keywords")" /> <meta name="keywords" content="$r.translate("meta.keywords")" />
<meta name="dcterms.creator" content="OpenOLAT - http://www.openolat.org" /> <meta name="dcterms.creator" content="OpenOLAT - http://www.openolat.org" />
<meta name="dcterms.subject" content="OpenOLAT - infinite learning - Your Open Source Learning Management System" /> <meta name="dcterms.subject" content="OpenOLAT - infinite learning - Your Open Source Learning Management System" />
<meta name="dcterms.contributor" content="see http://www.openolat.org" /> <meta name="dcterms.contributor" content="see https://www.openolat.org" />
<meta name="dcterms.date" content="2010-03-16" /> <meta name="dcterms.date" content="2010-03-16" />
<meta name="dcterms.type" content="Interactive Resource" /> <meta name="dcterms.type" content="Interactive Resource" />
<meta name="dcterms.identifier" content="http://www.openolat.org" /> <meta name="dcterms.identifier" content="https://www.openolat.org" />
<meta name="dcterms.rights" content="http://www.openolat.org" /> <meta name="dcterms.rights" content="https://www.openolat.org" />
## hide toolbar on ios with minimal-ui ## hide toolbar on ios with minimal-ui
<meta name="viewport" content="minimal-ui, width=device-width, initial-scale=1"> <meta name="viewport" content="minimal-ui, width=device-width, initial-scale=1">
<meta http-equiv="Content-type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
## <!-- IE cache --> ## <!-- IE cache -->
<script> <script>
/* <![CDATA[ */
#if($enforceTopFrame) #if($enforceTopFrame)
if (top!=self){top.location=self.location+"?o_winrndo=1";} if (top!=self){top.location=self.location+"?o_winrndo=1";}
#end #end
var o_info = new Object(); var o_info = new Object();
/* ]]> */
</script> </script>
## jQuery libraries ## jQuery libraries
<script src='$r.staticLink("js/jquery/jquery-3.4.1.min.js")'></script> <script src='$r.staticLink("js/jquery/jquery-3.4.1.min.js")'></script>
...@@ -52,9 +50,7 @@ var o_info = new Object(); ...@@ -52,9 +50,7 @@ var o_info = new Object();
#end #end
<script> <script>
/* <![CDATA[ */
jQuery.noConflict(); jQuery.noConflict();
/* ]]> */
</script> </script>
## LAYOUT ## LAYOUT
...@@ -159,6 +155,7 @@ $r.translate('error.time') ${time} ...@@ -159,6 +155,7 @@ $r.translate('error.time') ${time}
</form> </form>
</div> </div>
#if($r.isTrue($debug))
<div class="o_box"> <div class="o_box">
#o_togglebox_start("o_stacktrace" $r.translate("error.technical")) #o_togglebox_start("o_stacktrace" $r.translate("error.technical"))
<div class="o_copy_code o_nowrap"> <div class="o_copy_code o_nowrap">
...@@ -167,13 +164,14 @@ $r.translate('error.time') ${time} ...@@ -167,13 +164,14 @@ $r.translate('error.time') ${time}
</div> </div>
#o_togglebox_end() #o_togglebox_end()
</div> </div>
#end
</div> </div>
## END ERROR AREA ## END ERROR AREA
<a id="o_toplink" href="#o_top" onclick="o_scrollToElement('#o_top');" title="$r.translateInAttribute("top.alt")"> <a id="o_toplink" href="#o_top" onclick="o_scrollToElement('#o_top');" title="$r.translateInAttribute("top.alt")">
<i class="o_icon o_icon_top"></i> $r.translate("top")</a> <i class="o_icon o_icon_top"></i> $r.translate("top")</a>
</div> </div>
</div>
## END #o_main ----- ## END #o_main -----
## ----- START footer ---------- ## ----- START footer ----------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment