mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-01-06 17:13:03 +01:00
Normalize code
This commit is contained in:
@@ -212,26 +212,32 @@ class modMyModule extends DolibarrModules
|
||||
|
||||
// Run llx_mytable.sql files
|
||||
$handle=opendir($dir);
|
||||
while (($file = readdir($handle))!==false)
|
||||
if ($hanlde)
|
||||
{
|
||||
if (eregi('\.sql$',$file) && substr($file,0,4) == 'llx_' && substr($file, -8) <> '.key.sql')
|
||||
while (($file = readdir($handle))!==false)
|
||||
{
|
||||
$result=run_sql($dir.$file,1);
|
||||
if (eregi('\.sql$',$file) && substr($file,0,4) == 'llx_' && substr($file, -8) <> '.key.sql')
|
||||
{
|
||||
$result=run_sql($dir.$file,1);
|
||||
}
|
||||
}
|
||||
closedir($handle);
|
||||
}
|
||||
closedir($handle);
|
||||
|
||||
|
||||
// Run llx_mytable.key.sql files
|
||||
$handle=opendir($dir);
|
||||
while (($file = readdir($handle))!==false)
|
||||
if ($hanlde)
|
||||
{
|
||||
if (eregi('\.sql$',$file) && substr($file,0,4) == 'llx_' && substr($file, -8) == '.key.sql')
|
||||
$handle=opendir($dir);
|
||||
while (($file = readdir($handle))!==false)
|
||||
{
|
||||
$result=run_sql($dir.$file,1);
|
||||
if (eregi('\.sql$',$file) && substr($file,0,4) == 'llx_' && substr($file, -8) == '.key.sql')
|
||||
{
|
||||
$result=run_sql($dir.$file,1);
|
||||
}
|
||||
}
|
||||
closedir($handle);
|
||||
}
|
||||
closedir($handle);
|
||||
|
||||
|
||||
if ($error == 0)
|
||||
{
|
||||
$ok = 1;
|
||||
|
||||
Reference in New Issue
Block a user