+2006-03-12 Helge Hess <helge.hess@opengroupware.org>
+
+ * WEResourceManager.m: minor code cleanups, log the flat template
+ subpath if it could not be found (v4.5.85)
+
2005-11-17 Helge Hess <helge.hess@opengroupware.org>
* v4.5.84
fhsName:@"templates/"] copy];
if (debugOn)
NSLog(@"template pathes: %@", templatePathes);
- if ([templatePathes count] == 0)
- NSLog(@"Note: found no directories containing flat templates.");
+ if (![templatePathes isNotEmpty]) {
+ NSLog(@"Note: found no directories containing flat templates (subpath=%@)",
+ [[self class] gsTemplatesSubpath]);
+ }
}
+ (NSArray *)availableThemes {
lthemes = [[[themes allObjects]
sortedArrayUsingSelector:@selector(compare:)] copy];
- if ([lthemes count] > 0) {
+ if ([lthemes isNotEmpty]) {
NSLog(@"Note: located themes: %@",
[lthemes componentsJoinedByString:@", "]);
}
}
- (id)initWithPath:(NSString *)_path {
- if ((self = [super initWithPath:_path])) {
+ if ((self = [super initWithPath:_path]) != nil) {
if ([WOApplication isCachingEnabled]) {
self->keyToComponentPath =
[[NSMutableDictionary alloc] initWithCapacity:128];