summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorstefan.r2016-10-05 18:36:59 (GMT)
committerstefan.r2016-10-05 18:36:59 (GMT)
commit18e46dc4fa0eb263617f36d442c6c6d3ea1c3169 (patch)
tree8528f3cf2dbd79fd3e4ade2b2344b9bd6eb24f5b
parent3e26b6e847e7319f48c4eb72a37bf2b9594e8b82 (diff)
Issue #2497259 by David_Rothstein: system_region_list() unnecessarily translates region names
-rw-r--r--modules/system/system.module3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/system/system.module b/modules/system/system.module
index 6298622..59087c8 100644
--- a/modules/system/system.module
+++ b/modules/system/system.module
@@ -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) : '';
}
/**