Fixes bug of undefined QUEUE_SERVER in rss_layout, a=chris

Chris Pollett [2012-05-23 17:14:22]
Fixes bug of undefined QUEUE_SERVER in rss_layout, a=chris
Filename
controllers/search_controller.php
views/layouts/rss_layout.php
diff --git a/controllers/search_controller.php b/controllers/search_controller.php
index 322f73c..74688b6 100755
--- a/controllers/search_controller.php
+++ b/controllers/search_controller.php
@@ -1035,7 +1035,7 @@ class SearchController extends Controller implements CrawlConstants
         $newDoc = $dom->saveHTML();
         $url = "<a href='$url'>$url</a>";
         $newDoc = str_replace("Z@url@Z", $url, $newDoc);
-        $colors = array("yellow", "orange", "grey", "cyan");
+        $colors = array("yellow", "orange", "gray", "cyan");
         $color_count = count($colors);

         $i = 0;
diff --git a/views/layouts/rss_layout.php b/views/layouts/rss_layout.php
index 525fbc0..b2321a7 100644
--- a/views/layouts/rss_layout.php
+++ b/views/layouts/rss_layout.php
@@ -80,7 +80,7 @@ xmlns:atom="http://www.w3.org/2005/Atom"
         <opensearch:itemsPerPage><?php e($data['RESULTS_PER_PAGE']);
         ?></opensearch:itemsPerPage>
         <atom:link rel="search" type="application/opensearchdescription+xml"
-            href="<?php e(QUEUE_SERVER);?>yioopbar.xml"/>
+            href="<?php e(NAME_SERVER);?>yioopbar.xml"/>
         <opensearch:Query role="request" searchTerms="<?php
         e($data['QUERY']); ?>"/>
                 <?php
ViewGit