X-Git-Url: https://git.mxchange.org/?p=core.git;a=blobdiff_plain;f=framework%2Fmain%2Fclasses%2Flanguage%2Fclass_LanguageSystem.php;h=99df420951bee5bbac8c46b50098256e73c25d25;hp=657c113742c318d73d86263a18e5e852a6947792;hb=b002c5909aa0f781505dde5414964b0f014cde01;hpb=24814f48bc7bad92f55e8763bf3f657fb41b131d diff --git a/framework/main/classes/language/class_LanguageSystem.php b/framework/main/classes/language/class_LanguageSystem.php index 657c1137..99df4209 100644 --- a/framework/main/classes/language/class_LanguageSystem.php +++ b/framework/main/classes/language/class_LanguageSystem.php @@ -1,12 +1,15 @@ getInstance('app'); + $applicationInstance = GenericRegistry::getRegistry()->getInstance('app'); // 2) Try to build it $languageBasePath = sprintf('%s%s/language/', @@ -94,7 +97,7 @@ class LanguageSystem extends BaseFrameworkSystem implements ManageableLanguage, // Is the base path valid? if (empty($languageBasePath)) { // Language path is empty - throw new LanguagePathIsEmptyException($langInstance, self::EXCEPTION_UNEXPECTED_EMPTY_STRING); + throw new InvalidArgumentException('languageBasePath is still empty'); } elseif (!is_string($languageBasePath)) { // Is not a string throw new InvalidLanguagePathStringException(array($langInstance, $languageBasePath), self::EXCEPTION_INVALID_STRING);