See ChangeLog
Monotone-Parent: 3351ea272262d02bca8c04d35cc8b34b0a42118e Monotone-Revision: f6c9b26800c5e0d41709266d8182530fe96ca9b6 Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2009-03-25T21:43:56 Monotone-Branch: ca.inverse.sogomaint-2.0.2
parent
56df95bbac
commit
f6b9384fff
|
@ -1,5 +1,9 @@
|
|||
2009-03-25 Francis Lachapelle <flachapelle@inverse.ca>
|
||||
|
||||
* UI/Common/UIxPageFrame.m ([UIxPageFrame -siteFavicon]): new
|
||||
method to allow the customization of the site favicon through the
|
||||
user defaults SOGoFaviconRelativeURL.
|
||||
|
||||
* SoObjects/SOGo/SOGoUser.m ([SOGoUser -language]): must retain
|
||||
the ivar language to avoid a crash if the language is retrieved
|
||||
from the user agent header returned by the browser.
|
||||
|
|
Binary file not shown.
|
@ -21,6 +21,7 @@
|
|||
|
||||
#import <Foundation/NSEnumerator.h>
|
||||
#import <Foundation/NSString.h>
|
||||
#import <Foundation/NSUserDefaults.h>
|
||||
|
||||
#import <NGObjWeb/WOResourceManager.h>
|
||||
|
||||
|
@ -31,8 +32,19 @@
|
|||
|
||||
#import "UIxPageFrame.h"
|
||||
|
||||
static NSString *siteFavicon = nil;
|
||||
|
||||
@implementation UIxPageFrame
|
||||
|
||||
+ (void) initialize
|
||||
{
|
||||
NSUserDefaults *ud;
|
||||
|
||||
ud = [NSUserDefaults standardUserDefaults];
|
||||
siteFavicon = [ud stringForKey: @"SOGoFaviconRelativeURL"];
|
||||
[siteFavicon retain];
|
||||
}
|
||||
|
||||
- (id) init
|
||||
{
|
||||
if ((self = [super init]))
|
||||
|
@ -168,6 +180,11 @@
|
|||
return (isPopup ? @"popup" : @"main");
|
||||
}
|
||||
|
||||
- (NSString *) siteFavicon
|
||||
{
|
||||
return (!siteFavicon ? [self urlForResourceFilename: @"sogo.ico"] : siteFavicon);
|
||||
}
|
||||
|
||||
/* page based JavaScript */
|
||||
|
||||
- (NSString *) _stringsForFramework: (NSString *) framework
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
<meta name="robots" content="stop" />
|
||||
<meta name="build" var:content="buildDate" />
|
||||
<link href="mailto:support@inverse.ca" rev="made" />
|
||||
<link rel="shortcut icon" rsrc:href="sogo.ico" type="image/x-icon" />
|
||||
<link rel="shortcut icon" var:href="siteFavicon" type="image/x-icon" />
|
||||
<link type="text/css" rel="stylesheet" rsrc:href="generic.css" />
|
||||
<link type="text/css" rel="stylesheet" rsrc:href="dtree.css" />
|
||||
<var:if condition="hasProductSpecificCSS"
|
||||
|
|
Loading…
Reference in New Issue