Minor - flint fixes

pull/2650/head^2
Julio Montoya 7 years ago
parent 45daf5b9d0
commit 8d202989ff
  1. 5
      main/inc/lib/add_course.lib.inc.php
  2. 4
      main/inc/lib/api.lib.php
  3. 3
      main/inc/lib/course.lib.php
  4. 4
      main/install/install.lib.php
  5. 10
      main/social/personal_data.php
  6. 3
      src/CoreBundle/Traits/CourseTrait.php

@ -2,9 +2,7 @@
/* For licensing terms, see /license.txt */
use Chamilo\CoreBundle\Framework\Container;
use Chamilo\CourseBundle\Entity\CTool;
use Chamilo\CourseBundle\Entity\CToolIntro;
use Chamilo\CourseBundle\Tool\BaseTool;
/**
* Class AddCourse.
@ -448,7 +446,6 @@ class AddCourse
$settingsManager = CourseManager::getCourseSettingsManager();
$settingsManager->setCourse($course);
$alert = api_get_setting('email_alert_manager_on_new_quiz');
if ($alert === 'true') {
$defaultEmailExerciseAlert = 1;
@ -936,7 +933,7 @@ class AddCourse
}
/**
* @param array $courseInfo
* @param array $courseInfo
* @param int $counter
* @param array $file
* @param int $authorId

@ -1,13 +1,13 @@
<?php
/* For licensing terms, see /license.txt */
use Chamilo\CoreBundle\Entity\Course;
use Chamilo\CoreBundle\Entity\Session as SessionEntity;
use Chamilo\CoreBundle\Entity\SettingsCurrent;
use Chamilo\CoreBundle\Framework\Container;
use Chamilo\CourseBundle\Entity\CItemProperty;
use Chamilo\UserBundle\Entity\User;
use ChamiloSession as Session;
use Chamilo\CoreBundle\Entity\Session as SessionEntity;
use Chamilo\CoreBundle\Entity\Course;
use Symfony\Component\Finder\Finder;
/**

@ -2401,7 +2401,6 @@ class CourseManager
WHERE course_id = $courseId";
Database::query($sql);
$sql = "DELETE FROM skill_rel_course WHERE c_id = $courseId";
Database::query($sql);
@ -2421,8 +2420,6 @@ class CourseManager
$extraFieldValues = new ExtraFieldValue('course');
$extraFieldValues->deleteValuesByItem($courseId);
// Add event to system log
Event::addEvent(
LOG_COURSE_DELETE,

@ -512,8 +512,8 @@ function get_language_folder_list()
* WARNING - this function relies heavily on global variables $updateFromConfigFile
* and $configFile, and also changes these globals. This can be rewritten.
*
* @param string $param the parameter of which the value is returned
* @param string $updatePath If we want to give the path rather than take it from POST
* @param string $param the parameter of which the value is returned
* @param string $updatePath If we want to give the path rather than take it from POST
*
* @return string the value of the parameter
*

@ -373,11 +373,11 @@ if (api_get_setting('allow_terms_conditions') === 'true') {
$permissionBlock .= get_lang('Date').': '.api_get_local_time($legalTime).'<br /><br />';
$permissionBlock .= $formToString;
/*$permissionBlock .= Display::url(
get_lang('DeleteLegal'),
api_get_self().'?action=delete_legal&user_id='.$userId,
['class' => 'btn btn-danger btn-xs']
);*/
/*$permissionBlock .= Display::url(
get_lang('DeleteLegal'),
api_get_self().'?action=delete_legal&user_id='.$userId,
['class' => 'btn btn-danger btn-xs']
);*/
} else {
// @TODO add action handling for button
$permissionBlock .= Display::url(

@ -6,7 +6,7 @@ namespace Chamilo\CoreBundle\Traits;
use Chamilo\CoreBundle\Entity\Course;
/**
* Trait CourseTrait
* Trait CourseTrait.
*/
trait CourseTrait
{
@ -30,4 +30,3 @@ trait CourseTrait
return $this;
}
}

Loading…
Cancel
Save