Skip to content

Commit

Permalink
Changed the name of the module to importorderlines, added compatibili…
Browse files Browse the repository at this point in the history
…ty with custom folder and updated dependencies
  • Loading branch information
marcosgdf committed Dec 19, 2015
1 parent c3cc421 commit 1720a18
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 13 deletions.
6 changes: 5 additions & 1 deletion importorderlines/admin/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@
* along with Multismtp. If not, see <http://www.gnu.org/licenses/>.
*/

require '../../main.inc.php';
if (file_exists('../../main.inc.php')) {
require '../../main.inc.php';
} else {
require '../../../main.inc.php';
}

$langs->load('admin');
$langs->load('importorderlines@importorderlines');
Expand Down
2 changes: 1 addition & 1 deletion importorderlines/class/actions_importorderlines.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* along with Multismtp. If not, see <http://www.gnu.org/licenses/>.
*/

class ActionsImportorderlineexcel
class ActionsImportorderlines
{
/**
* @param array() $parameters Hook metadatas (context, etc...)
Expand Down
2 changes: 1 addition & 1 deletion importorderlines/composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"require" : {
"phpoffice/phpexcel": "1.8"
"phpoffice/phpexcel": "~1.8"
},
"config" : {
"vendor-dir" : "lib"
Expand Down
12 changes: 6 additions & 6 deletions importorderlines/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions importorderlines/core/modules/modImportorderlines.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ function __construct($db)
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
$this->name = 'Import order lines';
// Module description, used if translation string 'ModuleXXXDesc' not found (where XXX is value of numeric property 'numero' of module)
$this->description = "Import order lines from spreasheet files";
$this->description = "Imports order lines from spreadsheet files";
// Possible values for version are: 'development', 'experimental', 'dolibarr' or version
$this->version = '1.0';
// Key used in llx_const table to save module status enabled/disabled (where MYMODULE is value of property name of module in uppercase)
Expand Down Expand Up @@ -106,7 +106,7 @@ function __construct($db)
$this->hidden = false; // A condition to hide module
$this->depends = array(
'modCommande',
'modProducts'
'modProduct'
); // 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->conflictwith = array(); // List of modules id this module is in conflict with
Expand Down
4 changes: 2 additions & 2 deletions importorderlines/langs/es_ES/importorderlines.lang
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Module info
Module402001Name=Importar líneas de pedido desde un archivo Excel
Module402001Desc=Importa líneas de pedido desde un archivo Excel
Module402001Name=Importar líneas de pedido desde una hoja de cálculo
Module402001Desc=Importa líneas de pedido desde una hoja de cálculo

ImportOrderLinesInfo=Información del módulo Importación de líneas de pedido
ImportOrderLines=Importar líneas de pedido
Expand Down

0 comments on commit 1720a18

Please sign in to comment.