Skip to content

Commit

Permalink
Revert "phpBB 4 updated changes" Iconify stuff
Browse files Browse the repository at this point in the history
This reverts commit ff00a58.

Signed-off-by: Matt Friedman <[email protected]>
  • Loading branch information
iMattPro committed Feb 13, 2024
1 parent 18e716e commit 3d57b1c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion event/listener.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public function load_language_on_setup($event)
public function add_page_header_link()
{
$this->template->assign_vars(array(
'BOARDRULES_FONT_ICON' => $this->config['boardrules_font_icon'],
'BOARDRULES_FONT_ICON' => $this->config['boardrules_font_icon'] && strpos($this->config['boardrules_font_icon'], ':') === false ? 'fa:' . $this->config['boardrules_font_icon'] : $this->config['boardrules_font_icon'],
'S_BOARDRULES_LINK_ENABLED' => !empty($this->config['boardrules_enable']) && !empty($this->config['boardrules_header_link']),
'S_BOARDRULES_AT_REGISTRATION' => !empty($this->config['boardrules_enable']) && !empty($this->config['boardrules_require_at_registration']),
'U_BOARDRULES' => $this->controller_helper->route('phpbb_boardrules_main_controller'),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% if S_BOARDRULES_LINK_ENABLED%}
<li data-last-responsive="true">
<a href="{{ U_BOARDRULES }}" rel="help" title="{{ lang('BOARDRULES_TITLE') }}" role="menuitem">
{% if BOARDRULES_FONT_ICON %}{{ Icon('font', BOARDRULES_FONT_ICON, lang('BOARDRULES'), false) }}{% endif %}
{% if BOARDRULES_FONT_ICON %}{{ Icon('iconify', BOARDRULES_FONT_ICON, lang('BOARDRULES'), false) }}{% endif %}
</a>
</li>
{% endif %}

0 comments on commit 3d57b1c

Please sign in to comment.