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

View File

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