]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
A couple of fixes for the search PHP code
authorDaniel Veillard <veillard@redhat.com>
Mon, 17 Jan 2011 08:55:41 +0000 (16:55 +0800)
committerDaniel Veillard <veillard@redhat.com>
Mon, 17 Jan 2011 08:55:41 +0000 (16:55 +0800)
docs/search.php

index 71310621314f672c2183dfa74e5592d247f3b19b..768e06fca3b4bc39772b7b95b21d01f22c40b3df 100644 (file)
@@ -24,7 +24,7 @@
     if (! $query) {
         echo "<h1 align='center'>Search the documentation on Libvir.org</h1>";
     }
-    $scope = $_GET['scope"'];
+    $scope = $_GET['scope'];
     if ($scope == NULL)
         $scope = "any";
     $scope = ltrim ($scope);
@@ -33,7 +33,7 @@
 
 ?>
 <p> The search service indexes the libvirt APIs and documentation as well as the libvir-list@redhat.com mailing-list archives. To use it simply provide a set of keywords:</p>
-<form action="<?php echo "$_SERVER['PHP_SELF']", "?query=", rawurlencode($query) ?>"
+<form action="<?php echo $_SERVER['PHP_SELF'], "?query=", rawurlencode($query) ?>"
       enctype="application/x-www-form-urlencoded" method="get">
   <input name="query" type="text" size="50" value="<?php echo $query?>"/>
   <select name="scope">