Closed (fixed)
Project:
Regions
Version:
6.x-1.x-dev
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Jan 2012 at 06:31 UTC
Updated:
14 Mar 2012 at 18:30 UTC
line 127 states:
$theme_regions = array_map('t', $info['original_regions']);
This assumes that the theme registry has been built / isn't in a weird state where it will be rebuilt on an admin page. This occurs when creating an installation profile as most flush all cached information.
Proposed solution:
if (isset($info['original_regions'])) {
$theme_regions = array_map('t', $info['original_regions']);
}
else {
$theme_regions = array_map('t', $info['regions']);
}
As the "original" regions code was ment for repairing themes this will still work, just not on the first few page loads of a newly installed distribution. Most likely you aren't going to make the default theme one that has blocks that aren't taken into account on install so I think this solution is "good enough" unless anyone can think of a better one.
Comments
Comment #1
btopro commentedcommitted to dev