Allow disabled plugin's translations to load for display translations on system pages

This commit is contained in:
Luke Towers 2020-04-02 22:15:30 -06:00
parent da4f1705ca
commit 8b9c001b9a
1 changed files with 7 additions and 7 deletions

View File

@ -208,13 +208,6 @@ class PluginManager
*/
public function registerPlugin($plugin, $pluginId = null)
{
/**
* Verify that the provided plugin should be registered
*/
if (!$plugin || $plugin->disabled || (self::$noInit && !$plugin->elevated)) {
return;
}
if (!$pluginId) {
$pluginId = $this->getIdentifier($plugin);
}
@ -230,6 +223,13 @@ class PluginManager
Lang::addNamespace($pluginNamespace, $langPath);
}
/**
* Verify that the provided plugin should be registered
*/
if (!$plugin || $plugin->disabled || (self::$noInit && !$plugin->elevated)) {
return;
}
/*
* Register plugin class autoloaders
*/