]> git.mxchange.org Git - friendica-addons.git/commitdiff
[advancedcontentfilter] Fix unknown function "current_theme"
authorHypolite Petovan <mrpetovan@gmail.com>
Tue, 1 May 2018 12:39:45 +0000 (08:39 -0400)
committerHypolite Petovan <mrpetovan@gmail.com>
Tue, 1 May 2018 12:40:27 +0000 (08:40 -0400)
advancedcontentfilter/advancedcontentfilter.php
advancedcontentfilter/templates/settings.tpl

index 993c8b4c1da9d5d403419c2911142080b32e1f78..47ace1c2bd98c9b56f73439676b27941b34e3a78 100644 (file)
@@ -201,6 +201,7 @@ function advancedcontentfilter_content(App $a)
        } else {
                $t = get_markup_template('settings.tpl', 'addon/advancedcontentfilter/');
                return replace_macros($t, [
+                       '$current_theme' => $a->getCurrentTheme(),
                        '$backtosettings' => L10n::t('Back to Addon Settings'),
                        '$title' => L10n::t('Advanced Content Filter'),
                        '$add_a_rule' => L10n::t('Add a Rule'),
index b29c275b6455565c42a7ebd9f09dd0545d8ac540..813dc91991b18752749488fe22805ac27f9b5030 100644 (file)
@@ -48,7 +48,7 @@
                        <div class="modal-dialog" role="document">
                                <div class="modal-content">
                                        <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>
                {{/if}}
                                                <h3 v-if="rule.id">{{$edit_the_rule}} "{{ rule.name }}"</h3>