New: Include Dolibarr version in suggested dump filename.
This commit is contained in:
parent
e48d440630
commit
ee999273ba
@ -27,6 +27,8 @@ For users:
|
|||||||
- New: Added estimated value for stocks.
|
- New: Added estimated value for stocks.
|
||||||
- New: Added module Gravatar to found photo of users or members
|
- New: Added module Gravatar to found photo of users or members
|
||||||
from their email on gravatar.com.
|
from their email on gravatar.com.
|
||||||
|
- New: Include Dolibarr version in suggested dump filename.
|
||||||
|
- New: Enhancement in project module.
|
||||||
- Fix: Error Call to a member function trans when refusing a supplier order.
|
- Fix: Error Call to a member function trans when refusing a supplier order.
|
||||||
- Fix: Fix payment conditions on commercial proposals.
|
- Fix: Fix payment conditions on commercial proposals.
|
||||||
- Fix: Nb of orders to process was wrong.
|
- Fix: Nb of orders to process was wrong.
|
||||||
|
|||||||
@ -516,7 +516,7 @@ print '<br>';
|
|||||||
<?php echo $langs->trans("FileNameToGenerate"); ?></label> :
|
<?php echo $langs->trans("FileNameToGenerate"); ?></label> :
|
||||||
<input type="text" name="filename_template" size="60" id="filename_template"
|
<input type="text" name="filename_template" size="60" id="filename_template"
|
||||||
value="<?php
|
value="<?php
|
||||||
$file='mysqldump_'.$dolibarr_main_db_name.'_'.strftime("%Y%m%d%H%M").'.sql';
|
$file='mysqldump_'.$dolibarr_main_db_name.'_'.dol_sanitizeFileName(DOL_VERSION).'_'.strftime("%Y%m%d%H%M").'.sql';
|
||||||
echo $file;
|
echo $file;
|
||||||
?>" />
|
?>" />
|
||||||
|
|
||||||
|
|||||||
@ -63,11 +63,13 @@ function dol_now($mode='tzserver')
|
|||||||
return $ret;
|
return $ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Clean a string to use it as a file name.
|
* \brief Clean a string to use it as a file name.
|
||||||
* \param str String to clean
|
* \param str String to clean
|
||||||
* \param newstr String to replace bad chars by
|
* \param newstr String to replace bad chars by
|
||||||
* \return string String cleaned (a-zA-Z_)
|
* \return string String cleaned (a-zA-Z_)
|
||||||
|
* \seealso dol_string_nospecial, dol_string_unaccent
|
||||||
*/
|
*/
|
||||||
function dol_sanitizeFileName($str,$newstr='_')
|
function dol_sanitizeFileName($str,$newstr='_')
|
||||||
{
|
{
|
||||||
@ -75,9 +77,10 @@ function dol_sanitizeFileName($str,$newstr='_')
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Clean a string from all accent characters
|
* \brief Clean a string from all accent characters to be used as ref, login or by dol_sanitizeFileName.
|
||||||
* \param str String to clean
|
* \param str String to clean
|
||||||
* \return string Cleaned string
|
* \return string Cleaned string
|
||||||
|
* \seealso dol_sanitizeFilename, dol_string_nospecial
|
||||||
*/
|
*/
|
||||||
function dol_string_unaccent($str)
|
function dol_string_unaccent($str)
|
||||||
{
|
{
|
||||||
@ -120,10 +123,11 @@ function dol_string_unaccent($str)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Clean a string from all punctuation characters
|
* \brief Clean a string from all punctuation characters to use it as a ref or login.
|
||||||
* \param str String to clean
|
* \param str String to clean
|
||||||
* \param newstr String to replace bad chars by
|
* \param newstr String to replace bad chars by
|
||||||
* \return string Cleaned string
|
* \return string Cleaned string
|
||||||
|
* \seealso dol_sanitizeFilename, dol_string_unaccent
|
||||||
*/
|
*/
|
||||||
function dol_string_nospecial($str,$newstr='_')
|
function dol_string_nospecial($str,$newstr='_')
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user