ensure the browser does not wrap the photo index title text
[phpfspot.git] / rpc.php
diff --git a/rpc.php b/rpc.php
index 0bdccc9fde733c14972b02f1d8eaab7ab64635cb..80c80b1c53d9225a0c787a688e5040d449cdee15 100644 (file)
--- a/rpc.php
+++ b/rpc.php
@@ -27,14 +27,12 @@ class PHPFSPOT_RPC {
 
    public function __construct()
    {
-
       session_start();
 
    } // __construct()
 
    function process_ajax_request()
    {
-
       require_once 'HTML/AJAX/Server.php';
 
       $server = new HTML_AJAX_Server();
@@ -80,6 +78,7 @@ class PHPFSPOT_RPC {
 
          case 'show_photo_index':
 
+            $_SESSION['begin_with'] = $_GET['begin_with'];
             $fspot->showPhotoIndex();
             break;
    
@@ -93,9 +92,9 @@ class PHPFSPOT_RPC {
             $fspot->showCredits();
             break;
 
-         case 'search':
+         case 'tag_search':
 
-            $fspot->startSearch($_GET['for']);
+            $fspot->startTagSearch($_GET['for']);
             break;
 
       }