mirror of
https://github.com/php/web-doc.git
synced 2025-08-13 14:40:31 +00:00
fix the revcheck problem reported by Moosh: non-phpdoc diffs broken
This commit is contained in:
@ -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
|
||||||
|
@ -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"] .
|
||||||
"&r2=1." . $r["en_rev"] .
|
"&r2=1." . $r["en_rev"] .
|
||||||
"&ty=u\">" . $r["file"] . "</a>";
|
"&ty=u\">" . $r["file"] . "</a>";
|
||||||
|
Reference in New Issue
Block a user