issue106, set link-id for prev- and next-link in photo index view
[phpfspot.git] / rpc.php
diff --git a/rpc.php b/rpc.php
index 4bb297331abbad7bff7d38a9e2c66704f8788743..f850dad42e8d61306861f85639965bfe274b0942 100644 (file)
--- a/rpc.php
+++ b/rpc.php
@@ -99,6 +99,9 @@ class PHPFSPOT_RPC {
             else {
                unset($_SESSION['begin_with']);
             }
+            if(isset($_GET['last_photo']) && is_numeric($_GET['last_photo']))
+               $_SESSION['last_photo'] = $_GET['last_photo'];
+
             $fspot->showPhotoIndex();
             break;
    
@@ -107,7 +110,7 @@ class PHPFSPOT_RPC {
             break;
 
          case 'search':
-            print $fspot->startSearch($_GET['for']);
+            print $fspot->startSearch();
             break;
 
          case 'update_sort_order':