Commit 18e46dc4 authored by stefan.r's avatar stefan.r

Issue #2497259 by David_Rothstein: system_region_list() unnecessarily translates region names

parent 3e26b6e8
......@@ -2760,8 +2760,7 @@ function system_system_info_alter(&$info, $file, $type) {
*/
function system_default_region($theme) {
$regions = system_region_list($theme, REGIONS_VISIBLE, FALSE);
$region_0 = current($regions);
return isset($region_0) ? $region_0 : '';
return $regions ? reset($regions) : '';
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment