Internal: Flint fixes

pull/3513/head
Julio Montoya 5 years ago
parent 82c1a505ed
commit 6f3ca31e90
  1. 1
      public/main/admin/teachers_time_by_session_report.php
  2. 1
      public/main/course_home/redirect.php
  3. 2
      public/main/exercise/oral_expression.class.php
  4. 2
      public/main/forum/forumfunction.inc.php
  5. 2
      public/main/inc/lib/groupmanager.lib.php
  6. 1
      public/main/work/upload_corrections.php

@ -3,7 +3,6 @@
use Chamilo\CoreBundle\Entity\Session;
use Chamilo\CoreBundle\Framework\Container;
use Chamilo\CourseBundle\Repository\CStudentPublicationRepository;
use Doctrine\Common\Collections\Criteria;
/**

@ -29,5 +29,4 @@ if (!empty($courseCode)) {
}
}
api_not_allowed(true);

@ -183,7 +183,9 @@ class OralExpression extends Question
/**
* Get the URL for the audio file. Return null if the file doesn't exists.
*
* @todo fix path
*
* @param bool $loadFromDatabase
*
* @return string

@ -549,7 +549,6 @@ function forumForm(CForumForum $forum = null, $lp_id)
function delete_forum_image($forum_id)
{
throw new Exception('delete_forum_image');
/*$table_forums = Database::get_course_table(TABLE_FORUM);
$course_id = api_get_course_int_id();
$forum_id = (int) $forum_id;
@ -795,7 +794,6 @@ function store_forum($values, $courseInfo = [], $returnId = false)
if (isset($upload_ok)) {
if ($has_attachment) {
throw new Exception('$has_attachment');
/*$course_dir = $courseInfo['path'].'/upload/forum/images';
$sys_course_path = api_get_path(SYS_COURSE_PATH);
$updir = $sys_course_path.$course_dir;

@ -68,7 +68,6 @@ class GroupManager
}
/**
*
* @param int $courseId
*
* @return array
@ -82,7 +81,6 @@ class GroupManager
return $qb->getQuery()->getArrayResult();
$table_group = Database::get_course_table(TABLE_GROUP);
$courseId = !empty($courseId) ? (int) $courseId : api_get_course_int_id();

@ -103,7 +103,6 @@ if ($form->validate()) {
}
throw new Exception('upload corrections');
/*$folder = api_get_unique_id();
$destinationDir = api_get_path(SYS_ARCHIVE_PATH).$folder;
mkdir($destinationDir, api_get_permissions_for_new_directories(), true);

Loading…
Cancel
Save