From a1885af57c8e37a6ee229f47f0c3e1644f2d0195 Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Mon, 15 Apr 2019 15:39:16 +0200 Subject: [PATCH] Minor - Remove debug, comments --- main/lp/lp_controller.php | 14 +------------- .../Resources/views/Layout/base-layout.html.twig | 16 ---------------- 2 files changed, 1 insertion(+), 29 deletions(-) diff --git a/main/lp/lp_controller.php b/main/lp/lp_controller.php index f31d01ef04..331ddeb5af 100755 --- a/main/lp/lp_controller.php +++ b/main/lp/lp_controller.php @@ -225,9 +225,6 @@ if (!$lp_found || (!empty($_REQUEST['lp_id']) && $_SESSION['oLP']->get_id() != $ } // Regenerate a new lp object? Not always as some pages don't need the object (like upload?) if (!empty($_REQUEST['lp_id']) || !empty($myrefresh_id)) { - if ($debug > 0) { - error_log(' lp_id is defined'); - } // Select the lp in the database and check which type it is (scorm/chamilo/aicc) to generate the // right object. if (!empty($_REQUEST['lp_id'])) { @@ -265,32 +262,24 @@ if (!$lp_found || (!empty($_REQUEST['lp_id']) && $_SESSION['oLP']->get_id() != $ $oLP = new learnpath(api_get_course_id(), $lpIid, api_get_user_id()); if ($oLP !== false) { $lp_found = true; - } else { - error_log($oLP->error); } break; case 2: $oLP = new scorm(api_get_course_id(), $lpIid, api_get_user_id()); if ($oLP !== false) { $lp_found = true; - } else { - error_log($oLP->error); } break; case 3: $oLP = new aicc(api_get_course_id(), $lpIid, api_get_user_id()); if ($oLP !== false) { $lp_found = true; - } else { - error_log($oLP->error); } break; default: $oLP = new learnpath(api_get_course_id(), $lpIid, api_get_user_id()); if ($oLP !== false) { $lp_found = true; - } else { - error_log($oLP->error); } break; } @@ -311,7 +300,7 @@ if (!$lp_found || (!empty($_REQUEST['lp_id']) && $_SESSION['oLP']->get_id() != $ } if ($debug > 0) { - error_log('Passed oLP creation check', 0); + error_log('Passed oLP creation check'); } $is_allowed_to_edit = api_is_allowed_to_edit(false, true, false, false); @@ -323,7 +312,6 @@ if (isset($_SESSION['oLP'])) { $action = !empty($_REQUEST['action']) ? $_REQUEST['action'] : ''; -//var_dump($action);exit; if ($debug) { error_log('Entered lp_controller.php -+- (action: '.$action.')'); diff --git a/src/Chamilo/ThemeBundle/Resources/views/Layout/base-layout.html.twig b/src/Chamilo/ThemeBundle/Resources/views/Layout/base-layout.html.twig index f3c3dc75da..09cb7845a0 100644 --- a/src/Chamilo/ThemeBundle/Resources/views/Layout/base-layout.html.twig +++ b/src/Chamilo/ThemeBundle/Resources/views/Layout/base-layout.html.twig @@ -110,22 +110,6 @@ {% block chamilo_wrap %}
- {# Bug and help notifications #} - {#{% block help_notifications %}#} - {##} - {#{% endblock %}#} - - {# topbar #} - {% block topbar %} - {#{% include "@template_style/layout/topbar.html.twig" %}#} - {#{% if show_toolbar == 1 %}#} - {#
#} - {#{% endif %}#} - {% endblock %} -
{{ header_extra_content }}