2
0
forked from Wavyzz/dolibarr

move translate.class.php to core directory

This commit is contained in:
Philippe Grand
2010-04-13 14:23:31 +00:00
parent 684e6bc63c
commit e5a5c2ae98
5 changed files with 5 additions and 5 deletions

View File

@@ -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');

View File

@@ -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");
}

View File

@@ -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");

View File

@@ -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');