cvs: phpweb / search.php
| From: | Gabor Hojtsy | Date: | Thu, 19 Dec 2002 13:14:34 +0000 |
| Subject: | cvs: phpweb / search.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-14327@lists.php.net to get a copy of this message | ||
goba Thu Dec 19 08:14:34 2002 EDT
Modified files:
/phpweb search.php
Log:
Adding some code to handle the output of the
latest htdig properly (which uses a <dl> to
present a result)
Index: phpweb/search.php
diff -u phpweb/search.php:1.49 phpweb/search.php:1.50
--- phpweb/search.php:1.49 Mon Dec 16 15:02:25 2002
+++ phpweb/search.php Thu Dec 19 08:14:34 2002
@@ -223,12 +223,14 @@
// Make HTML output readable
echo "\n";
+ // If the result element ended (a </div> or a </dl>
+ // depending on htdig version and setup), print out delimiter
+ if (preg_match("!(</div>|</dl>)$!", $result[$i])) {
+ echo hdelim("#cccccc");
+ }
+
// Go to next result element
$i++;
-
- // Print out delimiter between results
- echo hdelim("#cccccc");
-
}
echo "<br />\n";