diff --git a/plugins/system/actionlogs/src/Extension/ActionLogs.php b/plugins/system/actionlogs/src/Extension/ActionLogs.php index 22e0a8c1d14f2..bcc2b85a2ebef 100644 --- a/plugins/system/actionlogs/src/Extension/ActionLogs.php +++ b/plugins/system/actionlogs/src/Extension/ActionLogs.php @@ -52,19 +52,6 @@ public function __construct(DispatcherInterface $dispatcher, array $config) PluginHelper::importPlugin('actionlog'); } - /** - * Listener for the `onAfterInitialise` event - * - * @return void - * - * @since 4.0.0 - */ - public function onAfterInitialise() - { - // Load plugin language files. - $this->loadLanguage(); - } - /** * Adds additional fields to the user editing form for logs e-mail notifications * @@ -100,6 +87,9 @@ public function onContentPrepareForm(Form $form, $data) return true; } + // Load plugin language files. + $this->loadLanguage(); + // If we are on the save command, no data is passed to $data variable, we need to get it directly from request $jformData = $this->getApplication()->getInput()->get('jform', [], 'array'); @@ -175,6 +165,9 @@ public function onContentPrepareData($context, $data) return true; } + // Load plugin language files. + $this->loadLanguage(); + $data->actionlogs = new \stdClass(); $data->actionlogs->actionlogsNotify = $values->notify; $data->actionlogs->actionlogsExtensions = $values->extensions; diff --git a/plugins/system/fields/src/Extension/Fields.php b/plugins/system/fields/src/Extension/Fields.php index 957674b431f73..2ebe4c3cd3547 100644 --- a/plugins/system/fields/src/Extension/Fields.php +++ b/plugins/system/fields/src/Extension/Fields.php @@ -31,14 +31,6 @@ final class Fields extends CMSPlugin { use UserFactoryAwareTrait; - /** - * Load the language file on instantiation. - * - * @var boolean - * @since 3.7.0 - */ - protected $autoloadLanguage = true; - /** * Normalizes the request data. * diff --git a/plugins/system/guidedtours/src/Extension/GuidedTours.php b/plugins/system/guidedtours/src/Extension/GuidedTours.php index 0c73365ba8f10..cc5e88ea5bb29 100644 --- a/plugins/system/guidedtours/src/Extension/GuidedTours.php +++ b/plugins/system/guidedtours/src/Extension/GuidedTours.php @@ -74,8 +74,7 @@ final class GuidedTours extends CMSPlugin implements SubscriberInterface */ public function __construct(DispatcherInterface $dispatcher, array $config = [], bool $enabled = false) { - $this->autoloadLanguage = $enabled; - self::$enabled = $enabled; + self::$enabled = $enabled; parent::__construct($dispatcher, $config); } @@ -110,6 +109,9 @@ public function startTour(Event $event) $tour = null; + // Load plugin language files + $this->loadLanguage(); + if ($tourId > 0) { $tour = $this->getTour($tourId); } elseif ($tourUid !== '') { @@ -135,6 +137,9 @@ public function onBeforeCompileHead() $user = $app->getIdentity(); if ($user != null && $user->id > 0) { + // Load plugin language files + $this->loadLanguage(); + Text::script('JCANCEL'); Text::script('PLG_SYSTEM_GUIDEDTOURS_BACK'); Text::script('PLG_SYSTEM_GUIDEDTOURS_COMPLETE'); diff --git a/plugins/system/jooa11y/src/Extension/Jooa11y.php b/plugins/system/jooa11y/src/Extension/Jooa11y.php index beea24c74bf42..2c1c936d48166 100644 --- a/plugins/system/jooa11y/src/Extension/Jooa11y.php +++ b/plugins/system/jooa11y/src/Extension/Jooa11y.php @@ -25,14 +25,6 @@ */ final class Jooa11y extends CMSPlugin implements SubscriberInterface { - /** - * Affects constructor behavior. If true, language files will be loaded automatically. - * - * @var boolean - * @since 4.1.0 - */ - protected $autoloadLanguage = true; - /** * Subscribe to certain events * @@ -101,6 +93,9 @@ public function initJooa11y() return; } + // Load translations + $this->loadLanguage(); + // Get the document object. $document = $this->getApplication()->getDocument(); diff --git a/plugins/system/logout/src/Extension/Logout.php b/plugins/system/logout/src/Extension/Logout.php index 3d66dd60ae65d..10751fecefedd 100644 --- a/plugins/system/logout/src/Extension/Logout.php +++ b/plugins/system/logout/src/Extension/Logout.php @@ -26,15 +26,6 @@ */ final class Logout extends CMSPlugin { - /** - * Load the language file on instantiation. - * - * @var boolean - * - * @since 3.1 - */ - protected $autoloadLanguage = true; - /** * @param DispatcherInterface $dispatcher The object to observe -- event dispatcher. * @param array $config An optional associative array of configuration settings. diff --git a/plugins/system/privacyconsent/src/Extension/PrivacyConsent.php b/plugins/system/privacyconsent/src/Extension/PrivacyConsent.php index 177da62fc5ed6..39733b79217d3 100644 --- a/plugins/system/privacyconsent/src/Extension/PrivacyConsent.php +++ b/plugins/system/privacyconsent/src/Extension/PrivacyConsent.php @@ -36,14 +36,6 @@ final class PrivacyConsent extends CMSPlugin { use DatabaseAwareTrait; - /** - * Load the language file on instantiation. - * - * @var boolean - * @since 3.9.0 - */ - protected $autoloadLanguage = true; - /** * Adds additional fields to the user editing form * @@ -63,6 +55,9 @@ public function onContentPrepareForm(Form $form, $data) return true; } + // Load plugin language files + $this->loadLanguage(); + // We only display this if user has not consented before if (is_object($data)) { $userId = $data->id ?? 0; @@ -107,6 +102,9 @@ public function onUserBeforeSave($user, $isNew, $data) $userId = ArrayHelper::getValue($user, 'id', 0, 'int'); + // Load plugin language files + $this->loadLanguage(); + // User already consented before, no need to check it further if ($userId > 0 && $this->isUserConsented($userId)) { return true; @@ -256,6 +254,9 @@ public function onAfterRoute() // Check to see whether user already consented, if not, redirect to user profile page if ($userId > 0) { + // Load plugin language files + $this->loadLanguage(); + // If user consented before, no need to check it further if ($this->isUserConsented($userId)) { return; diff --git a/plugins/system/redirect/src/Extension/Redirect.php b/plugins/system/redirect/src/Extension/Redirect.php index 95900e40e9421..59bf66368a47a 100644 --- a/plugins/system/redirect/src/Extension/Redirect.php +++ b/plugins/system/redirect/src/Extension/Redirect.php @@ -34,14 +34,6 @@ final class Redirect extends CMSPlugin implements SubscriberInterface { use DatabaseAwareTrait; - /** - * Affects constructor behavior. If true, language files will be loaded automatically. - * - * @var boolean - * @since 3.4 - */ - protected $autoloadLanguage = false; - /** * Returns an array of events this subscriber will listen to. * @@ -72,6 +64,9 @@ public function handleError(ErrorEvent $event) return; } + // Load translations + $this->loadLanguage(); + $uri = Uri::getInstance(); // These are the original URLs diff --git a/plugins/system/schemaorg/src/Extension/Schemaorg.php b/plugins/system/schemaorg/src/Extension/Schemaorg.php index 591fb3136f1dd..43e8f839bdcc0 100644 --- a/plugins/system/schemaorg/src/Extension/Schemaorg.php +++ b/plugins/system/schemaorg/src/Extension/Schemaorg.php @@ -47,14 +47,6 @@ final class Schemaorg extends CMSPlugin implements SubscriberInterface use SchemaorgPrepareDateTrait; use UserFactoryAwareTrait; - /** - * Load the language file on instantiation. - * - * @var boolean - * @since 5.0.0 - */ - protected $autoloadLanguage = true; - /** * Returns an array of events this subscriber will listen to. * @@ -148,6 +140,9 @@ public function onContentPrepareForm(Model\PrepareFormEvent $event) return; } + // Load plugin language files. + $this->loadLanguage(); + // Load the form fields $form->loadFile(JPATH_PLUGINS . '/' . $this->_type . '/' . $this->_name . '/forms/schemaorg.xml'); diff --git a/plugins/system/shortcut/src/Extension/Shortcut.php b/plugins/system/shortcut/src/Extension/Shortcut.php index 81b841bd7e77f..17a46e99cfe7a 100644 --- a/plugins/system/shortcut/src/Extension/Shortcut.php +++ b/plugins/system/shortcut/src/Extension/Shortcut.php @@ -29,14 +29,6 @@ */ final class Shortcut extends CMSPlugin implements SubscriberInterface { - /** - * Load the language file on instantiation. - * - * @var boolean - * @since 4.2.0 - */ - protected $autoloadLanguage = true; - /** * Returns an array of events this subscriber will listen to. * @@ -75,6 +67,9 @@ public function initialize() return; } + // Load translations + $this->loadLanguage(); + $context = $this->getApplication()->getInput()->get('option') . '.' . $this->getApplication()->getInput()->get('view'); $shortcuts = []; diff --git a/plugins/system/tasknotification/src/Extension/TaskNotification.php b/plugins/system/tasknotification/src/Extension/TaskNotification.php index 149b203c9d9e2..3046974ecf23a 100644 --- a/plugins/system/tasknotification/src/Extension/TaskNotification.php +++ b/plugins/system/tasknotification/src/Extension/TaskNotification.php @@ -53,12 +53,6 @@ final class TaskNotification extends CMSPlugin implements SubscriberInterface */ private const TASK_NOTIFICATION_FORM = 'task_notification'; - /** - * @var boolean - * @since 4.1.0 - */ - protected $autoloadLanguage = true; - /** * @inheritDoc * @@ -94,6 +88,9 @@ public function injectTaskNotificationFieldset(Model\PrepareFormEvent $event): b return true; } + // Load translations + $this->loadLanguage(); + $formFile = JPATH_PLUGINS . '/' . $this->_type . '/' . $this->_name . '/forms/' . self::TASK_NOTIFICATION_FORM . '.xml'; try { @@ -131,6 +128,9 @@ public function notifyFailure(Event $event): void return; } + // Load translations + $this->loadLanguage(); + // @todo safety checks, multiple files [?] $outFile = $event->getArgument('subject')->snapshot['output_file'] ?? ''; $data = $this->getDataFromTask($event->getArgument('subject')); @@ -158,6 +158,9 @@ public function notifyOrphan(Event $event): void return; } + // Load translations + $this->loadLanguage(); + $data = $this->getDataFromTask($event->getArgument('subject')); $this->sendMail('plg_system_tasknotification.orphan_mail', $data); } @@ -181,6 +184,9 @@ public function notifySuccess(Event $event): void return; } + // Load translations + $this->loadLanguage(); + // @todo safety checks, multiple files [?] $outFile = $event->getArgument('subject')->snapshot['output_file'] ?? ''; $data = $this->getDataFromTask($event->getArgument('subject')); @@ -211,6 +217,9 @@ public function notifyFatalRecovery(Event $event): void return; } + // Load translations + $this->loadLanguage(); + $data = $this->getDataFromTask($event->getArgument('subject')); $this->sendMail('plg_system_tasknotification.fatal_recovery_mail', $data); } diff --git a/plugins/system/webauthn/src/Extension/Webauthn.php b/plugins/system/webauthn/src/Extension/Webauthn.php index 1b19c5f0d08cd..026ece9f8aef0 100644 --- a/plugins/system/webauthn/src/Extension/Webauthn.php +++ b/plugins/system/webauthn/src/Extension/Webauthn.php @@ -66,14 +66,6 @@ final class Webauthn extends CMSPlugin implements SubscriberInterface // Handle user profile deletion use UserDeletion; - /** - * Autoload the language files - * - * @var boolean - * @since 4.2.0 - */ - protected $autoloadLanguage = true; - /** * Should I try to detect and register legacy event listeners, i.e. methods which accept unwrapped arguments? While * this maintains a great degree of backwards compatibility to Joomla! 3.x-style plugins it is much slower. You are diff --git a/plugins/system/webauthn/src/PluginTraits/AdditionalLoginButtons.php b/plugins/system/webauthn/src/PluginTraits/AdditionalLoginButtons.php index 4e5fb83a2f5a0..e526608bc67ae 100644 --- a/plugins/system/webauthn/src/PluginTraits/AdditionalLoginButtons.php +++ b/plugins/system/webauthn/src/PluginTraits/AdditionalLoginButtons.php @@ -68,6 +68,9 @@ public function onUserLoginButtons(Event $event): void return; } + // Load plugin language files + $this->loadLanguage(); + // Load necessary CSS and Javascript files $this->addLoginCSSAndJavascript(); diff --git a/plugins/system/webauthn/src/PluginTraits/AjaxHandler.php b/plugins/system/webauthn/src/PluginTraits/AjaxHandler.php index a12a4709e634c..b9e6556258894 100644 --- a/plugins/system/webauthn/src/PluginTraits/AjaxHandler.php +++ b/plugins/system/webauthn/src/PluginTraits/AjaxHandler.php @@ -60,6 +60,9 @@ public function onAjaxWebauthn(AjaxEvent $event): void $returnURL = $this->getApplication()->getSession()->get('plg_system_webauthn.returnUrl', Uri::base()); $result = null; + // Load plugin language files + $this->loadLanguage(); + try { Log::add("Received AJAX callback.", Log::DEBUG, 'webauthn.system'); diff --git a/plugins/system/webauthn/src/PluginTraits/AjaxHandlerChallenge.php b/plugins/system/webauthn/src/PluginTraits/AjaxHandlerChallenge.php index c74e12129bb31..6de8ad4c124f3 100644 --- a/plugins/system/webauthn/src/PluginTraits/AjaxHandlerChallenge.php +++ b/plugins/system/webauthn/src/PluginTraits/AjaxHandlerChallenge.php @@ -48,6 +48,9 @@ public function onAjaxWebauthnChallenge(AjaxChallenge $event): void $session = $this->getApplication()->getSession(); $input = $this->getApplication()->getInput(); + // Load plugin language files + $this->loadLanguage(); + // Retrieve data from the request $username = $input->getUsername('username', ''); $returnUrl = base64_encode( diff --git a/plugins/system/webauthn/src/PluginTraits/AjaxHandlerCreate.php b/plugins/system/webauthn/src/PluginTraits/AjaxHandlerCreate.php index 5bcb4cb750f91..beb0a0b3fa7dd 100644 --- a/plugins/system/webauthn/src/PluginTraits/AjaxHandlerCreate.php +++ b/plugins/system/webauthn/src/PluginTraits/AjaxHandlerCreate.php @@ -42,6 +42,9 @@ trait AjaxHandlerCreate */ public function onAjaxWebauthnCreate(AjaxCreate $event): void { + // Load plugin language files + $this->loadLanguage(); + /** * Fundamental sanity check: this callback is only allowed after a Public Key has been created server-side and * the user it was created for matches the current user. diff --git a/plugins/system/webauthn/src/PluginTraits/AjaxHandlerDelete.php b/plugins/system/webauthn/src/PluginTraits/AjaxHandlerDelete.php index b74a4b73eed2f..8eb46dcfd7e28 100644 --- a/plugins/system/webauthn/src/PluginTraits/AjaxHandlerDelete.php +++ b/plugins/system/webauthn/src/PluginTraits/AjaxHandlerDelete.php @@ -36,6 +36,9 @@ trait AjaxHandlerDelete */ public function onAjaxWebauthnDelete(AjaxDelete $event): void { + // Load plugin language files + $this->loadLanguage(); + // Initialize objects $input = $this->getApplication()->getInput(); $repository = $this->authenticationHelper->getCredentialsRepository(); diff --git a/plugins/system/webauthn/src/PluginTraits/AjaxHandlerInitCreate.php b/plugins/system/webauthn/src/PluginTraits/AjaxHandlerInitCreate.php index a77735651e0d2..781cafe564aba 100644 --- a/plugins/system/webauthn/src/PluginTraits/AjaxHandlerInitCreate.php +++ b/plugins/system/webauthn/src/PluginTraits/AjaxHandlerInitCreate.php @@ -38,6 +38,9 @@ trait AjaxHandlerInitCreate */ public function onAjaxWebauthnInitcreate(AjaxInitCreate $event): void { + // Load plugin language files + $this->loadLanguage(); + // Make sure I have a valid user $user = Factory::getApplication()->getIdentity(); diff --git a/plugins/system/webauthn/src/PluginTraits/AjaxHandlerLogin.php b/plugins/system/webauthn/src/PluginTraits/AjaxHandlerLogin.php index 1b1398466264a..afa7b308f9c85 100644 --- a/plugins/system/webauthn/src/PluginTraits/AjaxHandlerLogin.php +++ b/plugins/system/webauthn/src/PluginTraits/AjaxHandlerLogin.php @@ -47,6 +47,9 @@ trait AjaxHandlerLogin */ public function onAjaxWebauthnLogin(AjaxLogin $event): void { + // Load plugin language files + $this->loadLanguage(); + $session = $this->getApplication()->getSession(); $returnUrl = $session->get('plg_system_webauthn.returnUrl', Uri::base()); $userId = $session->get('plg_system_webauthn.userId', 0); diff --git a/plugins/system/webauthn/src/PluginTraits/AjaxHandlerSaveLabel.php b/plugins/system/webauthn/src/PluginTraits/AjaxHandlerSaveLabel.php index 7a32d0c4154ca..aa188019d20db 100644 --- a/plugins/system/webauthn/src/PluginTraits/AjaxHandlerSaveLabel.php +++ b/plugins/system/webauthn/src/PluginTraits/AjaxHandlerSaveLabel.php @@ -37,6 +37,9 @@ trait AjaxHandlerSaveLabel */ public function onAjaxWebauthnSavelabel(AjaxSaveLabel $event): void { + // Load plugin language files + $this->loadLanguage(); + // Initialize objects $input = $this->getApplication()->getInput(); $repository = $this->authenticationHelper->getCredentialsRepository(); diff --git a/plugins/system/webauthn/src/PluginTraits/UserProfileFields.php b/plugins/system/webauthn/src/PluginTraits/UserProfileFields.php index df816fdee3839..3ff1fe348e947 100644 --- a/plugins/system/webauthn/src/PluginTraits/UserProfileFields.php +++ b/plugins/system/webauthn/src/PluginTraits/UserProfileFields.php @@ -124,6 +124,9 @@ public function onContentPrepareForm(Event $event) return; } + // Load plugin language files + $this->loadLanguage(); + // Get the user object $user = $this->getUserFromData($data); @@ -166,6 +169,9 @@ public function onContentPrepareData(Event $event): void return; } + // Load plugin language files + $this->loadLanguage(); + self::$userFromFormData = $this->getUserFromData($data); if (!HTMLHelper::isRegistered('users.webauthnWebauthn')) { diff --git a/plugins/user/contactcreator/src/Extension/ContactCreator.php b/plugins/user/contactcreator/src/Extension/ContactCreator.php index 9332e734fabe4..87e0ac4e015ad 100644 --- a/plugins/user/contactcreator/src/Extension/ContactCreator.php +++ b/plugins/user/contactcreator/src/Extension/ContactCreator.php @@ -27,14 +27,6 @@ */ final class ContactCreator extends CMSPlugin { - /** - * Load the language file on instantiation. - * - * @var boolean - * @since 3.1 - */ - protected $autoloadLanguage = true; - /** * Utility method to act on a user after it has been saved. * @@ -69,6 +61,9 @@ public function onUserAfterSave($user, $isnew, $success, $msg): void return; } + // Load plugin language files + $this->loadLanguage(); + $categoryId = $this->params->get('category', 0); if (empty($categoryId)) { diff --git a/plugins/user/profile/src/Extension/Profile.php b/plugins/user/profile/src/Extension/Profile.php index 4bc410e5a0642..cf79ec18739ee 100644 --- a/plugins/user/profile/src/Extension/Profile.php +++ b/plugins/user/profile/src/Extension/Profile.php @@ -35,15 +35,6 @@ final class Profile extends CMSPlugin { use DatabaseAwareTrait; - /** - * Load the language file on instantiation. - * - * @var boolean - * - * @since 3.1 - */ - protected $autoloadLanguage = true; - /** * Date of birth. * @@ -70,6 +61,9 @@ public function onContentPrepareData($context, $data) return true; } + // Load plugin language files + $this->loadLanguage(); + if (is_object($data)) { $userId = $data->id ?? 0; @@ -215,6 +209,9 @@ public function onContentPrepareForm(Form $form, $data) return true; } + // Load plugin language files + $this->loadLanguage(); + // Add the registration fields to the form. FormHelper::addFieldPrefix('Joomla\\Plugin\\User\\Profile\\Field'); FormHelper::addFormPath(JPATH_PLUGINS . '/' . $this->_type . '/' . $this->_name . '/forms'); @@ -303,6 +300,9 @@ public function onContentPrepareForm(Form $form, $data) */ public function onUserBeforeSave($user, $isnew, $data) { + // Load plugin language files + $this->loadLanguage(); + // Check that the date is valid. if (!empty($data['profile']['dob'])) { try { diff --git a/plugins/user/terms/src/Extension/Terms.php b/plugins/user/terms/src/Extension/Terms.php index b4bba582cdb68..2ee3156dcbb64 100644 --- a/plugins/user/terms/src/Extension/Terms.php +++ b/plugins/user/terms/src/Extension/Terms.php @@ -27,15 +27,6 @@ */ final class Terms extends CMSPlugin { - /** - * Load the language file on instantiation. - * - * @var boolean - * - * @since 3.9.0 - */ - protected $autoloadLanguage = true; - /** * Adds additional fields to the user registration form * @@ -55,6 +46,9 @@ public function onContentPrepareForm(Form $form, $data) return true; } + // Load plugin language files + $this->loadLanguage(); + // Add the terms and conditions fields to the form. FormHelper::addFieldPrefix('Joomla\\Plugin\\User\\Terms\\Field'); FormHelper::addFormPath(JPATH_PLUGINS . '/' . $this->_type . '/' . $this->_name . '/forms'); @@ -94,6 +88,9 @@ public function onUserBeforeSave($user, $isNew, $data) return true; } + // Load plugin language files + $this->loadLanguage(); + // Check that the terms is checked if required ie only in registration from frontend. $input = $this->getApplication()->getInput(); $option = $input->get('option'); diff --git a/plugins/user/token/src/Extension/Token.php b/plugins/user/token/src/Extension/Token.php index 035a5fbbadd26..17c0f9baf647a 100644 --- a/plugins/user/token/src/Extension/Token.php +++ b/plugins/user/token/src/Extension/Token.php @@ -33,14 +33,6 @@ final class Token extends CMSPlugin use DatabaseAwareTrait; use UserFactoryAwareTrait; - /** - * Load the language file on instantiation. - * - * @var boolean - * @since 4.0.0 - */ - protected $autoloadLanguage = true; - /** * Joomla XML form contexts where we should inject our token management user interface. * @@ -113,6 +105,9 @@ public function onContentPrepareData(string $context, &$data): bool return true; } + // Load plugin language files + $this->loadLanguage(); + $data->{$this->profileKeyPrefix} = []; // Load the profile data from the database. @@ -212,6 +207,9 @@ public function onContentPrepareForm(Form $form, $data): bool return true; } + // Load plugin language files + $this->loadLanguage(); + // Add the registration fields to the form. Form::addFormPath(JPATH_PLUGINS . '/' . $this->_type . '/' . $this->_name . '/forms'); $form->loadFile('token', false); diff --git a/plugins/webservices/banners/src/Extension/Banners.php b/plugins/webservices/banners/src/Extension/Banners.php index ac00be0bab2d0..c3ac1590ff843 100644 --- a/plugins/webservices/banners/src/Extension/Banners.php +++ b/plugins/webservices/banners/src/Extension/Banners.php @@ -25,14 +25,6 @@ */ final class Banners extends CMSPlugin { - /** - * Load the language file on instantiation. - * - * @var boolean - * @since 4.0.0 - */ - protected $autoloadLanguage = true; - /** * Registers com_banners's API's routes in the application * diff --git a/plugins/webservices/config/src/Extension/Config.php b/plugins/webservices/config/src/Extension/Config.php index 74c1612e36385..a72048165615d 100644 --- a/plugins/webservices/config/src/Extension/Config.php +++ b/plugins/webservices/config/src/Extension/Config.php @@ -25,14 +25,6 @@ */ final class Config extends CMSPlugin { - /** - * Load the language file on instantiation. - * - * @var boolean - * @since 4.0.0 - */ - protected $autoloadLanguage = true; - /** * Registers com_config's API's routes in the application * diff --git a/plugins/webservices/contact/src/Extension/Contact.php b/plugins/webservices/contact/src/Extension/Contact.php index 0c1f9e57c2cb8..e9ed243d0083b 100644 --- a/plugins/webservices/contact/src/Extension/Contact.php +++ b/plugins/webservices/contact/src/Extension/Contact.php @@ -25,14 +25,6 @@ */ final class Contact extends CMSPlugin { - /** - * Load the language file on instantiation. - * - * @var boolean - * @since 4.0.0 - */ - protected $autoloadLanguage = true; - /** * Registers com_contact's API's routes in the application * diff --git a/plugins/webservices/content/src/Extension/Content.php b/plugins/webservices/content/src/Extension/Content.php index 981316aa7aecf..32f6ed40ded81 100644 --- a/plugins/webservices/content/src/Extension/Content.php +++ b/plugins/webservices/content/src/Extension/Content.php @@ -25,14 +25,6 @@ */ final class Content extends CMSPlugin { - /** - * Load the language file on instantiation. - * - * @var boolean - * @since 4.0.0 - */ - protected $autoloadLanguage = true; - /** * Registers com_content's API's routes in the application * diff --git a/plugins/webservices/installer/src/Extension/Installer.php b/plugins/webservices/installer/src/Extension/Installer.php index 133f0648ff811..c13c8f65c58b1 100644 --- a/plugins/webservices/installer/src/Extension/Installer.php +++ b/plugins/webservices/installer/src/Extension/Installer.php @@ -25,14 +25,6 @@ */ final class Installer extends CMSPlugin { - /** - * Load the language file on instantiation. - * - * @var boolean - * @since 4.0.0 - */ - protected $autoloadLanguage = true; - /** * Registers com_installer's API's routes in the application * diff --git a/plugins/webservices/languages/src/Extension/Languages.php b/plugins/webservices/languages/src/Extension/Languages.php index ba518f3c60e12..4f10b64765219 100644 --- a/plugins/webservices/languages/src/Extension/Languages.php +++ b/plugins/webservices/languages/src/Extension/Languages.php @@ -26,14 +26,6 @@ */ final class Languages extends CMSPlugin { - /** - * Load the language file on instantiation. - * - * @var boolean - * @since 4.0.0 - */ - protected $autoloadLanguage = true; - /** * Registers com_languages's API's routes in the application * diff --git a/plugins/webservices/media/src/Extension/Media.php b/plugins/webservices/media/src/Extension/Media.php index 75008b6ea114a..196739720de22 100644 --- a/plugins/webservices/media/src/Extension/Media.php +++ b/plugins/webservices/media/src/Extension/Media.php @@ -25,14 +25,6 @@ */ final class Media extends CMSPlugin { - /** - * Load the language file on instantiation. - * - * @var boolean - * @since 4.1.0 - */ - protected $autoloadLanguage = true; - /** * Registers com_media's API's routes in the application. * diff --git a/plugins/webservices/menus/src/Extension/Menus.php b/plugins/webservices/menus/src/Extension/Menus.php index 1b9be947fd13b..fb2db7e78e518 100644 --- a/plugins/webservices/menus/src/Extension/Menus.php +++ b/plugins/webservices/menus/src/Extension/Menus.php @@ -25,14 +25,6 @@ */ final class Menus extends CMSPlugin { - /** - * Load the language file on instantiation. - * - * @var boolean - * @since 4.0.0 - */ - protected $autoloadLanguage = true; - /** * Registers com_menus's API's routes in the application * diff --git a/plugins/webservices/messages/src/Extension/Messages.php b/plugins/webservices/messages/src/Extension/Messages.php index 6b09ea2fa5bc1..173f2518384ad 100644 --- a/plugins/webservices/messages/src/Extension/Messages.php +++ b/plugins/webservices/messages/src/Extension/Messages.php @@ -24,14 +24,6 @@ */ final class Messages extends CMSPlugin { - /** - * Load the language file on instantiation. - * - * @var boolean - * @since 4.0.0 - */ - protected $autoloadLanguage = true; - /** * Registers com_messages's API's routes in the application * diff --git a/plugins/webservices/modules/src/Extension/Modules.php b/plugins/webservices/modules/src/Extension/Modules.php index 7351de6e7f3a9..29311834f6982 100644 --- a/plugins/webservices/modules/src/Extension/Modules.php +++ b/plugins/webservices/modules/src/Extension/Modules.php @@ -25,14 +25,6 @@ */ final class Modules extends CMSPlugin { - /** - * Load the language file on instantiation. - * - * @var boolean - * @since 4.0.0 - */ - protected $autoloadLanguage = true; - /** * Registers com_modules's API's routes in the application * diff --git a/plugins/webservices/newsfeeds/src/Extension/Newsfeeds.php b/plugins/webservices/newsfeeds/src/Extension/Newsfeeds.php index c397384d8a6cc..aae3ef60bdc79 100644 --- a/plugins/webservices/newsfeeds/src/Extension/Newsfeeds.php +++ b/plugins/webservices/newsfeeds/src/Extension/Newsfeeds.php @@ -24,14 +24,6 @@ */ final class Newsfeeds extends CMSPlugin { - /** - * Load the language file on instantiation. - * - * @var boolean - * @since 4.0.0 - */ - protected $autoloadLanguage = true; - /** * Registers com_newsfeeds's API's routes in the application * diff --git a/plugins/webservices/plugins/src/Extension/Plugins.php b/plugins/webservices/plugins/src/Extension/Plugins.php index 8d65b95201c32..56763c5f4b58a 100644 --- a/plugins/webservices/plugins/src/Extension/Plugins.php +++ b/plugins/webservices/plugins/src/Extension/Plugins.php @@ -25,14 +25,6 @@ */ final class Plugins extends CMSPlugin { - /** - * Load the language file on instantiation. - * - * @var boolean - * @since 4.0.0 - */ - protected $autoloadLanguage = true; - /** * Registers com_plugins's API's routes in the application * diff --git a/plugins/webservices/privacy/src/Extension/Privacy.php b/plugins/webservices/privacy/src/Extension/Privacy.php index 304a21d7ec858..c450ce764169b 100644 --- a/plugins/webservices/privacy/src/Extension/Privacy.php +++ b/plugins/webservices/privacy/src/Extension/Privacy.php @@ -25,14 +25,6 @@ */ final class Privacy extends CMSPlugin { - /** - * Load the language file on instantiation. - * - * @var boolean - * @since 4.0.0 - */ - protected $autoloadLanguage = true; - /** * Registers com_privacy's API's routes in the application * diff --git a/plugins/webservices/redirect/src/Extension/Redirect.php b/plugins/webservices/redirect/src/Extension/Redirect.php index 6ac8a9ca9fe59..5412977f7119c 100644 --- a/plugins/webservices/redirect/src/Extension/Redirect.php +++ b/plugins/webservices/redirect/src/Extension/Redirect.php @@ -24,14 +24,6 @@ */ final class Redirect extends CMSPlugin { - /** - * Load the language file on instantiation. - * - * @var boolean - * @since 4.0.0 - */ - protected $autoloadLanguage = true; - /** * Registers com_redirect's API's routes in the application * diff --git a/plugins/webservices/tags/src/Extension/Tags.php b/plugins/webservices/tags/src/Extension/Tags.php index ad07205609d0d..c11c8a4c60ec2 100644 --- a/plugins/webservices/tags/src/Extension/Tags.php +++ b/plugins/webservices/tags/src/Extension/Tags.php @@ -24,14 +24,6 @@ */ final class Tags extends CMSPlugin { - /** - * Load the language file on instantiation. - * - * @var boolean - * @since 4.0.0 - */ - protected $autoloadLanguage = true; - /** * Registers com_tags's API's routes in the application * diff --git a/plugins/webservices/templates/src/Extension/Templates.php b/plugins/webservices/templates/src/Extension/Templates.php index b9e0ed373ba86..850c26752d559 100644 --- a/plugins/webservices/templates/src/Extension/Templates.php +++ b/plugins/webservices/templates/src/Extension/Templates.php @@ -24,14 +24,6 @@ */ final class Templates extends CMSPlugin { - /** - * Load the language file on instantiation. - * - * @var boolean - * @since 4.0.0 - */ - protected $autoloadLanguage = true; - /** * Registers com_templates's API's routes in the application * diff --git a/plugins/webservices/users/src/Extension/Users.php b/plugins/webservices/users/src/Extension/Users.php index 1f7fee69b8221..190d723c5cb7d 100644 --- a/plugins/webservices/users/src/Extension/Users.php +++ b/plugins/webservices/users/src/Extension/Users.php @@ -24,14 +24,6 @@ */ final class Users extends CMSPlugin { - /** - * Load the language file on instantiation. - * - * @var boolean - * @since 4.0.0 - */ - protected $autoloadLanguage = true; - /** * Registers com_users's API's routes in the application *