From 3e03b981e8f769e7bc3aea2ca8402dd0f03c4633 Mon Sep 17 00:00:00 2001 From: Denis Ryabov Date: Wed, 24 Feb 2021 14:52:58 +0300 Subject: [PATCH] check fonts in language package --- .../com_jedchecker/libraries/rules/xmlfiles.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/administrator/components/com_jedchecker/libraries/rules/xmlfiles.php b/administrator/components/com_jedchecker/libraries/rules/xmlfiles.php index 1f43567..97b2bc6 100644 --- a/administrator/components/com_jedchecker/libraries/rules/xmlfiles.php +++ b/administrator/components/com_jedchecker/libraries/rules/xmlfiles.php @@ -119,6 +119,15 @@ class JedcheckerRulesXMLFiles extends JEDcheckerRule $this->checkFolders($node->folder, $dir); } + // Check: fonts[folder] (filename|folder)* + if (isset($xml->fonts)) + { + $node = $xml->fonts; + $dir = $basedir . (isset($node['folder']) ? $node['folder'] . '/' : ''); + $this->checkFiles($node->filename, $dir); + $this->checkFolders($node->folder, $dir); + } + // Check files: languages[folder] language* if (isset($xml->languages)) {