cvs: pearweb /cron find-documentation.php
[email protected] ("Helgi ?ormar ?orbj?rnsson") Sun, 04 May 2008 01:36:39 -0000
| Newsgroups | php.pear.cvs,php.pear.core |
|---|---|
| Message-ID | <cvsdufuz1209864999@cvsserver> |
dufuz Sun May 4 01:36:39 2008 UTC
Modified files:
/pearweb/cron find-documentation.php
Log:
Add the config file so that the constants work
http://cvs.php.net/viewvc.cgi/pearweb/cron/find-documentation.php?r1=1.10&r2=1.11&diff_format=u
Index: pearweb/cron/find-documentation.php
diff -u pearweb/cron/find-documentation.php:1.10 pearweb/cron/find-documentation.php:1.11
--- pearweb/cron/find-documentation.php:1.10 Sat Mar 22 22:08:30 2008
+++ pearweb/cron/find-documentation.php Sun May 4 01:36:39 2008
@@ -16,14 +16,15 @@
* | Authors: Martin Jansen <[email protected]> |
* +----------------------------------------------------------------------+
*
- * $Id: find-documentation.php,v 1.10 2008/03/22 22:08:30 dufuz Exp $
+ * $Id: find-documentation.php,v 1.11 2008/05/04 01:36:39 dufuz Exp $
*/
/**
* Trying to find documentation URLs for PEAR packages in the peardoc Docbook sources
*
- * @version $Revision: 1.10 $
+ * @version $Revision: 1.11 $
*/
+require_once dirname(dirname(__FILE__)) . '/include/pear-config.php';
require_once 'PEAR.php';
require_once 'VFS.php';
require_once 'VFS/file.php';
@@ -69,18 +70,18 @@
}
foreach ($result as $file) {
- if (is_dir($basepath . $folder . "/" . $file['name'])) {
- if ($folder == "") {
+ if (is_dir($basepath . $folder . '/' . $file['name'])) {
+ if ($folder == '') {
$newfolder = $file['name'];
} else {
- $newfolder = $folder . "/" . $file['name'];
+ $newfolder = $folder . '/' . $file['name'];
}
readFolder($newfolder);
$level--;
} else {
if ($level == 2 && preg_match("/\.xml$/", $file['name'])) {
- $path = $basepath . $folder . "/" . $file['name'];
+ $path = $basepath . $folder . '/' . $file['name'];
$content = file_get_contents($path);
preg_match("/<title>(.*)<\/title>/", $content, $matches1);