Change file_exists to is_readable in LegacyModule
This commit is contained in:
parent
b27ff9d2b7
commit
1a37224910
|
@ -25,7 +25,7 @@ class LegacyModule extends BaseModule
|
||||||
*/
|
*/
|
||||||
public static function setModuleFile($file_path)
|
public static function setModuleFile($file_path)
|
||||||
{
|
{
|
||||||
if (!file_exists($file_path)) {
|
if (!is_readable($file_path)) {
|
||||||
throw new Exception(Core\L10n::t('Legacy module file not found: %s', $file_path));
|
throw new Exception(Core\L10n::t('Legacy module file not found: %s', $file_path));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user