]> git.mxchange.org Git - friendica.git/commitdiff
Reintroduce is_string modifier in addons/connector templates
authorHypolite Petovan <hypolite@mrpetovan.com>
Tue, 11 Jul 2023 13:00:41 +0000 (09:00 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Tue, 11 Jul 2023 13:00:41 +0000 (09:00 -0400)
- Address https://github.com/friendica/friendica/issues/13157#issuecomment-1606003698

view/templates/settings/addons/connector.tpl
view/theme/frio/templates/settings/addons/connector.tpl

index adf615f9efb25819c166e55c3bd7a1a0d8460114..c06c78195b8229a4d411d04462cc7dda66cd2c60 100644 (file)
@@ -9,7 +9,7 @@
        <div class="clear"></div>
 {{if $submit}}
        <div class="settings-submit-wrapper panel-footer">
-    {{if $submit}}
+    {{if $submit|is_string}}
                <button type="submit" name="{{$connector}}-submit" class="btn btn-primary settings-submit" value="{{$submit}}">{{$submit}}</button>
     {{else}}
         {{$count = 1}}
index 23e796fc59a61be140c682aa62d852d3337e628e..aee0e28454156dc0aeddf789820a7a627fd8962a 100644 (file)
@@ -11,7 +11,7 @@
                </div>
                <div class="panel-footer">
 {{if $submit}}
-    {{if $submit}}
+    {{if $submit|is_string}}
                        <button type="submit" name="{{$connector}}-submit" class="btn btn-primary settings-submit" value="{{$submit}}">{{$submit}}</button>
     {{else}}
         {{$count = 1}}