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:
Roland Dalmulder 2024-02-28 18:58:22 +01:00 committed by GitHub
parent 4132f18a1e
commit 708b1eaa8a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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)));
}
}