Adding $use_anonymous in lp_controller and lp_view see #7111

1.9.x
Julio Montoya 11 years ago
parent 40ac034474
commit 64a3c47b45
  1. 7
      main/newscorm/lp_controller.php
  2. 2
      main/newscorm/lp_view.php

@ -9,6 +9,9 @@
*/
use \ChamiloSession as Session;
// Flag to allow for anonymous user - needs to be set before global.inc.php.
$use_anonymous = true;
$debug = 0;
if ($debug > 0) error_log('New LP -+- Entered lp_controller.php -+- (action: '.$_REQUEST['action'].')', 0);
@ -225,10 +228,6 @@ $htmlHeadXtra[] = '
</script>
';
// Flag to allow for anonymous user - needs to be set before global.inc.php.
$use_anonymous = true;
// Include class definitions before session_start() to ensure availability when touching
// session vars containing learning paths.
require_once 'learnpath.class.php';

@ -18,6 +18,8 @@
use \ChamiloSession as Session;
$use_anonymous = true;
$_SESSION['whereami'] = 'lp/view';
$this_section = SECTION_COURSES;

Loading…
Cancel
Save