Skip to content

Commit a0d8a63

Browse files
committed
Small code improvements
1 parent 491d223 commit a0d8a63

2 files changed

Lines changed: 4 additions & 7 deletions

File tree

styles/prosilver/template/index_body.html

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ <h2>{{ lang('TOP_IDEAS') }}</h2>
2323
</dl>
2424
</li>
2525
</ul>
26-
{% set ideas = top_ideas %}
27-
{% include '@phpbb_ideas/index_list.html' %}
26+
{% include '@phpbb_ideas/index_list.html' with {ideas: top_ideas} %}
2827
</div>
2928
</div>
3029

@@ -45,8 +44,7 @@ <h2>{{ lang('LATEST_IDEAS') }}</h2>
4544
</dl>
4645
</li>
4746
</ul>
48-
{% set ideas = latest_ideas %}
49-
{% include '@phpbb_ideas/index_list.html' %}
47+
{% include '@phpbb_ideas/index_list.html' with {ideas: latest_ideas} %}
5048
</div>
5149
</div>
5250

@@ -67,8 +65,7 @@ <h2>{{ lang('IMPLEMENTED_IDEAS') }}</h2>
6765
</dl>
6866
</li>
6967
</ul>
70-
{% set ideas = implemented_ideas %}
71-
{% include '@phpbb_ideas/index_list.html' %}
68+
{% include '@phpbb_ideas/index_list.html' with {ideas: implemented_ideas} %}
7269
</div>
7370
</div>
7471

textreparser/plugins/clean_old_ideas.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ protected function get_records_by_range_query($min_id, $max_id)
9090
/**
9191
* {@inheritdoc}
9292
*/
93-
protected function reparse_record(array $record)
93+
protected function reparse_record(array $record, bool $force_bbcode_reparsing = false)
9494
{
9595
$text = $record['text'];
9696

0 commit comments

Comments
 (0)