Merge pull request #13654 from frederic34/patch-1
Update interface_80_modStripe_Stripe.class.php
This commit is contained in:
commit
c31fdd26b9
@ -53,7 +53,7 @@ class InterfaceStripe
|
|||||||
$this->family = 'stripe';
|
$this->family = 'stripe';
|
||||||
$this->description = "Triggers of the module Stripe";
|
$this->description = "Triggers of the module Stripe";
|
||||||
$this->version = 'dolibarr'; // 'development', 'experimental', 'dolibarr' or version
|
$this->version = 'dolibarr'; // 'development', 'experimental', 'dolibarr' or version
|
||||||
$this->picto = 'stripe@stripe';
|
$this->picto = 'stripe';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -77,29 +77,6 @@ class InterfaceStripe
|
|||||||
return $this->description;
|
return $this->description;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Trigger version
|
|
||||||
*
|
|
||||||
* @return string Version of trigger file
|
|
||||||
*/
|
|
||||||
public function getVersion()
|
|
||||||
{
|
|
||||||
global $langs;
|
|
||||||
$langs->load("admin");
|
|
||||||
|
|
||||||
if ($this->version == 'development') {
|
|
||||||
return $langs->trans("Development");
|
|
||||||
} elseif ($this->version == 'experimental') {
|
|
||||||
return $langs->trans("Experimental");
|
|
||||||
} elseif ($this->version == 'dolibarr') {
|
|
||||||
return DOL_VERSION;
|
|
||||||
} elseif ($this->version) {
|
|
||||||
return $this->version;
|
|
||||||
} else {
|
|
||||||
return $langs->trans("Unknown");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Function called when a Dolibarrr business event is done.
|
* Function called when a Dolibarrr business event is done.
|
||||||
* All functions "runTrigger" are triggered if file
|
* All functions "runTrigger" are triggered if file
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user