diff --git a/src/Core/I18n.php b/src/Core/I18n.php index d455105372..38c158aec9 100644 --- a/src/Core/I18n.php +++ b/src/Core/I18n.php @@ -17,7 +17,6 @@ // along with GNU social. If not, see . // }}} - /** * Utility functions for i18n * @@ -52,6 +51,7 @@ foreach ($LC_CATEGORIES as $key => $name) { } } +use App\Util\Formatting; use InvalidArgumentException; use Symfony\Contracts\Translation\TranslatorInterface; @@ -88,10 +88,10 @@ abstract class I18n static $cached; $path = $backtrace[0]['file']; if (!isset($cached[$path])) { - $path = common::normalizePath($path); - $cached[$path] = common::pluginFromPath($path); + $path = Formatting::normalizePath($path); + $cached[$path] = Formatting::pluginFromPath($path); } - return $cached[$path] ?? ''; + return $cached[$path] ?? 'Core'; } /**