]> git.agnieray.net Git - galette.git/blobdiff - galette/templates/default/components/forms/picture.html.twig
Rely on static methods rather than constants comparison
[galette.git] / galette / templates / default / components / forms / picture.html.twig
index 71376ff6ab4846e9dee35422090e6829893bfc5c..176c3d821899723ca0e44c8705d5f38fedc3a307 100644 (file)
@@ -13,7 +13,7 @@
             <div class="description">
                 <div class="ui file action input">
                     <input id="photo_new" type="file" name="photo"/>
-                    <label for="photo_new" class="ui button{% if constant('GALETTE_MODE') == constant('\\Galette\\Core\\Galette::MODE_DEMO') %} disabled{% endif %}">
+                    <label for="photo_new" class="ui button{% if callstatic('\\Galette\\Core\\Galette', 'isDemo') %} disabled{% endif %}">
                         <i class="blue upload icon" aria-hidden="true"></i>
                         {% if member.hasPicture() == 1 %}{{ _T("Choose another file") }}{% else %}{{ _T("Choose a file") }}{% endif %}
                     </label>