Index: package-info.php =================================================================== RCS file: /repository/pearweb/public_html/package-info.php,v retrieving revision 1.31 diff -u -r1.31 package-info.php --- package-info.php 14 Apr 2003 17:52:46 -0000 1.31 +++ package-info.php 29 Apr 2003 14:45:50 -0000 @@ -193,6 +193,20 @@ $changelog_link = make_link("package-changelog.php?pacid=$pacid", 'ChangeLog'); +// Docs link +$package = strtolower(str_replace('_', '.', $name)); +if (file_exists("manual/en/packages.$package.$package.php")) { + $filename = "manual/en/packages.$package.$package.php"; +} else if (file_exists("manual/en/packages.$package.php")) { + $filename = "manual/en/packages.$package.php"; +} else if (file_exists("manual/en/core.$package.php")) { + $filename = "manual/en/core.$package.php"; +} + +if (isset($filename)) { + $doc_link = "[ " . make_link($filename, 'Documentation') . " ]"; +} + // Package statistics $stats_link = "package-stats.php?pid=" . $pacid . "&rid=&cid=" . $pkg['categoryid']; ?> @@ -201,7 +215,7 @@ [ View package statistics ] -   +