Fix #337
This commit is contained in:
parent
03eb2ca8c6
commit
809eb95380
|
@ -352,6 +352,7 @@ class Modules
|
|||
*/
|
||||
public static function filepath($element, $file)
|
||||
{
|
||||
return self::get($element)->filepath($file);
|
||||
$element = self::get($element);
|
||||
return $element ? $element->filepath($file) : null;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -93,6 +93,7 @@ class Plugins
|
|||
*/
|
||||
public static function filepath($element, $file)
|
||||
{
|
||||
return self::get($element)->filepath($file);
|
||||
$element = self::get($element);
|
||||
return $element ? $element->filepath($file) : null;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue