aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPAppController.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-12-12 19:20:57 +0000
committerBibiko <bibiko@eva.mpg.de>2010-12-12 19:20:57 +0000
commitb2015bc3974c04557492bb4a698776824ab6689d (patch)
tree4a524f5614e919eb1968a649641371d36c281b36 /Source/SPAppController.m
parentafcf7c7886fdd17668fa29b38b491cf6b533b4df (diff)
downloadsequelpro-b2015bc3974c04557492bb4a698776824ab6689d.tar.gz
sequelpro-b2015bc3974c04557492bb4a698776824ab6689d.tar.bz2
sequelpro-b2015bc3974c04557492bb4a698776824ab6689d.zip
• made usage of more constants to avoid double-storing strings
• fixed JavaScript alert and confirm window in HTML output window
Diffstat (limited to 'Source/SPAppController.m')
-rw-r--r--Source/SPAppController.m8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/SPAppController.m b/Source/SPAppController.m
index a002f5cf..cf36d161 100644
--- a/Source/SPAppController.m
+++ b/Source/SPAppController.m
@@ -770,7 +770,7 @@
NSMutableDictionary *env = [NSMutableDictionary dictionary];
[env setObject:[infoPath stringByDeletingLastPathComponent] forKey:SPBundleShellVariableBundlePath];
[env setObject:bundleInputFilePath forKey:SPBundleShellVariableInputFilePath];
- [env setObject:SPBundleScopeGeneral forKey:SPBundleShellVariableScope];
+ [env setObject:SPBundleScopeGeneral forKey:SPBundleShellVariableBundleScope];
NSString *input = @"";
NSError *inputFileError = nil;
@@ -910,7 +910,7 @@
if(!currentQueryRange.length)
currentQueryRange = currentSelectionRange;
- [env setObject:SPBundleScopeInputField forKey:SPBundleShellVariableScope];
+ [env setObject:SPBundleScopeInputField forKey:SPBundleShellVariableBundleScope];
if(selfIsQueryEditor && [[firstResponder delegate] currentQueryRange].length)
[env setObject:[[firstResponder string] substringWithRange:[[firstResponder delegate] currentQueryRange]] forKey:SPBundleShellVariableCurrentQuery];
@@ -940,10 +940,10 @@
[env setObject:[sel componentsJoinedByString:@"\t"] forKey:SPBundleShellVariableSelectedRowIndices];
}
- [env setObject:SPBundleScopeDataTable forKey:SPBundleShellVariableScope];
+ [env setObject:SPBundleScopeDataTable forKey:SPBundleShellVariableBundleScope];
} else {
- [env setObject:SPBundleScopeGeneral forKey:SPBundleShellVariableScope];
+ [env setObject:SPBundleScopeGeneral forKey:SPBundleShellVariableBundleScope];
}
return env;
}