From: Richard Fairhurst Date: Tue, 1 Jun 2010 13:27:34 +0000 (+0000) Subject: don't specify localPath (as otherwise it borks if you're not actually at /potlatch2... X-Git-Tag: 0.5~430 X-Git-Url: https://git.openstreetmap.org/potlatch2.git/commitdiff_plain/e610cb26a827e34a4b5040efc9696a152b4ffdb5 don't specify localPath (as otherwise it borks if you're not actually at /potlatch2.swf) --- diff --git a/net/systemeD/potlatch2/save/SaveManager.as b/net/systemeD/potlatch2/save/SaveManager.as index d591d67b..e3fcee36 100644 --- a/net/systemeD/potlatch2/save/SaveManager.as +++ b/net/systemeD/potlatch2/save/SaveManager.as @@ -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();