From 36fa39b537a35cb0e2dd8dcc5c2a46da47e013f7 Mon Sep 17 00:00:00 2001 From: jmontoyaa Date: Mon, 16 Oct 2017 10:59:52 +0200 Subject: [PATCH] Minor - remove unused $libpath variable --- main/admin/career_dashboard.php | 2 -- main/admin/user_add.php | 5 ++--- main/admin/user_edit.php | 2 -- main/social/profile.php | 2 -- main/ticket/categories.php | 2 -- main/ticket/priorities.php | 2 -- main/ticket/projects.php | 2 -- main/ticket/status.php | 2 -- main/ticket/ticket_details.php | 2 +- main/ticket/tickets.php | 1 - main/webservices/access_url.php | 2 -- main/webservices/additional_webservices.php | 1 - main/webservices/client_soap.php | 2 -- main/webservices/cm_soap.php | 1 - main/webservices/cm_webservice.php | 2 -- main/webservices/cm_webservice_announcements.php | 1 - main/webservices/cm_webservice_course.php | 1 - main/webservices/cm_webservice_courses.php | 3 --- main/webservices/cm_webservice_forum.php | 3 --- main/webservices/courses_list.soap.php | 2 +- main/webservices/lp.php | 1 - main/webservices/registration.soap.php | 2 -- main/webservices/soap.php | 1 - main/webservices/user_info.soap.php | 2 -- main/webservices/webservice_course.php | 1 - main/webservices/webservice_session.php | 1 - 26 files changed, 4 insertions(+), 44 deletions(-) diff --git a/main/admin/career_dashboard.php b/main/admin/career_dashboard.php index c78169aebd..9dfd3bbd1b 100755 --- a/main/admin/career_dashboard.php +++ b/main/admin/career_dashboard.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; diff --git a/main/admin/user_add.php b/main/admin/user_add.php index b35eccf4db..9473954c12 100755 --- a/main/admin/user_add.php +++ b/main/admin/user_add.php @@ -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; diff --git a/main/admin/user_edit.php b/main/admin/user_edit.php index 30c5ce826d..d5c636354f 100755 --- a/main/admin/user_edit.php +++ b/main/admin/user_edit.php @@ -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'); diff --git a/main/social/profile.php b/main/social/profile.php index 5e2060bdd3..3630646d91 100755 --- a/main/social/profile.php +++ b/main/social/profile.php @@ -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/'; diff --git a/main/ticket/categories.php b/main/ticket/categories.php index 1997845150..6c605b82b9 100644 --- a/main/ticket/categories.php +++ b/main/ticket/categories.php @@ -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(); diff --git a/main/ticket/priorities.php b/main/ticket/priorities.php index a87bab098e..767b7184f6 100644 --- a/main/ticket/priorities.php +++ b/main/ticket/priorities.php @@ -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'; diff --git a/main/ticket/projects.php b/main/ticket/projects.php index aab8984a44..f19bb5e60c 100644 --- a/main/ticket/projects.php +++ b/main/ticket/projects.php @@ -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'; diff --git a/main/ticket/status.php b/main/ticket/status.php index d1a15cc146..db73b4a4d2 100644 --- a/main/ticket/status.php +++ b/main/ticket/status.php @@ -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'; diff --git a/main/ticket/ticket_details.php b/main/ticket/ticket_details.php index 857b199f01..8e5891b19f 100644 --- a/main/ticket/ticket_details.php +++ b/main/ticket/ticket_details.php @@ -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; } diff --git a/main/ticket/tickets.php b/main/ticket/tickets.php index ae258e3d74..3545b7146e 100644 --- a/main/ticket/tickets.php +++ b/main/ticket/tickets.php @@ -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[] = '