Remove unnecessary realpath() in old class files #2310

This commit is contained in:
Kijin Sung 2024-04-30 23:03:57 +09:00
parent c32eb69a20
commit 6e72186d1f
2 changed files with 1 additions and 3 deletions

View file

@ -2223,7 +2223,7 @@ class Context
$file = $autoPath; $file = $autoPath;
} }
} }
$validator = new Validator($file); $validator = new Validator(FileHandler::getRealPath($file));
$validator->setCacheDir('files/cache'); $validator->setCacheDir('files/cache');
$file = $validator->getJsPath(); $file = $validator->getJsPath();
} }

View file

@ -115,8 +115,6 @@ class Validator
function load($xml_path) function load($xml_path)
{ {
$this->_xml_ruleset = NULL; $this->_xml_ruleset = NULL;
$xml_path = realpath($xml_path);
if(!is_readable($xml_path)) if(!is_readable($xml_path))
{ {
return FALSE; return FALSE;