From 0b5aa7f0fb7fb5a840ccb560e258577e1c608616 Mon Sep 17 00:00:00 2001 From: ruan Date: Tue, 27 Oct 2015 07:22:11 +0200 Subject: [PATCH] Remove debug_mode --- includes/page.php | 3 --- includes/settings.php | 6 ------ 2 files changed, 9 deletions(-) diff --git a/includes/page.php b/includes/page.php index 491c9b4..6d3ee76 100644 --- a/includes/page.php +++ b/includes/page.php @@ -271,9 +271,6 @@ class Page { $this->table_print_headers($headers); $this->table_headers_printed = true; } - 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 178dab5..77d4d09 100644 --- a/includes/settings.php +++ b/includes/settings.php @@ -66,8 +66,6 @@ final class Settings { $this->date_format = 'F j, Y, g:i A'; date_default_timezone_set("UTC"); - $this->debug_mode = 0; - // Enable PHP error reporting. $error_reporting = true; @@ -115,10 +113,6 @@ final class Settings { if ($driver === 'pgsql') { $this->conn->query("SET NAMES 'UTF8';"); } - - if ($this->debug_mode > 0) { - echo PHP_VERSION; - } } } }