suppression d'un fichier de migration obsolete
la variable $arraysql n'était pas vidée ce qui lancait 2 fois le script 2.0.0-2.1.0.sql lors d'une migration 2.0.0 vers 2.2.0
This commit is contained in:
parent
bf08ab3175
commit
83f548cd18
@ -180,6 +180,7 @@ if (! isset($_GET["action"]) || $_GET["action"] == "upgrade")
|
|||||||
|
|
||||||
$name = substr($file, 0, strlen($file) - 4);
|
$name = substr($file, 0, strlen($file) - 4);
|
||||||
$buffer = '';
|
$buffer = '';
|
||||||
|
$arraysql = Array();
|
||||||
$fp = fopen($dir.$file,"r");
|
$fp = fopen($dir.$file,"r");
|
||||||
if ($fp)
|
if ($fp)
|
||||||
{
|
{
|
||||||
@ -215,6 +216,7 @@ if (! isset($_GET["action"]) || $_GET["action"] == "upgrade")
|
|||||||
$buffer='';
|
$buffer='';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($buffer) $arraysql[$i]=trim($buffer);
|
if ($buffer) $arraysql[$i]=trim($buffer);
|
||||||
fclose($fp);
|
fclose($fp);
|
||||||
}
|
}
|
||||||
@ -248,7 +250,7 @@ if (! isset($_GET["action"]) || $_GET["action"] == "upgrade")
|
|||||||
);
|
);
|
||||||
if (in_array($errno,$okerror))
|
if (in_array($errno,$okerror))
|
||||||
{
|
{
|
||||||
// print '<td align="right">'.$langs->trans("OK").'</td>';
|
//print '<td align="right">'.$langs->trans("OK").'</td>';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user