Browse Source

Remove require_once already added with composer

jmontoyaa 7 years ago
parent
commit
868205d2e5
2 changed files with 0 additions and 9 deletions
  1. 0 1
      main/inc/lib/webservices/Rest.php
  2. 0 8
      main/webservices/lp.php

+ 0 - 1
main/inc/lib/webservices/Rest.php

@@ -296,7 +296,6 @@ class Rest extends WebService
 
             $path = $directory['path'];
         }
-        require_once api_get_path(LIBRARY_PATH).'fileDisplay.lib.php';
 
         $courseInfo = api_get_course_info_by_id($this->course->getId());
         $documents = DocumentManager::get_all_document_data(

+ 0 - 8
main/webservices/lp.php

@@ -293,10 +293,6 @@ function WSGetLpList($params)
         return return_error(WS_ERROR_SECRET_KEY);
     }
 
-    require_once api_get_path(SYS_CODE_PATH).'lp/learnpathList.class.php';
-    require_once api_get_path(SYS_CODE_PATH).'lp/learnpath.class.php';
-    require_once api_get_path(SYS_CODE_PATH).'lp/learnpathItem.class.php';
-
     $courseIdName = $params['course_id_name'];
     $courseIdValue = $params['course_id_value'];
 
@@ -387,10 +383,6 @@ function WSDeleteLp($params)
         return return_error(WS_ERROR_SECRET_KEY);
     }
 
-    require_once api_get_path(SYS_CODE_PATH).'lp/learnpathList.class.php';
-    require_once api_get_path(SYS_CODE_PATH).'lp/learnpath.class.php';
-    require_once api_get_path(SYS_CODE_PATH).'lp/learnpathItem.class.php';
-
     $courseIdName = $params['course_id_name'];
     $courseIdValue = $params['course_id_value'];
     $lpId = $params['lp_id'];