View Issue Details

IDProjectCategoryView StatusLast Update
14759Bug reports[All Projects] Theme editorpublic2019-04-09 16:13
ReporterDenisChenuAssigned ToLouisGac 
PrioritynoneSeverityminor 
Status assignedResolutionopen 
Product Version3.17.x 
Target VersionFixed in Version 
Summary14759: Broken Theme API
Description

https://github.com/LimeSurvey/LimeSurvey/commit/42c1de610490ecf3431cb6193d3b4382ecd1e80d is an API broker

Steps To Reproduce

Import included theme : add or not a logo in theme

Additional Information

It's an API broker and an uneeded system : imageSrc return false for invalid image : it's clean , return ERROR : really not clean.

        {# Logo option #}
        {% if( aSurveyInfo.options.brandlogo == "on" or imageSrc("upload/surveys/"~processString("{SID}")~"/images/logo.png") ) %}
            <div class="{{ aSurveyInfo.class.navbarbrand }} logo-container hidden-xs"  {{ aSurveyInfo.attr.navbarbrand }}  >
                {% if(imageSrc("upload/surveys/"~processString("{SID}")~"/images/logo.png") ) %}
                    {{ image("upload/surveys/"~processString("{SID}")~"/images/logo.png", aSurveyInfo.name, {"class": "logo img-responsive"}) }}
                {% else %}
                  {{ image(aSurveyInfo.options.brandlogofile, aSurveyInfo.name, {"class": "logo img-responsive"}) }}
                {% endif %}
            </div>
        {% else %}
            <div class="{{ aSurveyInfo.class.navbarbrand }}"  {{ aSurveyInfo.attr.navbarbrand }} >
                {{ aSurveyInfo.name }}
            </div>
        {% endif %}
TagsNo tags attached.
Complete LimeSurvey version number (& build)3.17.2 github
I will donate to the project if issue is resolvedNo
Browsernot relevant
Database & DB-Versionnot relevant
Server OS (if known)not relevant
Webserver software & version (if known)not relevant
PHP Versionnot relevant

Activities

DenisChenu

DenisChenu

2019-04-09 16:13

developer   ~51429

Oups the zip



apiBroke_vanilla.zip (112,946 bytes)

Issue History

Date Modified Username Field Change
2019-04-09 16:13 DenisChenu New Issue
2019-04-09 16:13 DenisChenu Status new => assigned
2019-04-09 16:13 DenisChenu Assigned To => LouisGac
2019-04-09 16:13 DenisChenu File Added: apiBroke_vanilla.zip
2019-04-09 16:13 DenisChenu Note Added: 51429