GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Description: An iPhoto plugin to export photos to Gallery.
Homepage: http://zwily.com/iphoto
Clone URL: git://github.com/zwily/iphototogallery.git
don't double-slash url to open gallery
zwily (author)
Thu Jun 07 19:25:07 -0700 2007
zwily (committer)
Sat May 03 09:01:47 -0700 2008
commit  03cd902cf0a855aa5ac4830fea886a7a3aa59650
tree    3221663ddf164d8ae144fc1fba4eb9bee18ca036
parent  d96c6eaed1ed95d163858b6a8070de4250eec11e
...
54
55
56
57
 
58
59
60
 
61
62
63
...
1055
1056
1057
1058
 
 
 
 
 
1059
1060
1061
...
54
55
56
 
57
58
59
 
60
61
62
63
...
1055
1056
1057
 
1058
1059
1060
1061
1062
1063
1064
1065
0
@@ -54,10 +54,10 @@ static int loggingIn;
0
 
0
 #pragma mark -
0
 
0
-- initWithExportImageObj:fp16 {
0
+- (id)initWithExportImageObj:(id)exportMgr {
0
     [NSThread prepareForInterThreadMessages];
0
     
0
- exportManager = fp16; // weak reference - we don't expect our ExportManager to disappear on us
0
+ exportManager = exportMgr; // weak reference - we don't expect our ExportManager to disappear on us
0
 
0
     [GrowlApplicationBridge setGrowlDelegate:self];
0
     
0
@@ -1055,7 +1055,11 @@ static int loggingIn;
0
             else {
0
                 // URLs look like this: http://example.com/gallery2/main.php?g2_view=core:ShowItem&g2_itemId=16
0
                 albumURLString = [NSMutableString stringWithString:[[currentGallery url] absoluteString]];
0
- [albumURLString appendFormat:@"/main.php?g2_view=core:ShowItem&g2_itemId=%@", [album name]];
0
+
0
+ // Take care of trailing slashes! (thx: Johann Richard)
0
+ if (![albumURLString hasSuffix:@"/"])
0
+ [albumURLString appendString:@"/"];
0
+ [albumURLString appendFormat:@"main.php?g2_view=core:ShowItem&g2_itemId=%@", [album name]];
0
             }
0
             [[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:albumURLString]];
0
         }

Comments

    No one has commented yet.