mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-01-01 18:49:18 +01:00
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
Block a user