From ad7caf78e8897246e671c5b2516d1e94ee48e1a9 Mon Sep 17 00:00:00 2001
From: Cameron
Date: Mon, 4 May 2020 12:10:22 -0700
Subject: [PATCH] Fix for theme render test. Disabled debug routines when
inactive. Bootstrap3 moved modal to footer. Code cleanup.
---
class2.php | 7 +++---
e107_core/templates/footer_default.php | 9 ++++----
e107_core/templates/header_default.php | 2 ++
e107_handlers/db_debug_class.php | 30 +++++++++++++++++++++----
e107_tests/tests/unit/e107tableTest.php | 2 +-
e107_themes/bootstrap3/theme.html | 6 ++---
6 files changed, 39 insertions(+), 17 deletions(-)
diff --git a/class2.php b/class2.php
index 6b348331f..6b2f7daf8 100755
--- a/class2.php
+++ b/class2.php
@@ -370,9 +370,8 @@ $dbg = e107::getDebug();
if(E107_DEBUG_LEVEL)
{
- // $e107_debug = true; // BC
- //$dbg = e107::getDebug();
-
+ $dbg->active(true);
+
/** @deprecated $db_debug */
$db_debug = $dbg;
$dbg->logTime('Init ErrHandler');
@@ -717,7 +716,7 @@ e107::getNotify()->registerEvents();
//
// O: Start user session
//
-$sql -> db_Mark_Time('User session');
+$dbg->logTime('User session');
init_session(); // Set up a lot of the user-related constants
diff --git a/e107_core/templates/footer_default.php b/e107_core/templates/footer_default.php
index 2a01690df..164d43d49 100644
--- a/e107_core/templates/footer_default.php
+++ b/e107_core/templates/footer_default.php
@@ -71,10 +71,11 @@ if (varset($e107_popup) != 1)
{
$psc = array(
- '
-
-{---MODAL---}
-
-
+
+{---MODAL---}
{---FOOTER---}