fix : pb after changing langs directory

This commit is contained in:
Philippe Grand 2010-04-28 16:20:56 +00:00
parent 261df0601c
commit 41d770c992
5 changed files with 8 additions and 7 deletions

View File

@ -70,11 +70,12 @@ class modPhenix extends DolibarrModules
$this->dirs = array(); $this->dirs = array();
// Config pages. Put here list of php page names stored in admmin directory used to setup module // Config pages. Put here list of php page names stored in admmin directory used to setup module
$this->config_page_url = array("phenix.php"); $this->config_page_url = array("phenix.php@phenix");
// Dependencies // Dependencies
$this->depends = array(); // List of modules id that must be enabled if this module is enabled $this->depends = array(); // List of modules id that must be enabled if this module is enabled
$this->requiredby = array(); // List of modules id to disable if this one is disabled $this->requiredby = array(); // List of modules id to disable if this one is disabled
$this->langfiles = array("@phenix");
// Constants // Constants
$this->const = array(); // List of parameters $this->const = array(); // List of parameters

View File

@ -24,7 +24,7 @@
\version $Id$ \version $Id$
*/ */
include_once(DOL_DOCUMENT_ROOT.'/phenix/phenix.class.php'); include_once(DOL_DOCUMENT_ROOT.'/phenix/class/phenix.class.php');
/** /**

View File

@ -23,13 +23,13 @@
* \version $Id$ * \version $Id$
*/ */
require("../main.inc.php"); require("../../main.inc.php");
require_once(DOL_DOCUMENT_ROOT."/lib/admin.lib.php"); require_once(DOL_DOCUMENT_ROOT."/lib/admin.lib.php");
$servicename='PayBox'; $servicename='PayBox';
$langs->load("admin"); $langs->load("admin");
$langs->load("paybox"); $langs->load("@paybox");
if (!$user->admin) if (!$user->admin)
accessforbidden(); accessforbidden();

View File

@ -26,7 +26,7 @@
require("../main.inc.php"); require("../main.inc.php");
require_once(DOL_DOCUMENT_ROOT."/lib/admin.lib.php"); require_once(DOL_DOCUMENT_ROOT."/lib/admin.lib.php");
require_once(DOL_DOCUMENT_ROOT.'/phenix/phenix.class.php'); require_once(DOL_DOCUMENT_ROOT.'/phenix/class/phenix.class.php');
if (!$user->admin) if (!$user->admin)

View File

@ -20,7 +20,7 @@
*/ */
/** /**
\file htdocs/phenix/phenix.class.php \file htdocs/phenix/class/phenix.class.php
\ingroup phenix \ingroup phenix
\brief Ensemble des fonctions permettant d'acceder a la database phenix. \brief Ensemble des fonctions permettant d'acceder a la database phenix.
\author Laurent Destailleur. \author Laurent Destailleur.