From: Hypolite Petovan Date: Sun, 21 Oct 2018 02:42:04 +0000 (-0400) Subject: Change file_exists to is_readable in LegacyModule X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1a37224910d241fa3d6e239dcec24f7d95f41ab7;p=friendica.git Change file_exists to is_readable in LegacyModule --- diff --git a/src/LegacyModule.php b/src/LegacyModule.php index 4b0371edb5..737101b5c2 100644 --- a/src/LegacyModule.php +++ b/src/LegacyModule.php @@ -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)); }