Fixes a bug in pagination url, a=chris

Chris Pollett [2011-09-09 00:Sep:th]
Fixes a bug in pagination url, a=chris
Filename
controllers/search_controller.php
views/search_view.php
diff --git a/controllers/search_controller.php b/controllers/search_controller.php
index cc5896208..f9acf0f55 100755
--- a/controllers/search_controller.php
+++ b/controllers/search_controller.php
@@ -210,7 +210,6 @@ class SearchController extends Controller implements CrawlConstants

         $data['YIOOP_TOKEN'] = $this->generateCSRFToken($user);

-
         $data['ELAPSED_TIME'] = changeInMicrotime($start_time);
         $this->displayView($view, $data);
     }
diff --git a/views/search_view.php b/views/search_view.php
index 75cb8c1bc..f567bc811 100755
--- a/views/search_view.php
+++ b/views/search_view.php
@@ -198,8 +198,8 @@ class SearchView extends View implements CrawlConstants
             <?php
             } //end foreach
             $this->paginationHelper->render(
-                $data['PAGING_QUERY'], $data['LIMIT'],
-                $data['RESULTS_PER_PAGE'], $data['TOTAL_ROWS']);
+                $data['PAGING_QUERY']."&amp;YIOOP_TOKEN=".$data['YIOOP_TOKEN'],
+                $data['LIMIT'], $data['RESULTS_PER_PAGE'], $data['TOTAL_ROWS']);
         }
         ?><div class="landing-footer">
             <div><b><?php e($data['INDEX_INFO']);?></b></div>
ViewGit