mirror of
https://github.com/joomla-extensions/jedchecker.git
synced 2024-12-29 04:42:36 +00:00
fix path for sql files
This commit is contained in:
parent
4775ddd43b
commit
d583e82bd7
@ -129,13 +129,15 @@ class JedcheckerRulesXMLFiles extends JEDcheckerRule
|
||||
$this->checkFiles($node->language, $dir);
|
||||
}
|
||||
|
||||
$admindir = $basedir;
|
||||
|
||||
// check: administration files[folder] (filename|folder)*
|
||||
if (isset($xml->administration->files))
|
||||
{
|
||||
$node = $xml->administration->files;
|
||||
$dir = $basedir . (isset($node['folder']) ? $node['folder'] . '/' : '');
|
||||
$this->checkFiles($node->filename, $dir);
|
||||
$this->checkFolders($node->folder, $dir);
|
||||
$admindir = $basedir . (isset($node['folder']) ? $node['folder'] . '/' : '');
|
||||
$this->checkFiles($node->filename, $admindir);
|
||||
$this->checkFolders($node->folder, $admindir);
|
||||
}
|
||||
|
||||
// check: administration media[folder] (filename|folder)*
|
||||
@ -164,19 +166,19 @@ class JedcheckerRulesXMLFiles extends JEDcheckerRule
|
||||
// check files: install sql file*
|
||||
if (isset($xml->install->sql->file))
|
||||
{
|
||||
$this->checkFiles($xml->install->sql->file, $basedir);
|
||||
$this->checkFiles($xml->install->sql->file, $admindir);
|
||||
}
|
||||
|
||||
// check files: uninstall sql file*
|
||||
if (isset($xml->uninstall->sql->file))
|
||||
{
|
||||
$this->checkFiles($xml->uninstall->sql->file, $basedir);
|
||||
$this->checkFiles($xml->uninstall->sql->file, $admindir);
|
||||
}
|
||||
|
||||
// check folders: update schemas schemapath*
|
||||
if (isset($xml->update->schemas->schemapath))
|
||||
{
|
||||
$this->checkFolders($xml->update->schemas->schemapath, $basedir);
|
||||
$this->checkFolders($xml->update->schemas->schemapath, $admindir);
|
||||
}
|
||||
|
||||
if (count($this->errors))
|
||||
|
Loading…
Reference in New Issue
Block a user