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
|
||||
$PROJECTS = array(
|
||||
'www' => array('Documentation', ''),
|
||||
'php' => array('PHP Documentation', 'phpdoc-all'),
|
||||
'smarty' => array('Smarty', 'smarty/docs'),
|
||||
'pear' => array('PEAR Documentation', 'peardoc'),
|
||||
'gtk' => array('PHP-GTK Documentation', 'php-gtk-docs'),
|
||||
'livedocs' => array('Livedocs', ''),
|
||||
'pecl' => array('PECL Documentation', ''),
|
||||
// project => (Name, local folder, cvs module)
|
||||
'www' => array('Documentation', '', ''),
|
||||
'php' => array('PHP Documentation', 'phpdoc-all', 'phpdoc/en'),
|
||||
'smarty' => array('Smarty', 'smarty/docs', 'smarty/docs/en'),
|
||||
'pear' => array('PEAR Documentation', 'peardoc', 'peardoc/en'),
|
||||
'gtk' => array('PHP-GTK Documentation', 'php-gtk-doc', 'php-gtk-doc/manual/en'),
|
||||
'livedocs' => array('Livedocs', '', ''),
|
||||
'pecl' => array('PECL Documentation', '', ''),
|
||||
);
|
||||
|
||||
// Supported languages
|
||||
|
@ -410,7 +410,7 @@ END_OF_MULTILINE;
|
||||
// If we have a 'numeric' revision diff and it is not zero,
|
||||
// make a link to the CVS repository's diff script
|
||||
$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"] .
|
||||
"&r2=1." . $r["en_rev"] .
|
||||
"&ty=u\">" . $r["file"] . "</a>";
|
||||
|
Reference in New Issue
Block a user