diff --git a/src/My.php b/src/My.php index ee90d46..7a60bb2 100644 --- a/src/My.php +++ b/src/My.php @@ -37,7 +37,9 @@ class My */ public static function name(): string { - return __((string) dcCore::app()->plugins->moduleInfo(self::id(), 'name')); + $name = dcCore::app()->plugins->moduleInfo(self::id(), 'name'); + + return __(is_string($name) ? $name : self::id()); } /** diff --git a/src/TraitCleanerDir.php b/src/TraitCleanerDir.php index 550f878..1229189 100644 --- a/src/TraitCleanerDir.php +++ b/src/TraitCleanerDir.php @@ -22,7 +22,7 @@ use Dotclear\Helper\File\Path; */ trait TraitCleanerDir { - /** @var array The excluded files */ + /** @var array The excluded files */ public const EXCLUDED = [ '.', '..',