]> git.mxchange.org Git - friendica.git/blobdiff - src/LegacyModule.php
Remove next link when there aren't any introductions in Module\Api\Mastodon\FollowReq...
[friendica.git] / src / LegacyModule.php
index 950f8faad213868f028e59cf5802262157524b21..ecb21ebc5ba21c84e5141afb60818612a5401ec1 100644 (file)
@@ -27,7 +27,7 @@ class LegacyModule extends BaseModule
        public static function setModuleFile($file_path)
        {
                if (!is_readable($file_path)) {
-                       throw new \Exception(Core\L10n::t('Legacy module file not found: %s', $file_path));
+                       throw new \Exception(DI::l10n()->t('Legacy module file not found: %s', $file_path));
                }
 
                self::$moduleName = basename($file_path, '.php');
@@ -67,7 +67,7 @@ class LegacyModule extends BaseModule
                $function_name = static::$moduleName . '_' . $function_suffix;
 
                if (\function_exists($function_name)) {
-                       $a = self::getApp();
+                       $a = DI::app();
                        return $function_name($a);
                } else {
                        return parent::{$function_suffix}($parameters);