mirror of https://github.com/joomla/joomla-cms.git
Use a sensible default if none is found (#36692)
* Use a sensible default if none is found Signed-off-by: Roland Dalmulder <contact@rolandd.com> * Phase 1 convert BRANCH to PSR-12 * Phase 2 convert BRANCH to PSR-12 --------- Signed-off-by: Roland Dalmulder <contact@rolandd.com>
This commit is contained in:
parent
4132f18a1e
commit
708b1eaa8a
|
@ -366,7 +366,7 @@ class ModuleAdapter extends InstallerAdapter
|
|||
$source = $path . '/' . $folder;
|
||||
}
|
||||
|
||||
$client = (string) $this->getManifest()->attributes()->client;
|
||||
$client = (string) $this->getManifest()->attributes()->client ?: 'site';
|
||||
$this->doLoadLanguage($extension, $source, \constant('JPATH_' . strtoupper($client)));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue