]> git.mxchange.org Git - friendica.git/commitdiff
Change file_exists to is_readable in LegacyModule
authorHypolite Petovan <hypolite@mrpetovan.com>
Sun, 21 Oct 2018 02:42:04 +0000 (22:42 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sun, 21 Oct 2018 02:42:04 +0000 (22:42 -0400)
src/LegacyModule.php

index 4b0371edb5f4f73b1664446a52d8f6433587830e..737101b5c287ac911fa2649344bf41218cf423ba 100644 (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));
                }