parent
2430ddd0b6
commit
0ede10ce75
|
@ -41,6 +41,7 @@ function initNumberInput(input) {
|
|||
let max = $input.attr('max-value') && $input.attr('max-value') !== "undefined" ? $input.attr('max-value') : null;
|
||||
|
||||
let decimals = $input.attr('decimals') ? $input.attr('decimals') : globals.cifre_decimali;
|
||||
decimals = decimals ? decimals : 2; // Cifre decimali di fallback
|
||||
|
||||
let autonumeric = new AutoNumeric(input, {
|
||||
caretPositionOnFocus: "decimalLeft",
|
||||
|
|
|
@ -139,7 +139,7 @@ function formatter()
|
|||
{
|
||||
if (!app()->has(Formatter::class)) {
|
||||
$formatter = new Formatter(
|
||||
app()->getLocale(),
|
||||
locale(),
|
||||
empty($options['timestamp']) ? 'd/m/Y H:i' : $options['timestamp'],
|
||||
empty($options['date']) ? 'd/m/Y' : $options['date'],
|
||||
empty($options['time']) ? 'H:i' : $options['time'],
|
||||
|
|
|
@ -551,7 +551,7 @@ class Update
|
|||
*
|
||||
* @return string
|
||||
*/
|
||||
protected static function getFile($file)
|
||||
public static function getFile($file)
|
||||
{
|
||||
$file = (string_contains($file, base_dir().DIRECTORY_SEPARATOR)) ? $file : base_dir().DIRECTORY_SEPARATOR.$file;
|
||||
|
||||
|
|
|
@ -39,6 +39,14 @@ class Zip
|
|||
return extension_loaded('zip');
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public static function getExtractionDirectory()
|
||||
{
|
||||
return base_path().'/tmp';
|
||||
}
|
||||
|
||||
/**
|
||||
* Estrae i contenuti di un file ZIP in una cartella temporanea.
|
||||
*
|
||||
|
@ -58,7 +66,7 @@ class Zip
|
|||
}
|
||||
|
||||
// Percorso di estrazione
|
||||
$extraction_dir = !empty($destination) ? $destination : base_dir().'/tmp';
|
||||
$extraction_dir = !empty($destination) ? $destination : self::getExtractionDirectory();
|
||||
directory($extraction_dir);
|
||||
|
||||
// Estrazione dell'archivio
|
||||
|
|
Loading…
Reference in New Issue