From 7b3d8e1ff639c0ca17e5a46dd25c8d69810c5bc2 Mon Sep 17 00:00:00 2001 From: helgispbru Date: Thu, 4 Jun 2026 17:18:54 +0300 Subject: [PATCH] =?UTF-8?q?=D0=BD=D0=B5=20=D0=BF=D0=BE=D0=BA=D0=B0=D0=B7?= =?UTF-8?q?=D1=8B=D0=B2=D0=B0=D1=82=D1=8C=20=D0=BF=D1=80=D0=B5=D0=B2=D1=8C?= =?UTF-8?q?=D1=8E=20=D0=B5=D1=81=D0=BB=D0=B8=20=D0=BD=D0=B5=20=D0=BA=D0=B0?= =?UTF-8?q?=D1=80=D1=82=D0=B8=D0=BD=D0=BA=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/functions/actions/mutate_content.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/core/functions/actions/mutate_content.php b/core/functions/actions/mutate_content.php index 7f28e366f0..1b210331cf 100644 --- a/core/functions/actions/mutate_content.php +++ b/core/functions/actions/mutate_content.php @@ -892,11 +892,13 @@ function renderFormElement( ]); } } - $field_html .= ' -
-
- -
'; + $field_html .= ''; + if (file_exists(MODX_BASE_PATH . $field_value)) { + $field_html .= '
+
+ +
'; + } break; case "file": // handles the input of file uploads /* Modified by Timon for use with resource browser */