Change file_exists to is_readable in LegacyModule

This commit is contained in:
Hypolite Petovan 2018-10-20 22:42:04 -04:00
parent b27ff9d2b7
commit 1a37224910

View file

@ -25,7 +25,7 @@ class LegacyModule extends BaseModule
*/
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));
}