Added the namespacing for the file and folder classes to the compiler. gh-682

This commit is contained in:
2021-03-08 05:55:21 +02:00
parent 552a2664ba
commit 1279a5d2f9
8 changed files with 76 additions and 69 deletions

View File

@ -201,12 +201,12 @@ abstract class ###Component###Helper
$filePath = $path . '/' . $name . '.php';
$fullPathModel = $fullPathModels . '/' . $name . '.php';
// check if it exists
if (JFile::exists($filePath))
if (File::exists($filePath))
{
// get the file
require_once $filePath;
}
elseif (JFile::exists($fullPathModel))
elseif (File::exists($fullPathModel))
{
// get the file
require_once $fullPathModel;