mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-13 15:57:12 +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 parent
5adaba3ca9
commit
fb9ac84533
7 files changed
+22
-5
No files matched your search
@@ -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