Skip to content

Commit

Permalink
BUGFIX: fixed custom sharers plist file reading
Browse files Browse the repository at this point in the history
  • Loading branch information
VilemKurz committed May 25, 2012
1 parent f9459f5 commit a8976fd
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Classes/ShareKit/Core/SHK.m
Expand Up @@ -506,8 +506,17 @@ + (NSString *)shareKitLibraryBundlePath
+ (NSDictionary *)sharersDictionary
{
if (sharersDictionary == nil)

{
sharersDictionary = [[NSDictionary dictionaryWithContentsOfFile:[[SHK shareKitLibraryBundlePath] stringByAppendingPathComponent:SHKCONFIG(sharersPlistName)]] retain];
}

//if user sets his own sharers plist
if (sharersDictionary == nil) {§
sharersDictionary = [[NSDictionary dictionaryWithContentsOfFile:[[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:SHKCONFIG(sharersPlistName)]] retain];
}

NSAssert(sharersDictionary != nil, @"ShareKit: You do not have properly set sharersPlistName");


return sharersDictionary;
}
Expand Down

0 comments on commit a8976fd

Please sign in to comment.