mirror of
https://github.com/joomla-extensions/jedchecker.git
synced 2024-12-31 21:51:46 +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);
|
$this->checkFiles($node->language, $dir);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$admindir = $basedir;
|
||||||
|
|
||||||
// check: administration files[folder] (filename|folder)*
|
// check: administration files[folder] (filename|folder)*
|
||||||
if (isset($xml->administration->files))
|
if (isset($xml->administration->files))
|
||||||
{
|
{
|
||||||
$node = $xml->administration->files;
|
$node = $xml->administration->files;
|
||||||
$dir = $basedir . (isset($node['folder']) ? $node['folder'] . '/' : '');
|
$admindir = $basedir . (isset($node['folder']) ? $node['folder'] . '/' : '');
|
||||||
$this->checkFiles($node->filename, $dir);
|
$this->checkFiles($node->filename, $admindir);
|
||||||
$this->checkFolders($node->folder, $dir);
|
$this->checkFolders($node->folder, $admindir);
|
||||||
}
|
}
|
||||||
|
|
||||||
// check: administration media[folder] (filename|folder)*
|
// check: administration media[folder] (filename|folder)*
|
||||||
@ -164,19 +166,19 @@ class JedcheckerRulesXMLFiles extends JEDcheckerRule
|
|||||||
// check files: install sql file*
|
// check files: install sql file*
|
||||||
if (isset($xml->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*
|
// check files: uninstall sql file*
|
||||||
if (isset($xml->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*
|
// check folders: update schemas schemapath*
|
||||||
if (isset($xml->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))
|
if (count($this->errors))
|
||||||
|
Loading…
Reference in New Issue
Block a user