Normalize code
This commit is contained in:
parent
135c9b25c6
commit
18369b0aa5
@ -212,25 +212,31 @@ class modMyModule extends DolibarrModules
|
|||||||
|
|
||||||
// Run llx_mytable.sql files
|
// Run llx_mytable.sql files
|
||||||
$handle=opendir($dir);
|
$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
|
// Run llx_mytable.key.sql files
|
||||||
$handle=opendir($dir);
|
if ($hanlde)
|
||||||
while (($file = readdir($handle))!==false)
|
|
||||||
{
|
{
|
||||||
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)
|
if ($error == 0)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user