Re: Documentation linking issues
| From: | Alexey Borzov | Date: | Thu, 27 Jan 2011 10:51:55 +0000 |
| Subject: | Re: Documentation linking issues | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-54026@lists.php.net to get a copy of this message | ||
Hi Christian,
On 27.01.2011 10:25, Christian Weiske wrote:
Is this the only place where doc_link can be mangled? There is a sanity check here that prevents setting an empty url: if ($url) {I found it: cron/find-documentation.phpNo, I updated it. http://news.php.net/php.pear.webmaster/6786 Seems this is still a bug.Seems the PEAR website wasn't updated yet?and tried several times to add a link to that as the package's "Documentation URI". It appears OK, but is later removed (!!!) by some automatic (at least one hopes that it's not manual) process.Once we upgrade successfully the cron that updates the site should be turned back on.$url = $response->getStatus() == 404 ? $new_url : '';So whenever the documentation is not found, it gets the new url. If it's found, it keeps the URL as it is (later on, $url is sent to database when it is not empty).
$res = $dbh->execute($update, array($url, $title));} but I am seeing the exact behaviour of setting it to an empty string.