2
0
forked from Wavyzz/dolibarr

Fix: bad lang file

This commit is contained in:
Jean-François Ferry
2014-03-15 21:24:37 +01:00
committed by jfefe
parent 1ad3405ee8
commit c04812cd15
2 changed files with 4 additions and 5 deletions

View File

@@ -73,7 +73,7 @@ class modResource extends DolibarrModules
// use this->picto='pictovalue'
// If file is in module/img directory under name object_pictovalue.png
// use this->picto='pictovalue@module'
$this->picto = 'resource@resource'; // mypicto@resource
$this->picto = 'resource'; // mypicto@resource
// Defined all module parts (triggers, login, substitutions, menus, css, etc...)
// for default path (eg: /resource/core/xxxxx) (0=disable, 1=enable)
// for specific path of parts (eg: /resource/core/modules/barcode)
@@ -116,7 +116,7 @@ class modResource extends DolibarrModules
$this->phpmin = array(5, 3);
// Minimum version of Dolibarr required by module
$this->need_dolibarr_version = array(3, 5);
$this->langfiles = array("resource@resource"); // langfiles@resource
$this->langfiles = array("resource"); // langfiles@resource
// Constants
// List of particular constants to add when module is enabled
// (key, 'chaine', value, desc, visible, 'current' or 'allentities', deleteonunactive)

View File

@@ -23,7 +23,6 @@
/**
* Actions class file for resources
*
* \class ActionsResource
*/
class ActionsResource
{
@@ -47,13 +46,13 @@ class ActionsResource
*
* @param array $parameters parameters
* @param object &$object object
* @param string &$action action
* @param string &$action action
* @return void
*/
function doActions($parameters, &$object, &$action) {
global $langs,$user;
$langs->load('resource@resource');
$langs->load('resource');
if (in_array('element_resource',explode(':',$parameters['context'])))
{