View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
04579 | Bug reports | Theme editor | public | 2010-09-06 11:38 | 2010-09-08 17:27 |
Reporter | DenisChenu | Assigned To | c_schmitz | ||
Priority | normal | Severity | minor | ||
Status | closed | Resolution | fixed | ||
Product Version | 1.90+ | ||||
Fixed in Version | 1.90+ | ||||
Summary | 04579: template preview url for personal template is bad | ||||
Description | When select a personal template in survey edit / presentation & navigation, url of preview is bad. waiting url $publicurl/upload/templates/templatename/preview.png | ||||
Steps To Reproduce | Select a personal template in presentation & navigation | ||||
Additional Information | Patch for survey url and default limesurvey instalation url : use of sGetTemplateURL function. | ||||
Tags | No tags attached. | ||||
Attached Files | patch.diff (1,083 bytes)
--- html_orig.php 2010-09-06 11:23:38.000000000 +0200 +++ html.php 2010-09-06 11:32:28.000000000 +0200 @@ -2625,7 +2625,7 @@ . "</li>\n"; $editsurvey .= "<li><label for='preview'>".$clang->gT("Template Preview:")."</label>\n" - . "<img alt='".$clang->gT("Template preview image")."' id='preview' src='$publicurl/templates/{$esrow['template']}/preview.png' />\n" + . "<img alt='".$clang->gT("Template preview image")."' id='preview' src='".sGetTemplateURL($esrow['template'])."/preview.png' />\n" . "</li>\n" ; //ALLOW SAVES @@ -3247,7 +3247,7 @@ $newsurvey .= "</select>\n" . "</li>\n" . "<li><label for='preview'>".$clang->gT("Template Preview:")."</label>\n" - . "<img alt='".$clang->gT("Template Preview:")."' id='preview' src='$publicurl/templates/{$defaulttemplate}/preview.png' />\n" + . "<img alt='".$clang->gT("Template Preview:")."' id='preview' src='".sGetTemplateURL($defaulttemplate)."/preview.png' />\n" . "</li>\n"; //ALLOW SAVES | ||||
Bug heat | 10 | ||||
Complete LimeSurvey version number (& build) | 9089 | ||||
I will donate to the project if issue is resolved | |||||
Browser | all | ||||
Database type & version | MySQL 5.1.44 | ||||
Server OS (if known) | Linux | ||||
Webserver software & version (if known) | apache | ||||
PHP Version | PHH 5.2 | ||||
Maybe bug 4569 is for same think |
|
Thank you! Next time don't hesitate to commit it yourself! |
|
I can't Carlsten, i don't have write acces on svn (i think). I don't hesitate for this little patch. only for big modification :) |
|
Fix was released in 1.90+ version. |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2010-09-06 11:38 | DenisChenu | New Issue | |
2010-09-06 11:38 | DenisChenu | File Added: patch.diff | |
2010-09-06 11:39 | DenisChenu | Issue Monitored: DenisChenu | |
2010-09-06 11:40 | DenisChenu | Note Added: 12764 | |
2010-09-07 14:27 | c_schmitz | Assigned To | => c_schmitz |
2010-09-07 14:27 | c_schmitz | Status | new => assigned |
2010-09-07 14:27 | c_schmitz | Status | assigned => resolved |
2010-09-07 14:27 | c_schmitz | Fixed in Version | => 1.90+ |
2010-09-07 14:27 | c_schmitz | Resolution | open => fixed |
2010-09-07 14:28 | c_schmitz | Relationship added | has duplicate 04569 |
2010-09-07 14:29 | c_schmitz | Note Added: 12774 | |
2010-09-07 15:58 | DenisChenu | Note Added: 12775 | |
2010-09-08 10:34 | DenisChenu | Issue End Monitor: DenisChenu | |
2010-09-08 17:27 | c_schmitz | Note Added: 12782 | |
2010-09-08 17:27 | c_schmitz | Status | resolved => closed |
2015-12-11 14:40 | c_schmitz | Category | Templates => Theme editor |