roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From snoopd...@apache.org
Subject svn commit: r985009 - in /roller/trunk/weblogger-web/src/main: java/org/apache/roller/weblogger/ui/struts2/editor/EntryAddWithMediaFile.java webapp/WEB-INF/jsps/editor/MediaFileAddSuccess.jsp
Date Thu, 12 Aug 2010 22:01:44 GMT
Author: snoopdave
Date: Thu Aug 12 22:01:44 2010
New Revision: 985009

URL: http://svn.apache.org/viewvc?rev=985009&view=rev
Log:
Fixinfg https://issues.apache.org/jira/browse/ROL-1867

Create post from post-upload page fails

Modified:
    roller/trunk/weblogger-web/src/main/java/org/apache/roller/weblogger/ui/struts2/editor/EntryAddWithMediaFile.java
    roller/trunk/weblogger-web/src/main/webapp/WEB-INF/jsps/editor/MediaFileAddSuccess.jsp

Modified: roller/trunk/weblogger-web/src/main/java/org/apache/roller/weblogger/ui/struts2/editor/EntryAddWithMediaFile.java
URL: http://svn.apache.org/viewvc/roller/trunk/weblogger-web/src/main/java/org/apache/roller/weblogger/ui/struts2/editor/EntryAddWithMediaFile.java?rev=985009&r1=985008&r2=985009&view=diff
==============================================================================
--- roller/trunk/weblogger-web/src/main/java/org/apache/roller/weblogger/ui/struts2/editor/EntryAddWithMediaFile.java
(original)
+++ roller/trunk/weblogger-web/src/main/java/org/apache/roller/weblogger/ui/struts2/editor/EntryAddWithMediaFile.java
Thu Aug 12 22:01:44 2010
@@ -73,8 +73,9 @@ public class EntryAddWithMediaFile exten
 
                     if (mediaFile.isImageFile()) {
                         link = "<p>" + mediaFile.getName() + "</p>";
-                        link += "<a href='<url>'><img src='<url>' alt='<name>'
width='<width>' height='<height>'></img></a>";
-                        link = link.replace("<url>", mediaFile.getThumbnailURL())
+                        link += "<a href='<url>'><img src='<urlt>' alt='<name>'
width='<width>' height='<height>'></img></a>";
+                        link = link.replace("<url>", mediaFile.getPermalink())
+                                   .replace("<urlt>", mediaFile.getThumbnailURL())
                                    .replace("<name>", mediaFile.getName())
                                    .replace("<width>", ""+mediaFile.getThumbnailWidth())
                                    .replace("<height>", ""+mediaFile.getThumbnailHeight());

Modified: roller/trunk/weblogger-web/src/main/webapp/WEB-INF/jsps/editor/MediaFileAddSuccess.jsp
URL: http://svn.apache.org/viewvc/roller/trunk/weblogger-web/src/main/webapp/WEB-INF/jsps/editor/MediaFileAddSuccess.jsp?rev=985009&r1=985008&r2=985009&view=diff
==============================================================================
--- roller/trunk/weblogger-web/src/main/webapp/WEB-INF/jsps/editor/MediaFileAddSuccess.jsp
(original)
+++ roller/trunk/weblogger-web/src/main/webapp/WEB-INF/jsps/editor/MediaFileAddSuccess.jsp
Thu Aug 12 22:01:44 2010
@@ -71,6 +71,7 @@
 <s:form id="entry" action="entryAddWithMediaFile">
     <s:hidden name="weblog" />
     <s:hidden name="enclosureUrl" id="enclosureUrl" />
+    <input type="hidden" name="type" value="weblog" />
 
 
     <s:if test="newImages.size() > 0">



Mime
View raw message