From 9146b9a0d89235e2a9eb4e141bca7a1cb6b01666 Mon Sep 17 00:00:00 2001 From: ruan Date: Sat, 3 Oct 2015 12:02:37 +0200 Subject: [PATCH] Add debug_mode --- includes/page.php | 3 +++ includes/settings.php | 1 + 2 files changed, 4 insertions(+) diff --git a/includes/page.php b/includes/page.php index 9c9ef5c..41dd643 100644 --- a/includes/page.php +++ b/includes/page.php @@ -254,6 +254,9 @@ class Page { } function print_table_rows($row, $array) { + if ($this->settings->debug_mode > 0) { + var_dump($row); + } $id = $row['id']; $type = $this->type; echo ""; diff --git a/includes/settings.php b/includes/settings.php index 7e9ce14..da1b4d3 100644 --- a/includes/settings.php +++ b/includes/settings.php @@ -63,6 +63,7 @@ final class Settings { $this->date_format = 'F j, Y, g:i A'; date_default_timezone_set("UTC"); + $this->debug_mode = 0; /*** End of configuration ***/