svn: /pear/pearweb/trunk/cron/ find-documentation.php

From: Date: Wed, 27 Jan 2010 15:36:26 +0000
Subject: svn: /pear/pearweb/trunk/cron/ find-documentation.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-9170@lists.php.net to get a copy of this message
saltybeagle Wed, 27 Jan 2010 15:36:26 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=294097 Log: Fix the doc-finder. Look for <book xml:id instead of <sect1 id. Changed paths: U pear/pearweb/trunk/cron/find-documentation.php Modified: pear/pearweb/trunk/cron/find-documentation.php =================================================================== --- pear/pearweb/trunk/cron/find-documentation.php 2010-01-27 14:42:57 UTC (rev 294096) +++ pear/pearweb/trunk/cron/find-documentation.php 2010-01-27 15:36:26 UTC (rev 294097) @@ -93,15 +93,14 @@ $url = '/manual/en/' . $matches2[1] . '.php'; - $a = new HTTP_Request2($host . $url); - $a->send(); + $request = new HTTP_Request2($host . $url); + $response = $request->send(); - if ($a->getStatus() == 404) { + if ($response->getStatus() == 404) { $new_url = preg_replace("=\.([^\.]+)\.php$=", ".php", $url); - $a->reset($host . $new_url); - $a->setURL($host . $new_url); - $a->send(); - $url = $a->getStatus() != 404 ? $new_url : ''; + $request->setURL($host . $new_url); + $response = $request->send(); + $url = $response->getStatus() != 404 ? $new_url : ''; } $res = $dbh->execute($update, array($url, $matches1[1]));

« previous php.pear.core (#9170) next »