[pal-cvs 2894] [638] modified advertisingPath.

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2007年 10月 18日 (木) 13:29:24 JST


Revision: 638
          http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=pal&view=rev&rev=638
Author:   shinsuke
Date:     2007-10-18 13:29:24 +0900 (Thu, 18 Oct 2007)

Log Message:
-----------
modified advertisingPath.

Modified Paths:
--------------
    advertising/trunk/src/main/java/jp/sf/pal/advertising/portlet/AdvertisingPortlet.java


-------------- next part --------------
Modified: advertising/trunk/src/main/java/jp/sf/pal/advertising/portlet/AdvertisingPortlet.java
===================================================================
--- advertising/trunk/src/main/java/jp/sf/pal/advertising/portlet/AdvertisingPortlet.java	2007-10-18 00:22:30 UTC (rev 637)
+++ advertising/trunk/src/main/java/jp/sf/pal/advertising/portlet/AdvertisingPortlet.java	2007-10-18 04:29:24 UTC (rev 638)
@@ -77,8 +77,11 @@
         if (advertisingPath == null) {
             advertisingPath = getPortletContext().getRealPath(
                     DEFAULT_ADVERTISING_PATH + advertisingScope);
-        } else if (!advertisingPath.endsWith("/")) {
-            advertisingPath = advertisingPath + "/";
+        } else {
+            if (!advertisingPath.endsWith("/")) {
+                advertisingPath = advertisingPath + "/";
+            }
+            advertisingPath = advertisingPath + advertisingScope;
         }
 
         // set refresh time


pal-cvs メーリングリストの案内
Back to archive index