Minor - remove unused $libpath variable

pull/2487/head
jmontoyaa 7 years ago
parent cfe58b9f8d
commit 36fa39b537
  1. 2
      main/admin/career_dashboard.php
  2. 5
      main/admin/user_add.php
  3. 2
      main/admin/user_edit.php
  4. 2
      main/social/profile.php
  5. 2
      main/ticket/categories.php
  6. 2
      main/ticket/priorities.php
  7. 2
      main/ticket/projects.php
  8. 2
      main/ticket/status.php
  9. 2
      main/ticket/ticket_details.php
  10. 1
      main/ticket/tickets.php
  11. 2
      main/webservices/access_url.php
  12. 1
      main/webservices/additional_webservices.php
  13. 2
      main/webservices/client_soap.php
  14. 1
      main/webservices/cm_soap.php
  15. 2
      main/webservices/cm_webservice.php
  16. 1
      main/webservices/cm_webservice_announcements.php
  17. 1
      main/webservices/cm_webservice_course.php
  18. 3
      main/webservices/cm_webservice_courses.php
  19. 3
      main/webservices/cm_webservice_forum.php
  20. 2
      main/webservices/courses_list.soap.php
  21. 1
      main/webservices/lp.php
  22. 2
      main/webservices/registration.soap.php
  23. 1
      main/webservices/soap.php
  24. 2
      main/webservices/user_info.soap.php
  25. 1
      main/webservices/webservice_course.php
  26. 1
      main/webservices/webservice_session.php

@ -8,8 +8,6 @@
$cidReset = true;
require_once __DIR__.'/../inc/global.inc.php';
$libpath = api_get_path(LIBRARY_PATH);
api_protect_admin_script();
$this_section = SECTION_PLATFORM_ADMIN;

@ -2,13 +2,12 @@
/* For licensing terms, see /license.txt */
/**
* @package chamilo.admin
*/
* @package chamilo.admin
*/
$cidReset = true;
// Including necessary libraries.
require_once __DIR__.'/../inc/global.inc.php';
$libpath = api_get_path(LIBRARY_PATH);
// Section for the tabs
$this_section = SECTION_PLATFORM_ADMIN;

@ -76,8 +76,6 @@ if ($geolocalization) {
$htmlHeadXtra[] = api_get_css_asset('cropper/dist/cropper.min.css');
$htmlHeadXtra[] = api_get_asset('cropper/dist/cropper.min.js');
$libpath = api_get_path(LIBRARY_PATH);
$noPHP_SELF = true;
$tool_name = get_lang('ModifyUserInfo');

@ -151,8 +151,6 @@ if ($user_info['user_id'] == api_get_user_id()) {
$isSelfUser = false;
}
$userIsOnline = user_is_online($user_id);
$libpath = api_get_path(LIBRARY_PATH);
$ajax_url = api_get_path(WEB_AJAX_PATH).'message.ajax.php';
$socialAjaxUrl = api_get_path(WEB_AJAX_PATH).'social.ajax.php';
$javascriptDir = api_get_path(LIBRARY_PATH).'javascript/';

@ -17,8 +17,6 @@ require_once __DIR__.'/../inc/global.inc.php';
api_protect_admin_script(true);
$toolName = get_lang('Categories');
$libPath = api_get_path(LIBRARY_PATH);
$webLibPath = api_get_path(WEB_LIBRARY_PATH);
$user_id = api_get_user_id();
$isAdmin = api_is_platform_admin();

@ -15,8 +15,6 @@ require_once __DIR__.'/../inc/global.inc.php';
api_protect_admin_script(true);
$toolName = get_lang('Priorities');
$libPath = api_get_path(LIBRARY_PATH);
$webLibPath = api_get_path(WEB_LIBRARY_PATH);
$this_section = 'tickets';

@ -13,8 +13,6 @@ $cidReset = true;
require_once __DIR__.'/../inc/global.inc.php';
api_protect_admin_script(true);
$libPath = api_get_path(LIBRARY_PATH);
$webLibPath = api_get_path(WEB_LIBRARY_PATH);
$this_section = 'tickets';

@ -15,8 +15,6 @@ require_once __DIR__.'/../inc/global.inc.php';
api_protect_admin_script(true);
$toolName = get_lang('Status');
$libPath = api_get_path(LIBRARY_PATH);
$webLibPath = api_get_path(WEB_LIBRARY_PATH);
$this_section = 'tickets';

@ -47,7 +47,7 @@ $(document).ready(function() {
}
});
$("input#responseno").click(function () {
$(".responseno").click(function () {
if(!confirm("' . get_lang('AreYouSure').' : '.strtoupper(get_lang('No')).'")){
return false;
}

@ -14,7 +14,6 @@ api_block_anonymous_users();
$tool_name = get_lang('Ticket');
$libPath = api_get_path(LIBRARY_PATH);
$webLibPath = api_get_path(WEB_LIBRARY_PATH);
$htmlHeadXtra[] = '<script>
function load_history_ticket(div_course, ticket_id) {

@ -8,8 +8,6 @@ use Chamilo\UserBundle\Entity\User;
* @package chamilo.webservices
*/
require_once __DIR__.'/../inc/global.inc.php';
$libpath = api_get_path(LIBRARY_PATH);
$debug = true;
define('WS_ERROR_SECRET_KEY', 1);

@ -6,7 +6,6 @@
*/
require_once __DIR__.'/../inc/global.inc.php';
$libpath = api_get_path(LIBRARY_PATH);
/**
* Function to convert from ppt to png

@ -15,8 +15,6 @@
exit; //Uncomment this in order to execute the page
require_once __DIR__.'/../inc/global.inc.php';
$libpath = api_get_path(LIBRARY_PATH);
// Create the client instance
$url = api_get_path(WEB_CODE_PATH)."webservices/registration.soap.php?wsdl";
//$url = api_get_path(WEB_CODE_PATH)."webservices/access_url.php?wsdl";

@ -5,7 +5,6 @@
*/
require_once __DIR__.'/../inc/global.inc.php';
require_once __DIR__.'/cm_webservice.php';
$libpath = api_get_path(LIBRARY_PATH);
/**
* SOAP error handler. Handles an error sending a SOAP fault

@ -9,8 +9,6 @@ use Chamilo\UserBundle\Entity\User;
require_once __DIR__.'/../inc/global.inc.php';
$libpath = api_get_path(LIBRARY_PATH);
/**
* Error returned by one of the methods of the web service. Contains an error code and an error message
*/

@ -5,7 +5,6 @@
* @package chamilo.webservices
*/
require_once __DIR__.'/../inc/global.inc.php';
$libpath = api_get_path(LIBRARY_PATH);
require_once __DIR__.'/cm_webservice.php';
/**

@ -5,7 +5,6 @@
* @package chamilo.webservices
*/
require_once __DIR__.'/../inc/global.inc.php';
$libpath = api_get_path(LIBRARY_PATH);
require_once __DIR__.'/cm_webservice.php';
/**

@ -5,9 +5,6 @@
* @package chamilo.webservices
*/
require_once __DIR__.'/../inc/global.inc.php';
$libpath = api_get_path(LIBRARY_PATH);
require_once __DIR__.'/cm_webservice.php';
/**

@ -6,9 +6,6 @@
require_once __DIR__.'/../inc/global.inc.php';
require_once __DIR__.'/../forum/forumconfig.inc.php';
require_once __DIR__.'/../forum/forumfunction.inc.php';
$libpath = api_get_path(LIBRARY_PATH);
require_once __DIR__.'/cm_webservice.php';
/**

@ -1,5 +1,6 @@
<?php
/* For licensing terms, see /license.txt */
/**
* This script provides the caller service with a list
* of courses that have a certain level of visibility
@ -11,7 +12,6 @@
* @package chamilo.webservices
*/
require_once __DIR__.'/../inc/global.inc.php';
$libpath = api_get_path(LIBRARY_PATH);
// Create the server instance
$server = new soap_server();

@ -5,7 +5,6 @@
* @package chamilo.webservices
*/
require_once __DIR__.'/../inc/global.inc.php';
$libpath = api_get_path(LIBRARY_PATH);
ini_set('memory_limit', -1);
/*

@ -8,8 +8,6 @@ use Chamilo\UserBundle\Entity\User;
* @package chamilo.webservices
*/
require_once __DIR__.'/../inc/global.inc.php';
$libpath = api_get_path(LIBRARY_PATH);
$debug = true;
define('WS_ERROR_SECRET_KEY', 1);

@ -6,7 +6,6 @@
*/
require_once __DIR__.'/../inc/global.inc.php';
require_once __DIR__.'/webservice.php';
$libpath = api_get_path(LIBRARY_PATH);
/**
* SOAP error handler. Handles an error sending a SOAP fault

@ -9,8 +9,6 @@
* @package chamilo.webservices
*/
require_once __DIR__.'/../inc/global.inc.php';
$libpath = api_get_path(LIBRARY_PATH);
// Create the server instance
$server = new soap_server();
// Initialize WSDL support

@ -4,7 +4,6 @@
* @package chamilo.webservices
*/
require_once __DIR__.'/../inc/global.inc.php';
$libpath = api_get_path(LIBRARY_PATH);
require_once __DIR__.'/webservice.php';
/**

@ -4,7 +4,6 @@
* @package chamilo.webservices
*/
require_once __DIR__.'/../inc/global.inc.php';
$libpath = api_get_path(LIBRARY_PATH);
require_once __DIR__.'/webservice.php';
/**

Loading…
Cancel
Save