Skip to content

Commit ca1a8e6

Browse files
authored
[5.2] Load the namespace from the cached manifest (#44737)
1 parent 664f199 commit ca1a8e6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

libraries/src/Component/ComponentHelper.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ protected static function load()
383383
$loader = function () {
384384
$db = Factory::getDbo();
385385
$query = $db->getQuery(true)
386-
->select($db->quoteName(['extension_id', 'element', 'params', 'enabled'], ['id', 'option', null, null]))
386+
->select($db->quoteName(['extension_id', 'element', 'params', 'enabled', 'manifest_cache'], ['id', 'option', null, null, null]))
387387
->from($db->quoteName('#__extensions'))
388388
->where(
389389
[
@@ -397,6 +397,9 @@ protected static function load()
397397
$db->setQuery($query);
398398

399399
foreach ($db->getIterator() as $component) {
400+
$component->namespace = (new Registry($component->manifest_cache))->get('namespace');
401+
unset($component->manifest_cache);
402+
400403
$components[$component->option] = new ComponentRecord((array) $component);
401404
}
402405

0 commit comments

Comments
 (0)