Minor - remove unused code

pull/3984/head
Julio 4 years ago
parent 663be81fdd
commit 23bd908aca
  1. 3
      public/main/inc/lib/CourseChatUtils.php
  2. 1
      public/main/inc/lib/api.lib.php
  3. 6
      public/main/inc/lib/document.lib.php
  4. 2
      public/main/lp/aicc.class.php
  5. 4
      public/main/lp/readout_text.php
  6. 2
      public/main/mySpace/lp_tracking.php

@ -430,11 +430,8 @@ class CourseChatUtils
$courseInfo = api_get_course_info_by_id($this->courseId);
$date_now = date('Y-m-d');
$isMaster = (bool) api_is_course_admin();
//$basepath_chat = '/chat_files';
//$document_path = api_get_path(SYS_COURSE_PATH).$courseInfo['path'].'/document';
if ($this->groupId) {
$group_info = GroupManager:: get_group_properties($this->groupId);
//$basepath_chat = $group_info['directory'].'/chat_files';
}
//$chat_path = $document_path.$basepath_chat.'/';

@ -2164,7 +2164,6 @@ function api_format_course_array(Course $course = null)
$courseData['code'] = $courseData['sysCode'] = $course->getCode();
$courseData['name'] = $courseData['title'] = $course->getTitle();
$courseData['official_code'] = $courseData['visual_code'] = $course->getVisualCode();
//$courseData['path'] = $courseData['directory'] = $course->getDirectory(); // Use as key in path.
$courseData['creation_date'] = $course->getCreationDate()->format('Y-m-d H:i:s');
$courseData['titular'] = $course->getTutorName();
$courseData['language'] = $courseData['course_language'] = $course->getCourseLanguage();

@ -2823,12 +2823,6 @@ class DocumentManager
$comment = null;
$title = get_lang('Default certificate');
$fileName = api_replace_dangerous_char($title);
//$filePath = api_get_path(SYS_COURSE_PATH)."{$courseData['directory']}/document$dir";
/*if (!is_dir($filePath)) {
mkdir($filePath, api_get_permissions_for_new_directories());
}*/
//$fileFullPath = "$filePath/$fileName.html";
$fileType = 'file';
$templateContent = file_get_contents(api_get_path(SYS_CODE_PATH).'gradebook/certificate_template/template.html');

@ -606,8 +606,6 @@ class aicc extends learnpath
$LPname = $row['path'];
$list = explode('/', $LPname);
$LPnamesafe = $list[0];
//$zipfoldername = '/tmp';
//$zipfoldername = '../../courses/'.$_course['directory'].'/temp/'.$LPnamesafe;
$zipfoldername = api_get_path(SYS_COURSE_PATH).$_course['directory'].'/temp/'.$LPnamesafe;
$scormfoldername = api_get_path(SYS_COURSE_PATH).$_course['directory'].'/scorm/'.$LPnamesafe;
$zipfilename = $zipfoldername.'/'.$LPnamesafe.'.zip';

@ -40,10 +40,6 @@ if (null === $document) {
}
$documentText = $documentRepo->getResourceFileContent($document);
/*$documentPathInfo = pathinfo($document->getPath());
$coursePath = api_get_path(SYS_COURSE_PATH).$courseInfo['directory'];
$documentPath = '/document'.$document->getPath();
$documentText = file_get_contents($coursePath.$documentPath);*/
$documentText = api_remove_tags_with_space($documentText);
$wordsInfo = preg_split('/ |\n/', $documentText, -1, PREG_SPLIT_OFFSET_CAPTURE);

@ -49,7 +49,7 @@ if (!$isBoss &&
if ('user_course' === $origin) {
$interbreadcrumb[] = [
'url' => api_get_path(WEB_COURSE_PATH).$courseInfo['directory'],
'url' => api_get_course_url($courseInfo['real_id']),
'name' => $courseInfo['name'],
];
$interbreadcrumb[] = [

Loading…
Cancel
Save