cvs: docweb /include lib_proj_lang.inc.php /www revcheck.php
[email protected] ("Nuno Lopes")
| Newsgroups | php.doc.web |
|---|---|
| Message-ID | <cvsnlopess1116665899@cvsserver> |
nlopess Sat May 21 04:58:19 2005 EDT
Modified files:
/docweb/include lib_proj_lang.inc.php
/docweb/www revcheck.php
Log:
fix the revcheck problem reported by Moosh: non-phpdoc diffs broken
http://cvs.php.net/diff.php/docweb/include/lib_proj_lang.inc.php?r1=1.2&r2=1.3&ty=u
Index: docweb/include/lib_proj_lang.inc.php
diff -u docweb/include/lib_proj_lang.inc.php:1.2 docweb/include/lib_proj_lang.inc.php:1.3
--- docweb/include/lib_proj_lang.inc.php:1.2 Sun Sep 12 02:26:47 2004
+++ docweb/include/lib_proj_lang.inc.php Sat May 21 04:58:19 2005
@@ -19,20 +19,21 @@
| Gabor Hojtsy <[email protected]> |
| Sean Coates <[email protected]> |
+----------------------------------------------------------------------+
-$Id: lib_proj_lang.inc.php,v 1.2 2004/09/12 06:26:47 sean Exp $
+$Id: lib_proj_lang.inc.php,v 1.3 2005/05/21 08:58:19 nlopess Exp $
*/
// split from lib_general.inc.php
// 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
http://cvs.php.net/diff.php/docweb/www/revcheck.php?r1=1.15&r2=1.16&ty=u
Index: docweb/www/revcheck.php
diff -u docweb/www/revcheck.php:1.15 docweb/www/revcheck.php:1.16
--- docweb/www/revcheck.php:1.15 Mon Jan 17 06:44:02 2005
+++ docweb/www/revcheck.php Sat May 21 04:58:19 2005
@@ -1,5 +1,5 @@
<?php
-/* $Id: revcheck.php,v 1.15 2005/01/17 11:44:02 didou Exp $ */
+/* $Id: revcheck.php,v 1.16 2005/05/21 08:58:19 nlopess Exp $ */
include '../include/init.inc.php';
include '../include/lib_revcheck.inc.php';
@@ -410,7 +410,7 @@
// 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>";