Minor - format code.

1.9.x
Julio Montoya 10 years ago
parent 86ab6cf386
commit 7d21d2cd1f
  1. 1
      main/newscorm/lp_add_item.php
  2. 15
      user_portal.php

@ -1,5 +1,6 @@
<?php
/* For licensing terms, see /license.txt */
/**
* This is a learning path creation and player tool in Chamilo - previously
* learnpath_handler.php

@ -164,19 +164,20 @@ if (api_get_setting('allow_browser_sniffer') == 'true') {
}
}
// Display the Site Use Cookie Warning Validation
$useCookieValidation = api_get_configuration_value('cookie_warning');
if ($useCookieValidation) {
if (isset($_POST['acceptCookies'])) {
api_set_site_use_cookie_warning_cookie();
} else if (!api_site_use_cookie_warning_cookie_exist()) {
if (Template::isToolBarDisplayedForUser()) {
$controller->tpl->assign('toolBarDisplayed', true);
} else {
$controller->tpl->assign('toolBarDisplayed', false);
} else {
if (!api_site_use_cookie_warning_cookie_exist()) {
if (Template::isToolBarDisplayedForUser()) {
$controller->tpl->assign('toolBarDisplayed', true);
} else {
$controller->tpl->assign('toolBarDisplayed', false);
}
$controller->tpl->assign('displayCookieUsageWarning', true);
}
$controller->tpl->assign('displayCookieUsageWarning', true);
}
}

Loading…
Cancel
Save