cvs: phpweb / search.php
| From: | Jacques Marneweck | Date: | Fri, 14 Mar 2003 23:31:07 +0000 |
| Subject: | cvs: phpweb / search.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-16361@lists.php.net to get a copy of this message | ||
jacques Fri Mar 14 18:31:07 2003 EDT
Modified files:
/phpweb search.php
Log:
* Fixes the images not appearing on the sites using the old htdig search
like http://ch.php.net/ since the /gif/ --> /images/ move a
while back.
--jm
Index: phpweb/search.php
diff -u phpweb/search.php:1.67 phpweb/search.php:1.68
--- phpweb/search.php:1.67 Sun Mar 2 11:22:14 2003
+++ phpweb/search.php Fri Mar 14 18:31:06 2003
@@ -1,4 +1,5 @@
<?php
+/* $Id: search.php,v 1.68 2003/03/14 23:31:06 jacques Exp $ */
include_once "prepend.inc";
@@ -246,12 +247,12 @@
// If we have not performed a "remote search", leave the text as is
if (!isset($base)) {
- echo $result[$i];
+ echo preg_replace("/\/gifs\/star/i", "/images/star",
$result[$i]);
}
// Otherwise modify links to point to the referrer site
else {
- echo preg_replace("!http://[^.]+\\.php\\.net/!i",
htmlspecialchars($base), $result[$i]);
+ echo preg_replace("!http://[^.]+\\.php\\.net/!i",
htmlspecialchars($base), preg_replace("/\/gifs\/star/i", "/images/star",
$result[$i]));
}
// Make HTML output readable