From fb8eb7bfbcb9770a0cda29e5ddc80c7681ae9f0b Mon Sep 17 00:00:00 2001 From: Aaron Parecki Date: Sat, 9 May 2015 21:14:02 +0200 Subject: [PATCH] attempt to fix weird appcache bug --- controllers/controllers.php | 2 +- views/new-post.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/controllers/controllers.php b/controllers/controllers.php index 8ccde89..87e11d6 100644 --- a/controllers/controllers.php +++ b/controllers/controllers.php @@ -225,7 +225,7 @@ $app->post('/post', function() use($app) { } }); -$app->get('/new/options', function() use($app) { +$app->get('/options', function() use($app) { if($user=require_login($app)) { $params = $app->request()->params(); diff --git a/views/new-post.php b/views/new-post.php index 8767024..3115a42 100644 --- a/views/new-post.php +++ b/views/new-post.php @@ -94,7 +94,7 @@ $(function(){ navigator.geolocation.getCurrentPosition(function(position){ - $.get('/new/options', { + $.get('/options', { latitude: position.coords.latitude, longitude: position.coords.longitude }, function(response) {