Skip to content

Commit

Permalink
#19 [Mod] add: change trad and other things
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-eoxia committed Aug 9, 2023
1 parent 26c6377 commit 302dbcc
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 42 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

## Fonctionnalités

- Création d'urls raccourcies pour YOURLS et Dolibarr
- Création d'URLs raccourcies pour YOURLS et Dolibarr

## Traductions

Expand Down
4 changes: 2 additions & 2 deletions core/modules/modTinyURL.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public function __construct($db)
'interventioncard'
],
// Set this to 1 if features of module are opened to external users
'moduleforexternal' => 1,
'moduleforexternal' => 0
];

// Data directories to create when module is enabled
Expand Down Expand Up @@ -190,7 +190,7 @@ public function __construct($db)
}

// Array to add new pages in new tabs
$this->tabs = [];
$this->tabs = [];

// Dictionaries.
$this->dictionaries = [];
Expand Down
6 changes: 3 additions & 3 deletions langs/fr_FR/tinyurl.lang
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@

# Data - Donnée
ModuleTinyURLName = TinyURL
ModuleTinyURLDesc = Création d'urls raccourcies pour YOURLS et Dolibarr
TinyURLDescription = Création d'urls raccourcies pour YOURLS et Dolibarr
TinyURLDescriptionLong = Création d'urls raccourcies pour YOURLS et Dolibarr
ModuleTinyURLDesc = Création d'URLs raccourcies pour YOURLS et Dolibarr
TinyURLDescription = Création d'URLs raccourcies pour YOURLS et Dolibarr
TinyURLDescriptionLong = Création d'URLs raccourcies pour YOURLS et Dolibarr

#
# Config page - Page d'administration
Expand Down
2 changes: 1 addition & 1 deletion lib/tinyurl_function.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ function set_tiny_url_link(CommonObject $object, string $urlType)
break;
}

$title = dol_sanitizeFileName(dol_strtolower($conf->global->MAIN_INFO_SOCIETE_NOM) . '-' . dol_strtolower($object->ref) . (getDolGlobalInt('TINYURL_USE_SHA_URL') ? '-' . generate_random_id(8) : ''));
$title = dol_sanitizeFileName(dol_strtolower($conf->global->MAIN_INFO_SOCIETE_NOM . '-' . $object->ref) . (getDolGlobalInt('TINYURL_USE_SHA_URL') ? '-' . generate_random_id(8) : ''));

// Init the CURL session
$ch = curl_init();
Expand Down
35 changes: 0 additions & 35 deletions tinyurlindex.php

This file was deleted.

0 comments on commit 302dbcc

Please sign in to comment.