Allow disabled plugin's translations to load for display translations on system pages
This commit is contained in:
parent
da4f1705ca
commit
8b9c001b9a
|
|
@ -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
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in New Issue