Merge pull request #762 from AngelFQC/BT10060
Allow course/session catalog published - refs BT#10060 #TMI1.10.x
commit
ec557583fa
@ -0,0 +1,21 @@ |
||||
<?php |
||||
/* For licensing terms, see /license.txt */ |
||||
/** |
||||
* Layout (principal view) used for structuring course/session catalog |
||||
* @author Angel Fernando Quiroz Campos <angel.quiroz@beeznest.com> |
||||
* @package chamilo.auth |
||||
*/ |
||||
|
||||
if (api_get_configuration_value('course_catalog_published') !== 'true') { |
||||
// Acces rights: anonymous users can't do anything usefull here. |
||||
api_block_anonymous_users(); |
||||
} |
||||
|
||||
// Header |
||||
Display::display_header(''); |
||||
|
||||
// Display |
||||
echo $content; |
||||
|
||||
// Footer |
||||
Display::display_footer(); |
Loading…
Reference in new issue