fix the revcheck problem reported by Moosh: non-phpdoc diffs broken

This commit is contained in:
Nuno Lopes
2005-05-21 08:58:19 +00:00
parent 0b57089889
commit 647b74fcb2
2 changed files with 9 additions and 8 deletions

View File

@ -26,13 +26,14 @@ $Id$
// Map of supported documentation types to CVS module names // Map of supported documentation types to CVS module names
$PROJECTS = array( $PROJECTS = array(
'www' => array('Documentation', ''), // project => (Name, local folder, cvs module)
'php' => array('PHP Documentation', 'phpdoc-all'), 'www' => array('Documentation', '', ''),
'smarty' => array('Smarty', 'smarty/docs'), 'php' => array('PHP Documentation', 'phpdoc-all', 'phpdoc/en'),
'pear' => array('PEAR Documentation', 'peardoc'), 'smarty' => array('Smarty', 'smarty/docs', 'smarty/docs/en'),
'gtk' => array('PHP-GTK Documentation', 'php-gtk-docs'), 'pear' => array('PEAR Documentation', 'peardoc', 'peardoc/en'),
'livedocs' => array('Livedocs', ''), 'gtk' => array('PHP-GTK Documentation', 'php-gtk-doc', 'php-gtk-doc/manual/en'),
'pecl' => array('PECL Documentation', ''), 'livedocs' => array('Livedocs', '', ''),
'pecl' => array('PECL Documentation', '', ''),
); );
// Supported languages // Supported languages

View File

@ -410,7 +410,7 @@ END_OF_MULTILINE;
// If we have a 'numeric' revision diff and it is not zero, // If we have a 'numeric' revision diff and it is not zero,
// make a link to the CVS repository's diff script // make a link to the CVS repository's diff script
$r["short_name"] = "<a href=\"http://cvs.php.net/diff.php/" . $r["short_name"] = "<a href=\"http://cvs.php.net/diff.php/" .
"phpdoc/en". $r["name"] .'/' . $r['file'] . $PROJECTS[$project][2] . $r['name'] .'/' . $r['file'] .
"?r1=1." . $r["trans_rev"] . "?r1=1." . $r["trans_rev"] .
"&amp;r2=1." . $r["en_rev"] . "&amp;r2=1." . $r["en_rev"] .
"&amp;ty=u\">" . $r["file"] . "</a>"; "&amp;ty=u\">" . $r["file"] . "</a>";