Skip to content

Commit f9b0106

Browse files
committed
fixed branding issues
1 parent b797bc5 commit f9b0106

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 1.0.0-RC2
2+
* [BugFix] Fixed Unity Branding where Array were not being merged
3+
14
## 1.0.0-RC1
25
* [Feature] Admins can now access the web portal as a separate user
36
* [Feature] Added account details to account settings page

config/branding/overrides/unity.uri.edu.ini

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
[site]
22
url = "https://unity.uri.edu/"
3-
docs_url = "https://docs.unity.uri.edu/"
43

54
[colors]
65
light_background = "#ffffff"
@@ -16,9 +15,10 @@ accent_2 = "#002b56"
1615
accent_disabled = "#80bbff"
1716
accent_foreground = "#ffffff"
1817

19-
[support]
20-
21-
2218
[mail]
2319
support = "[email protected]"
24-
20+
21+
22+
[menuitems] ; menu items, add a label and link for each
23+
labels[] = "Documentation"
24+
links[] = "https://docs.unity.uri.edu/"

resources/lib/UnityBranding.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ public static function getBranding($branding_loc)
1111

1212
$branding_override = $branding_loc . "/overrides/" . $_SERVER['HTTP_HOST'] . ".ini";
1313
if (file_exists($branding_override)) {
14-
$override_config = parse_ini_file($branding_override);
15-
$BRANDING = array_merge($BRANDING, $override_config);
14+
$override_config = parse_ini_file($branding_override, true);
15+
$BRANDING = array_replace_recursive($BRANDING, $override_config);
1616
}
1717

1818
return $BRANDING;

0 commit comments

Comments
 (0)