Minor - flint fixes

pull/2744/head
Julio Montoya 7 years ago
parent 06ba4ea898
commit aa7dc27aa9
  1. 15
      main/course_info/infocours.php
  2. 2
      main/inc/lib/course_category.lib.php
  3. 1
      main/inc/lib/formvalidator/FormValidator.class.php
  4. 1
      main/install/install.lib.php

@ -51,10 +51,10 @@ $form = new FormValidator(
api_get_self().'?'.api_get_cidreq() api_get_self().'?'.api_get_cidreq()
); );
// COURSE SETTINGS // COURSE SETTINGS
function card_settings_open($id, $title, $open = false, $icon, $parent){ function card_settings_open($id, $title, $open = false, $icon, $parent)
{
$html = '<div class="card">'; $html = '<div class="card">';
$html .= '<div class="card-header" id="card_'.$id.'">'; $html .= '<div class="card-header" id="card_'.$id.'">';
$html .= '<h5 class="card-title">'; $html .= '<h5 class="card-title">';
@ -66,15 +66,17 @@ function card_settings_open($id, $title, $open = false, $icon, $parent){
$html .= '</a></h5></div>'; $html .= '</a></h5></div>';
$html .= '<div id="collapse_'.$id.'" class="collapse show" aria-labelledby="heading_'.$id.'" data-parent="#'.$parent.'">'; $html .= '<div id="collapse_'.$id.'" class="collapse show" aria-labelledby="heading_'.$id.'" data-parent="#'.$parent.'">';
$html .= '<div class="card-body">'; $html .= '<div class="card-body">';
return $html; return $html;
} }
function card_settings_close(){ function card_settings_close()
{
$html = '</div></div></div>'; $html = '</div></div></div>';
return $html; return $html;
} }
$form->addHtml(card_settings_open('course_settings', get_lang('CourseSettings'), true, 'settings.png', 'accordionSettings')); $form->addHtml(card_settings_open('course_settings', get_lang('CourseSettings'), true, 'settings.png', 'accordionSettings'));
$image = ''; $image = '';
@ -639,7 +641,6 @@ if (api_get_setting('allow_course_theme') == 'true') {
); );
$globalGroup[get_lang("AllowLearningPathTheme")] = $group; $globalGroup[get_lang("AllowLearningPathTheme")] = $group;
} }
$allowLPReturnLink = api_get_setting('allow_lp_return_link'); $allowLPReturnLink = api_get_setting('allow_lp_return_link');
@ -707,7 +708,6 @@ if ($isEditable) {
$form->freeze(); $form->freeze();
} }
$form->addPanelOption( $form->addPanelOption(
'config_lp', 'config_lp',
get_lang('ConfigLearnpath'), get_lang('ConfigLearnpath'),
@ -1052,13 +1052,10 @@ if ($show_delete_watermark_text_message) {
//Template Course Info //Template Course Info
$tpl = new Template($nameTools); $tpl = new Template($nameTools);
Display::display_header($nameTools, 'Settings'); Display::display_header($nameTools, 'Settings');
//$form->display(); //$form->display();
$tpl->assign('course_settings', $form->returnForm()); $tpl->assign('course_settings', $form->returnForm());
$courseInfoLayout = $tpl->get_template("course_info/index.html.twig"); $courseInfoLayout = $tpl->get_template("course_info/index.html.twig");
$content = $tpl->fetch($courseInfoLayout); $content = $tpl->fetch($courseInfoLayout);

@ -50,8 +50,10 @@ class CourseCategory
$category['access_url_id'] = $result['access_url_id']; $category['access_url_id'] = $result['access_url_id'];
} }
$category['course_count'] = self::countCoursesInCategory($categoryCode); $category['course_count'] = self::countCoursesInCategory($categoryCode);
return $category; return $category;
} }
return []; return [];
} }

@ -947,7 +947,6 @@ EOT;
*/ */
public function addPanelOption($name, $title, $groupList, $icon, $open = false, $parent) public function addPanelOption($name, $title, $groupList, $icon, $open = false, $parent)
{ {
$html = '<div class="card">'; $html = '<div class="card">';
$html .= '<div class="card-header" id="card_'.$name.'">'; $html .= '<div class="card-header" id="card_'.$name.'">';
$html .= '<h5 class="card-title">'; $html .= '<h5 class="card-title">';

@ -856,7 +856,6 @@ function display_requirements(
</table>'; </table>';
echo '</div>'; echo '</div>';
// RECOMMENDED SETTINGS // RECOMMENDED SETTINGS
// Note: these are the settings for Joomla, does this also apply for Chamilo? // Note: these are the settings for Joomla, does this also apply for Chamilo?
// Note: also add upload_max_filesize here so that large uploads are possible // Note: also add upload_max_filesize here so that large uploads are possible

Loading…
Cancel
Save