mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-05 17:18:13 +01:00
Fix: bad lang file
This commit is contained in:
committed by
jfefe
parent
1ad3405ee8
commit
c04812cd15
@@ -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)
|
||||
|
||||
@@ -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'])))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user