don't specify localPath (as otherwise it borks if you're not actually at /potlatch2...
authorRichard Fairhurst <richard@systemed.net>
Tue, 1 Jun 2010 13:27:34 +0000 (13:27 +0000)
committerRichard Fairhurst <richard@systemed.net>
Tue, 1 Jun 2010 13:27:34 +0000 (13:27 +0000)
net/systemeD/potlatch2/save/SaveManager.as

index d591d67b22d29cbe05cd6f991837dc488f16ab19..e3fcee3660f2e70c5465c7bbd63efa3791342869 100644 (file)
@@ -35,7 +35,7 @@ package net.systemeD.potlatch2.save {
             var secret:String = Connection.getParam("oauth_token_secret", null);
             
             if ( key == null || secret == null ) {
-                var data:Object = SharedObject.getLocal("access_token", "/potlatch2.swf").data;
+                var data:Object = SharedObject.getLocal("access_token").data;
                 key = data["oauth_token"];
                 secret = data["oauth_token_secret"];
             }
@@ -64,7 +64,7 @@ package net.systemeD.potlatch2.save {
             var listener:Function = function(event:Event):void {
                 accessToken = oauthPanel.accessToken;
                 if ( oauthPanel.shouldRemember ) {
-                    var obj:SharedObject = SharedObject.getLocal("access_token", "/potlatch2.swf");
+                    var obj:SharedObject = SharedObject.getLocal("access_token");
                     obj.setProperty("oauth_token", accessToken.key);
                     obj.setProperty("oauth_token_secret", accessToken.secret);
                     obj.flush();