You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@vcl.apache.org by jf...@apache.org on 2011/10/27 20:16:28 UTC
svn commit: r1189913 - /incubator/vcl/trunk/web/.ht-inc/images.php
Author: jfthomps
Date: Thu Oct 27 18:16:28 2011
New Revision: 1189913
URL: http://svn.apache.org/viewvc?rev=1189913&view=rev
Log:
VCL-519
New-line control bug in an Edit Image page
applied patch from JIRA issue contributed by Toru Yokoyama
modified editOrAddImage - replace <br> tag with \n for description and usage notes for displaying the the text areas
Modified:
incubator/vcl/trunk/web/.ht-inc/images.php
Modified: incubator/vcl/trunk/web/.ht-inc/images.php
URL: http://svn.apache.org/viewvc/incubator/vcl/trunk/web/.ht-inc/images.php?rev=1189913&r1=1189912&r2=1189913&view=diff
==============================================================================
--- incubator/vcl/trunk/web/.ht-inc/images.php (original)
+++ incubator/vcl/trunk/web/.ht-inc/images.php Thu Oct 27 18:16:28 2011
@@ -867,6 +867,9 @@ function editOrAddImage($state) {
$data['usage'] = $tmp['usage'];
}
+ $data['description'] = preg_replace("/<br>/", "\n", $data['description']);
+ $data['usage'] = preg_replace("/<br>/", "\n", $data['usage']);
+
print "<FORM action=\"" . BASEURL . SCRIPT . "\" method=post>\n";
print "<DIV align=center>\n";
if($state)