]> git.mxchange.org Git - friendica.git/commitdiff
Remove direct call to is_string() from templates
authorHypolite Petovan <hypolite@mrpetovan.com>
Wed, 24 May 2023 02:09:55 +0000 (22:09 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Wed, 24 May 2023 02:09:55 +0000 (22:09 -0400)
- Address https://github.com/friendica/friendica/issues/12011#issuecomment-1523913027

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

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