diff --git a/src/administrator/components/com_weblinks/script.php b/src/administrator/components/com_weblinks/script.php index cb4f1df2ba..87b9050eaf 100644 --- a/src/administrator/components/com_weblinks/script.php +++ b/src/administrator/components/com_weblinks/script.php @@ -65,7 +65,7 @@ public function __construct(DatabaseInterface $db) */ public function install(InstallerAdapter $parent): bool { - $this->app->getLanguage()->load('com_weblinks', JPATH_ADMINISTRATOR, 'en-GB', false, true); + $this->app->getLanguage()->load('com_weblinks', JPATH_ADMINISTRATOR); $this->createCategory(); $this->addDashboardMenu('weblink', 'weblink'); $this->app->enqueueMessage(Text::_('COM_WEBLINKS_SUCCESS_INSTALL')); @@ -82,7 +82,7 @@ public function install(InstallerAdapter $parent): bool */ public function update(InstallerAdapter $parent): bool { - $this->app->getLanguage()->load('com_weblinks', JPATH_ADMINISTRATOR, 'en-GB', false, true); + $this->app->getLanguage()->load('com_weblinks', JPATH_ADMINISTRATOR); $this->app->enqueueMessage(Text::_('COM_WEBLINKS_SUCCESS_UPDATE')); $this->addDashboardMenu('weblink', 'weblink'); return true; @@ -97,7 +97,7 @@ public function update(InstallerAdapter $parent): bool */ public function uninstall(InstallerAdapter $parent): bool { - $this->app->getLanguage()->load('com_weblinks', JPATH_ADMINISTRATOR, 'en-GB', false, true); + $this->app->getLanguage()->load('com_weblinks', JPATH_ADMINISTRATOR); $this->app->enqueueMessage(Text::_('COM_WEBLINKS_SUCCESS_UNINSTALL')); return true;