Jeremy D commited on 2021-08-19 07:01:51
Showing 1 changed files, with 2 additions and 0 deletions.
... | ... |
@@ -138,6 +138,8 @@ function integrate_display_buttons_solveTopic(&$buttons) |
138 | 138 |
if (!empty($modSettings['topicsolved_display_notice']) && $context['topicinfo']['solved'] && $context['board_solve']) |
139 | 139 |
$context['template_layers'][] = 'topicsolved_header'; |
140 | 140 |
|
141 |
+ // SMF 2.1 will still display the moderation menu in mobile mode because this can cause a non empty array that is filtred later by template_button_strip. |
|
142 |
+ if ($context['can_solve']) |
|
141 | 143 |
$context['mod_buttons']['solve'] = array( |
142 | 144 |
'test' => 'can_solve', |
143 | 145 |
'text' => empty($context['topicinfo']['solved']) ? 'solve_topic' : 'unsolve_topic', |
144 | 146 |