bug in sql file path

This commit is contained in:
raphael_bertrand 2008-08-18 14:21:43 +00:00
parent e2a9b9cabc
commit bf848c7bb9

View File

@ -219,7 +219,7 @@ class modMyModule extends DolibarrModules
{ {
if (eregi('\.sql$',$file) && substr($file,0,4) == 'llx_' && substr($file, -8) <> '.key.sql') if (eregi('\.sql$',$file) && substr($file,0,4) == 'llx_' && substr($file, -8) <> '.key.sql')
{ {
$result=run_sql($file,1); $result=run_sql($dir.$file,1);
} }
} }
closedir($handle); closedir($handle);
@ -230,7 +230,7 @@ class modMyModule extends DolibarrModules
{ {
if (eregi('\.sql$',$file) && substr($file,0,4) == 'llx_' && substr($file, -8) == '.key.sql') if (eregi('\.sql$',$file) && substr($file,0,4) == 'llx_' && substr($file, -8) == '.key.sql')
{ {
$result=run_sql($file,1); $result=run_sql($dir.$file,1);
} }
} }
closedir($handle); closedir($handle);