Skip to content

Commit a05d0ba

Browse files
authored
Merge pull request #509 from topcoder-platform/issues-505
Issues-505: Use global primary color for email action button, Issues-507: Use default order of forums from settings
2 parents 2b654ab + e28a3c9 commit a05d0ba

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

vanilla/applications/dashboard/views/email/email-basic.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@
157157
margin-bottom: 15px'>{$email.message}</p>
158158
{if $email.button}
159159
<div style="margin: 0;padding: 0; text-align: center">
160-
<a class="button" href="{$email.button.url}" style="margin: 0;padding: 0;color: {$email.button.textColor};
160+
<a class="button" href="{$email.button.url}" style="margin: 0;padding: 0;color: #137d60;
161161
cursor: pointer;display: inline-block;" rel=" noopener noreferrer" target="_blank">{$email.button.text}</a>
162162
</div>
163163
{/if}

vanilla/applications/vanilla/controllers/class.categoriescontroller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ public function all($Category = '', $displayAs = '') {
614614
}
615615
// FIX: https://github.com/topcoder-platform/forums/issues/422
616616
// Sorting for Flat type in SQL
617-
if($displayAs != 'Flat') {
617+
if($displayAs != 'Flat' && $Category) {
618618
if ($this->data('CategorySort')) {
619619
if ($this->data('CategorySort') == self::SORT_OLDEST_POST) {
620620
usort($categoryTree, function ($a, $b) {

0 commit comments

Comments
 (0)