mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-02 18:15:26 +00:00
Monotone-Parent: f9a04cc4832d7c1ca8d70b594faba3c5a0eda334
Monotone-Revision: f3dd7372c4f74c5e1e309b528107e222964ca70b Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2009-11-10T21:39:40 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
2009-11-10 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* UI/SOGoUI/UIxComponent.m (-applicationPath): new method that
|
||||
really returns the name of the WO application.
|
||||
(-modulePath): renamed the old applicationPath method to be more
|
||||
accurate about its purpose.
|
||||
|
||||
2009-11-07 Ludovic Marcotte <lmarcotte@inverse.ca>
|
||||
|
||||
* SoObjects/SOGo/SOGoCache.m - if we get a JSON
|
||||
|
||||
@@ -632,7 +632,7 @@
|
||||
}
|
||||
|
||||
if ([[[[self context] request] formValueForKey: @"nojs"] intValue])
|
||||
result = [self redirectToLocation: [self applicationPath]];
|
||||
result = [self redirectToLocation: [self modulePath]];
|
||||
else
|
||||
{
|
||||
jsRefreshMethod
|
||||
|
||||
@@ -235,7 +235,7 @@
|
||||
{
|
||||
[co save];
|
||||
if ([[[[self context] request] formValueForKey: @"nojs"] intValue])
|
||||
result = [self redirectToLocation: [self applicationPath]];
|
||||
result = [self redirectToLocation: [self modulePath]];
|
||||
else
|
||||
{
|
||||
jsRefreshMethod
|
||||
|
||||
@@ -58,7 +58,7 @@ static NSArray *supportedLanguages = nil;
|
||||
|
||||
- (NSString *) connectURL
|
||||
{
|
||||
return [NSString stringWithFormat: @"%@connect", [self applicationPath]];
|
||||
return [NSString stringWithFormat: @"%@/connect", [self applicationPath]];
|
||||
}
|
||||
|
||||
/* actions */
|
||||
|
||||
@@ -60,7 +60,8 @@
|
||||
- (NSString *)ownMethodName;
|
||||
|
||||
- (NSString *)userFolderPath;
|
||||
- (NSString *) applicationPath;
|
||||
- (NSString *)applicationPath;
|
||||
- (NSString *)modulePath;
|
||||
|
||||
- (NSString *)ownPath;
|
||||
- (NSString *)relativePathToUserFolderSubPath:(NSString *)_sub;
|
||||
|
||||
@@ -328,6 +328,15 @@ static BOOL uixDebugEnabled = NO;
|
||||
}
|
||||
|
||||
- (NSString *) applicationPath
|
||||
{
|
||||
NSString *appName;
|
||||
|
||||
appName = [[context request] applicationName];
|
||||
|
||||
return [NSString stringWithFormat: @"/%@", appName];
|
||||
}
|
||||
|
||||
- (NSString *) modulePath
|
||||
{
|
||||
SOGoObject *currentClient, *parent;
|
||||
BOOL found;
|
||||
|
||||
@@ -113,7 +113,7 @@
|
||||
<div id="javascriptSafetyNet"><!-- space --></div>
|
||||
|
||||
<script type="text/javascript">
|
||||
var ApplicationBaseURL = '<var:string value="applicationPath"/>';
|
||||
var ApplicationBaseURL = '<var:string value="modulePath"/>';
|
||||
var ResourcesURL = '<var:string value="applicationPath"/>.woa/WebServerResources';
|
||||
<var:if condition="isSuperUser"
|
||||
>var IsSuperUser = true;
|
||||
|
||||
Reference in New Issue
Block a user