From 138c842959b979aed67d19d9933ae9d5ca6248af Mon Sep 17 00:00:00 2001 From: jfefe Date: Sat, 10 Mar 2018 23:10:55 +0100 Subject: [PATCH] Correct bad paths --- htdocs/ticketsup/card.php | 4 ++-- htdocs/ticketsup/class/api_ticketsups.class.php | 2 +- htdocs/ticketsup/contacts.php | 2 +- htdocs/ticketsup/document.php | 4 ++-- htdocs/ticketsup/history.php | 4 ++-- htdocs/ticketsup/list.php | 4 ++-- htdocs/ticketsup/new.php | 4 ++-- 7 files changed, 12 insertions(+), 12 deletions(-) diff --git a/htdocs/ticketsup/card.php b/htdocs/ticketsup/card.php index cd638fb3eff..79cc87a52d8 100644 --- a/htdocs/ticketsup/card.php +++ b/htdocs/ticketsup/card.php @@ -34,8 +34,8 @@ if (file_exists("../main.inc.php")) { } require_once 'class/actions_ticketsup.class.php'; -require_once 'class/html.formticketsup.class.php'; -require_once 'lib/ticketsup.lib.php'; +require_once DOL_DOCUMENT_ROOT . '/core/class/html.formticketsup.class.php'; +require_once DOL_DOCUMENT_ROOT . '/core/lib/ticketsup.lib.php'; require_once DOL_DOCUMENT_ROOT . '/core/lib/date.lib.php'; require_once DOL_DOCUMENT_ROOT . '/core/lib/company.lib.php'; require_once DOL_DOCUMENT_ROOT . '/core/class/extrafields.class.php'; diff --git a/htdocs/ticketsup/class/api_ticketsups.class.php b/htdocs/ticketsup/class/api_ticketsups.class.php index 019ecc05934..7f69d3b27a4 100644 --- a/htdocs/ticketsup/class/api_ticketsups.class.php +++ b/htdocs/ticketsup/class/api_ticketsups.class.php @@ -18,7 +18,7 @@ use Luracast\Restler\RestException; require 'ticketsup.class.php'; -dol_include_once('/ticketsup/lib/ticketsup.lib.php'); +require_once DOL_DOCUMENT_ROOT . '/core/lib/ticketsup.lib.php'; /** * API class for ticketsup object diff --git a/htdocs/ticketsup/contacts.php b/htdocs/ticketsup/contacts.php index 8879b01d237..39f6976e795 100644 --- a/htdocs/ticketsup/contacts.php +++ b/htdocs/ticketsup/contacts.php @@ -33,7 +33,7 @@ if (file_exists("../main.inc.php")) { } require_once 'class/ticketsup.class.php'; -dol_include_once('/ticketsup/lib/ticketsup.lib.php'); +require_once DOL_DOCUMENT_ROOT . '/core/lib/ticketsup.lib.php'; require_once DOL_DOCUMENT_ROOT . '/societe/class/societe.class.php'; require_once DOL_DOCUMENT_ROOT . "/core/lib/company.lib.php"; diff --git a/htdocs/ticketsup/document.php b/htdocs/ticketsup/document.php index 4139a98e17e..9ffdcd35048 100644 --- a/htdocs/ticketsup/document.php +++ b/htdocs/ticketsup/document.php @@ -35,8 +35,8 @@ if (file_exists("../main.inc.php")) { die("Include of main fails"); } -dol_include_once('/ticketsup/lib/ticketsup.lib.php'); -dol_include_once('/ticketsup/class/ticketsup.class.php'); +require_once DOL_DOCUMENT_ROOT . '/core/lib/ticketsup.lib.php'; +require_once 'class/ticketsup.class.php'; require_once DOL_DOCUMENT_ROOT . '/core/lib/files.lib.php'; require_once DOL_DOCUMENT_ROOT . '/core/lib/images.lib.php'; require_once DOL_DOCUMENT_ROOT . "/core/lib/company.lib.php"; diff --git a/htdocs/ticketsup/history.php b/htdocs/ticketsup/history.php index 089f31b942c..43e35244e0c 100644 --- a/htdocs/ticketsup/history.php +++ b/htdocs/ticketsup/history.php @@ -31,8 +31,8 @@ if (file_exists("../main.inc.php")) { die("Include of main fails"); } require_once 'class/actions_ticketsup.class.php'; -require_once 'class/html.formticketsup.class.php'; -require_once 'lib/ticketsup.lib.php'; +require_once DOL_DOCUMENT_ROOT . '/core/class/html.formticketsup.class.php'; +require_once DOL_DOCUMENT_ROOT . '/core/lib/ticketsup.lib.php'; require_once DOL_DOCUMENT_ROOT . "/core/lib/company.lib.php"; require_once DOL_DOCUMENT_ROOT . '/core/lib/date.lib.php'; require_once DOL_DOCUMENT_ROOT . '/core/class/extrafields.class.php'; diff --git a/htdocs/ticketsup/list.php b/htdocs/ticketsup/list.php index 9ac484df26f..bb4aa27b0f2 100644 --- a/htdocs/ticketsup/list.php +++ b/htdocs/ticketsup/list.php @@ -41,7 +41,7 @@ if (! $res) die("Include of main fails"); require_once 'class/actions_ticketsup.class.php'; -require_once 'class/html.formticketsup.class.php'; +require_once DOL_DOCUMENT_ROOT . '/core/class/html.formticketsup.class.php'; require_once DOL_DOCUMENT_ROOT . '/core/lib/functions2.lib.php'; require_once DOL_DOCUMENT_ROOT . '/core/lib/company.lib.php'; require_once DOL_DOCUMENT_ROOT . '/user/class/user.class.php'; @@ -55,7 +55,7 @@ if (!empty($conf->projet->enabled)) { // Load traductions files requiredby by page $langs->loadLangs( array( - "ticketsup@ticketsup", + "ticketsup", "companies", "other") ); diff --git a/htdocs/ticketsup/new.php b/htdocs/ticketsup/new.php index 4728004e14f..590c4b5db46 100644 --- a/htdocs/ticketsup/new.php +++ b/htdocs/ticketsup/new.php @@ -33,8 +33,8 @@ if (file_exists("../main.inc.php")) { } require_once 'class/actions_ticketsup.class.php'; -require_once 'class/html.formticketsup.class.php'; -require_once 'lib/ticketsup.lib.php'; +require_once DOL_DOCUMENT_ROOT . '/core/class/html.formticketsup.class.php'; +require_once DOL_DOCUMENT_ROOT . '/core/lib/ticketsup.lib.php'; require_once DOL_DOCUMENT_ROOT . '/core/class/extrafields.class.php'; // Load traductions files requiredby by page