33
2
mirror of https://github.com/joomla-extensions/jedchecker.git synced 2024-12-28 12:30:44 +00:00

Fix displayed filepaths on Windows

`JPath::clean` is necessary to correctly remove full file path prefix in `JEDcheckerReport::addItem`.
This commit is contained in:
Denis Ryabov 2021-02-15 23:22:23 +03:00 committed by GitHub
parent f22a82d6cf
commit 3ebb0f3cb1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,7 +65,7 @@ class JedcheckerControllerPolice extends JControllerLegacy
protected function police($class, $folder)
{
// Prepare rule properties
$properties = array('basedir' => $folder);
$properties = array('basedir' => JPath::clean($folder));
// Create instance of the rule
$police = new $class($properties);