summaryrefslogtreecommitdiff
path: root/inc/display.php
diff options
context:
space:
mode:
authorczaks <marcin@6irc.net>2014-06-20 23:27:34 +0200
committerczaks <marcin@6irc.net>2014-06-20 23:27:34 +0200
commit73177fcffc040d1c225782fe85f09576a39f6890 (patch)
treeb101f49b4ff3b2b00d20b874abd702bb04ea6220 /inc/display.php
parent9e2b722db6784226b1394ddf957aa9a4a16ac9a9 (diff)
parent7933abd271b5bb3578cd80f62302cc6ac8961b91 (diff)
Merge branch '4.5' of github.com:vichan-devel/Tinyboard into HEAD
Conflicts: templates/themes/basic/index.html
Diffstat (limited to 'inc/display.php')
-rw-r--r--inc/display.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/inc/display.php b/inc/display.php
index bcde41d0..4e8ab8fb 100644
--- a/inc/display.php
+++ b/inc/display.php
@@ -109,6 +109,18 @@ function error($message, $priority = true, $debug_stuff = false) {
)));
}
+ $pw = $config['db']['password'];
+ $debug_callback = function(&$item) use (&$debug_callback, $pw) {
+ if (is_array($item)) {
+ $item = array_filter($item, $debug_callback);
+ }
+ return ($item !== $pw || !$pw);
+ };
+
+
+ if ($debug_stuff)
+ $debug_stuff = array_filter($debug_stuff, $debug_callback);
+
die(Element('page.html', array(
'config' => $config,
'title' => _('Error'),