|
@@ -983,9 +983,9 @@ function add_edit_template() {
|
|
|
|
|
|
// Adding an extra field: a preview of the image that is currently used.
|
|
|
if (!empty($row['image'])) {
|
|
|
- $form->addElement('static', 'template_image_preview', '', '<img src="'.api_get_path(WEB_PATH).'home/default_platform_document/template_thumb/'.$row['image'].'" alt="'.get_lang('TemplatePreview').'"/>');
|
|
|
+ $form->addElement('static', 'template_image_preview', '', '<img src="'.api_get_path(WEB_APP_PATH).'home/default_platform_document/template_thumb/'.$row['image'].'" alt="'.get_lang('TemplatePreview').'"/>');
|
|
|
} else {
|
|
|
- $form->addElement('static', 'template_image_preview', '', '<img src="'.api_get_path(WEB_PATH).'home/default_platform_document/template_thumb/noimage.gif" alt="'.get_lang('NoTemplatePreview').'"/>');
|
|
|
+ $form->addElement('static', 'template_image_preview', '', '<img src="'.api_get_path(WEB_APP_PATH).'home/default_platform_document/template_thumb/noimage.gif" alt="'.get_lang('NoTemplatePreview').'"/>');
|
|
|
}
|
|
|
|
|
|
// Setting the information of the template that we are editing.
|