diff --git a/Foundation/CPURL.j b/Foundation/CPURL.j index dd46d9a8e..25dbb7d5a 100644 --- a/Foundation/CPURL.j +++ b/Foundation/CPURL.j @@ -196,8 +196,8 @@ var CPURLURLStringKey = @"CPURLURLStringKey", - (id)initWithCoder:(CPCoder)aCoder { - return [self initWithURLString:[aCoder decodeObjectForKey:CPURLURLStringKey] - baseURL:[aCoder decodeObjectForKey:CPURLBaseURLKey]]; + return [self initWithString:[aCoder decodeObjectForKey:CPURLURLStringKey] + relativeToURL:[aCoder decodeObjectForKey:CPURLBaseURLKey]]; } - (void)encodeWithCoder:(CPCoder)aCoder