#683 : allow installation on a DB which names begins with numbers

+ directory cleanup for supporting symblinks

SVN:trunk[2639]
This commit is contained in:
Denis Flaven
2013-03-19 11:38:53 +00:00
parent 584e1fade0
commit 5d805a123e

View File

@@ -535,6 +535,10 @@ class SetupUtils
{
if (function_exists('symlink'))
{
if (file_exists($sDest.'/'.$sFile))
{
unlink($sDest.'/'.$sFile);
}
symlink($sSource.'/'.$sFile, $sDest.'/'.$sFile);
}
else
@@ -544,6 +548,10 @@ class SetupUtils
}
else
{
if (is_link($sDest.'/'.$sFile))
{
unlink($sDest.'/'.$sFile);
}
copy($sSource.'/'.$sFile, $sDest.'/'.$sFile);
}
}
@@ -738,7 +746,7 @@ function ValidateField(sFieldId, bUsed)
{
if (sValue != "")
{
if (sValue.match(/^[A-Za-z][A-Za-z0-9_]*$/))
if (sValue.match(/^[A-Za-z0-9_]*$/))
{
var bCollision = false;
if (sFieldId == 'db_new_name')