From 1a37224910d241fa3d6e239dcec24f7d95f41ab7 Mon Sep 17 00:00:00 2001
From: Hypolite Petovan <hypolite@mrpetovan.com>
Date: Sat, 20 Oct 2018 22:42:04 -0400
Subject: [PATCH] Change file_exists to is_readable in LegacyModule

---
 src/LegacyModule.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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));
 		}
 
-- 
2.39.5