mirror of
https://github.com/friendica/friendica
synced 2024-11-18 10:23:41 +00:00
Change file_exists to is_readable in LegacyModule
This commit is contained in:
parent
b27ff9d2b7
commit
1a37224910
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue