Add debug_mode

This commit is contained in:
ruan 2015-10-03 12:02:37 +02:00
parent 0231f52523
commit 9146b9a0d8
2 changed files with 4 additions and 0 deletions

View File

@ -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 "<tr>";

View File

@ -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 ***/