cvs: pearweb /cron find-documentation.php
| From: | Pierre-Alain Joye | Date: | Sat, 08 Apr 2006 15:32:49 +0000 |
| Subject: | cvs: pearweb /cron find-documentation.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-4704@lists.php.net to get a copy of this message | ||
pajoye Sat Apr 8 15:32:49 2006 UTC
Modified files:
/pearweb/cron find-documentation.php
Log:
- #7335, do not replace the doc link if it points outside pear.php.net
(thanks for Mark Wiesemann for head up)
http://cvs.php.net/viewcvs.cgi/pearweb/cron/find-documentation.php?r1=1.4&r2=1.5&diff_format=u
Index: pearweb/cron/find-documentation.php
diff -u pearweb/cron/find-documentation.php:1.4 pearweb/cron/find-documentation.php:1.5
--- pearweb/cron/find-documentation.php:1.4 Wed Jul 21 12:56:33 2004
+++ pearweb/cron/find-documentation.php Sat Apr 8 15:32:49 2006
@@ -16,13 +16,13 @@
* | Authors: Martin Jansen <mj@php.net> |
* +----------------------------------------------------------------------+
*
- * $Id: find-documentation.php,v 1.4 2004/07/21 12:56:33 danielc Exp $
+ * $Id: find-documentation.php,v 1.5 2006/04/08 15:32:49 pajoye Exp $
*/
/**
* Trying to find documentation URLs for PEAR packages in the peardoc Docbook sources
*
- * @version $Revision: 1.4 $
+ * @version $Revision: 1.5 $
*/
require_once "PEAR.php";
require_once "VFS.php";
@@ -44,7 +44,8 @@
exit(1);
}
-$update = $dbh->prepare("UPDATE packages SET doc_link = ? WHERE name = ?");
+$update = $dbh->prepare("UPDATE packages SET doc_link = ?
+ WHERE name = ? AND doc_link not like 'http://%' or
doc_link like 'http://pear.php.net/%'");
// {{{ readFolder()