[advancedcontentfilter] Fix unknown function "current_theme"

pull/596/head
Hypolite Petovan 2018-05-01 08:39:45 -04:00
parent ea9ec0dadf
commit 37c4455c06
2 changed files with 2 additions and 1 deletions

View File

@ -201,6 +201,7 @@ function advancedcontentfilter_content(App $a)
} else { } else {
$t = get_markup_template('settings.tpl', 'addon/advancedcontentfilter/'); $t = get_markup_template('settings.tpl', 'addon/advancedcontentfilter/');
return replace_macros($t, [ return replace_macros($t, [
'$current_theme' => $a->getCurrentTheme(),
'$backtosettings' => L10n::t('Back to Addon Settings'), '$backtosettings' => L10n::t('Back to Addon Settings'),
'$title' => L10n::t('Advanced Content Filter'), '$title' => L10n::t('Advanced Content Filter'),
'$add_a_rule' => L10n::t('Add a Rule'), '$add_a_rule' => L10n::t('Add a Rule'),

View File

@ -48,7 +48,7 @@
<div class="modal-dialog" role="document"> <div class="modal-dialog" role="document">
<div class="modal-content"> <div class="modal-content">
<div class="modal-header"> <div class="modal-header">
{{if current_theme() == 'frio'}} {{if $current_theme == 'frio'}}
<button type="button" class="close" data-dismiss="modal" aria-label="{{$close}}" @click="showModal = false"><span aria-hidden="true">&times;</span></button> <button type="button" class="close" data-dismiss="modal" aria-label="{{$close}}" @click="showModal = false"><span aria-hidden="true">&times;</span></button>
{{/if}} {{/if}}
<h3 v-if="rule.id">{{$edit_the_rule}} "{{ rule.name }}"</h3> <h3 v-if="rule.id">{{$edit_the_rule}} "{{ rule.name }}"</h3>