summaryrefslogtreecommitdiff
path: root/system/views/kohana
diff options
context:
space:
mode:
Diffstat (limited to 'system/views/kohana')
-rw-r--r--system/views/kohana/error.php50
1 files changed, 25 insertions, 25 deletions
diff --git a/system/views/kohana/error.php b/system/views/kohana/error.php
index b40c0f8a..aa6770c4 100644
--- a/system/views/kohana/error.php
+++ b/system/views/kohana/error.php
@@ -3,7 +3,7 @@
$error_id = uniqid('error');
?>
<style type="text/css">
-
+
#kohana_error {
background: #CFF292;
font-size: 1em;
@@ -11,7 +11,7 @@ $error_id = uniqid('error');
text-align: left;
color: #111;
}
-
+
#kohana_error h1, #kohana_error h2 {
margin: 0;
padding: 1em;
@@ -20,37 +20,37 @@ $error_id = uniqid('error');
background: #CFF292;
color: #000000;
}
-
+
#kohana_error h1 a, #kohana_error h2 a {
color: #000;
}
-
+
#kohana_error h2 {
background: #CFF292;
border-top: 1px dotted;
}
-
+
#kohana_error h3 {
margin: 0;
padding: 0.4em 0 0;
font-size: 1em;
font-weight: normal;
}
-
+
#kohana_error p {
margin: 0;
padding: 0.2em 0;
}
-
+
#kohana_error a {
color: #1b323b;
}
-
+
#kohana_error pre {
overflow: auto;
white-space: pre-wrap;
}
-
+
#kohana_error table {
width: 100%;
display: block;
@@ -59,20 +59,20 @@ $error_id = uniqid('error');
border-collapse: collapse;
background: #fff;
}
-
+
#kohana_error table td {
border: solid 1px #ddd;
text-align: left;
vertical-align: top;
padding: 0.4em;
}
-
+
#kohana_error div.content {
padding: 0.4em 1em 1em;
overflow: hidden;
border-top: 1px dotted;
}
-
+
#kohana_error pre.source {
margin: 0 0 1em;
padding: 0.4em;
@@ -80,26 +80,26 @@ $error_id = uniqid('error');
border: dotted 1px #b7c680;
line-height: 1.2em;
}
-
+
#kohana_error pre.source span.line {
display: block;
}
-
+
#kohana_error pre.source span.highlight {
background: #f0eb96;
}
-
+
#kohana_error pre.source span.line span.number {
color: #666;
}
-
+
#kohana_error ol.trace {
display: block;
margin: 0 0 0 2em;
padding: 0;
list-style: decimal;
}
-
+
#kohana_error ol.trace li {
margin: 0;
padding: 0;
@@ -110,19 +110,19 @@ $error_id = uniqid('error');
function koggle(elem)
{
elem = document.getElementById(elem);
-
- if (elem.style && elem.style['display'])
+
+ if (elem.style && elem.style['display'])
// Only works with the "style" attr
var disp = elem.style['display'];
- else
- if (elem.currentStyle)
+ else
+ if (elem.currentStyle)
// For MSIE, naturally
var disp = elem.currentStyle['display'];
- else
- if (window.getComputedStyle)
+ else
+ if (window.getComputedStyle)
// For most other browsers
var disp = document.defaultView.getComputedStyle(elem, null).getPropertyValue('display');
-
+
// Toggle the state of the "display" style
elem.style.display = disp == 'block' ? 'none' : 'block';
return false;
@@ -131,7 +131,7 @@ $error_id = uniqid('error');
<div id="kohana_error">
<h1>
<span class="type">
-<?php echo $type?> [ <?php echo $code?> ]:
+<?php echo $type?> [ <?php echo __($code)?> ]:
</span>
<span class="message">
<?php echo $message?>