diff --git a/htdocs/translate.class.php b/htdocs/core/translate.class.php similarity index 100% rename from htdocs/translate.class.php rename to htdocs/core/translate.class.php diff --git a/htdocs/install/inc.php b/htdocs/install/inc.php index 7a061d2ef7b..7d651ed1168 100644 --- a/htdocs/install/inc.php +++ b/htdocs/install/inc.php @@ -27,7 +27,7 @@ define('DOL_VERSION','2.9.0-dev'); // Also defined in htdocs/master.inc.php -require_once('../translate.class.php'); +require_once('../core/translate.class.php'); require_once('../lib/functions.lib.php'); require_once('../lib/admin.lib.php'); require_once('../lib/files.lib.php'); diff --git a/htdocs/lib/functions.lib.php b/htdocs/lib/functions.lib.php index cf723785b81..be8b4bb5339 100644 --- a/htdocs/lib/functions.lib.php +++ b/htdocs/lib/functions.lib.php @@ -1793,7 +1793,7 @@ function accessforbidden($message='',$printheader=1,$printfooter=1,$showonlymess global $conf, $db, $user, $langs; if (! is_object($langs)) { - include_once(DOL_DOCUMENT_ROOT.'/translate.class.php'); + include_once(DOL_DOCUMENT_ROOT.'/core/translate.class.php'); $langs=new Translate('',$conf); } @@ -1849,7 +1849,7 @@ function dol_print_error($db='',$error='') // Si erreur intervenue avant chargement langue if (! $langs) { - require_once(DOL_DOCUMENT_ROOT ."/translate.class.php"); + require_once(DOL_DOCUMENT_ROOT ."/core/translate.class.php"); $langs = new Translate("", $conf); $langs->load("main"); } diff --git a/htdocs/master.inc.php b/htdocs/master.inc.php index ff0c528ab34..5a2581e8088 100644 --- a/htdocs/master.inc.php +++ b/htdocs/master.inc.php @@ -216,7 +216,7 @@ if (isset($_SERVER["HTTP_USER_AGENT"])) // Chargement des includes principaux de librairies communes if (! defined('NOREQUIREUSER')) require_once(DOL_DOCUMENT_ROOT ."/user/user.class.php"); // Need 500ko memory -if (! defined('NOREQUIRETRAN')) require_once(DOL_DOCUMENT_ROOT ."/translate.class.php"); +if (! defined('NOREQUIRETRAN')) require_once(DOL_DOCUMENT_ROOT ."/core/translate.class.php"); if (! defined('NOREQUIRESOC')) require_once(DOL_DOCUMENT_ROOT ."/societe/societe.class.php"); if (! defined('NOREQUIREDB')) require_once(DOL_DOCUMENT_ROOT ."/lib/databases/".$conf->db->type.".lib.php"); diff --git a/htdocs/support/inc.php b/htdocs/support/inc.php index b5a280b4a0b..bcb45637655 100644 --- a/htdocs/support/inc.php +++ b/htdocs/support/inc.php @@ -27,7 +27,7 @@ define('DOL_VERSION','2.5-dev'); // Also defined in htdocs/master.inc.php -require_once('../translate.class.php'); +require_once('../core/translate.class.php'); require_once('../lib/functions.lib.php'); require_once('../lib/admin.lib.php');