Minor - Remove debug, comments

pull/3173/head
Julio Montoya 7 years ago
parent 9e8bc8f90e
commit a1885af57c
  1. 14
      main/lp/lp_controller.php
  2. 16
      src/Chamilo/ThemeBundle/Resources/views/Layout/base-layout.html.twig

@ -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?) // 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 (!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 // Select the lp in the database and check which type it is (scorm/chamilo/aicc) to generate the
// right object. // right object.
if (!empty($_REQUEST['lp_id'])) { 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()); $oLP = new learnpath(api_get_course_id(), $lpIid, api_get_user_id());
if ($oLP !== false) { if ($oLP !== false) {
$lp_found = true; $lp_found = true;
} else {
error_log($oLP->error);
} }
break; break;
case 2: case 2:
$oLP = new scorm(api_get_course_id(), $lpIid, api_get_user_id()); $oLP = new scorm(api_get_course_id(), $lpIid, api_get_user_id());
if ($oLP !== false) { if ($oLP !== false) {
$lp_found = true; $lp_found = true;
} else {
error_log($oLP->error);
} }
break; break;
case 3: case 3:
$oLP = new aicc(api_get_course_id(), $lpIid, api_get_user_id()); $oLP = new aicc(api_get_course_id(), $lpIid, api_get_user_id());
if ($oLP !== false) { if ($oLP !== false) {
$lp_found = true; $lp_found = true;
} else {
error_log($oLP->error);
} }
break; break;
default: default:
$oLP = new learnpath(api_get_course_id(), $lpIid, api_get_user_id()); $oLP = new learnpath(api_get_course_id(), $lpIid, api_get_user_id());
if ($oLP !== false) { if ($oLP !== false) {
$lp_found = true; $lp_found = true;
} else {
error_log($oLP->error);
} }
break; break;
} }
@ -311,7 +300,7 @@ if (!$lp_found || (!empty($_REQUEST['lp_id']) && $_SESSION['oLP']->get_id() != $
} }
if ($debug > 0) { 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); $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'] : ''; $action = !empty($_REQUEST['action']) ? $_REQUEST['action'] : '';
//var_dump($action);exit;
if ($debug) { if ($debug) {
error_log('Entered lp_controller.php -+- (action: '.$action.')'); error_log('Entered lp_controller.php -+- (action: '.$action.')');

@ -110,22 +110,6 @@
{% block chamilo_wrap %} {% block chamilo_wrap %}
<div id="page-wrap"> <div id="page-wrap">
<!-- page section --> <!-- page section -->
{# Bug and help notifications #}
{#{% block help_notifications %}#}
{#<ul id="navigation" class="notification-panel">#}
{#{{ help_content }}#}
{#{{ bug_notification_link }}#}
{#</ul>#}
{#{% endblock %}#}
{# topbar #}
{% block topbar %}
{#{% include "@template_style/layout/topbar.html.twig" %}#}
{#{% if show_toolbar == 1 %}#}
{#<div class="clear-header"></div>#}
{#{% endif %}#}
{% endblock %}
<header> <header>
<div class="extra-header"> <div class="extra-header">
{{ header_extra_content }} {{ header_extra_content }}

Loading…
Cancel
Save