cvs: php-gcov-web /www site.api.php
| From: | Nuno Lopes | Date: | Fri, 22 Dec 2006 23:16:30 +0000 |
| Subject: | cvs: php-gcov-web /www site.api.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-33587@lists.php.net to get a copy of this message | ||
nlopess Fri Dec 22 23:16:30 2006 UTC
Modified files:
/php-gcov-web/www site.api.php
Log:
fix make_cvs_link() for Zend directory
http://cvs.php.net/viewvc.cgi/php-gcov-web/www/site.api.php?r1=1.5&r2=1.6&diff_format=u
Index: php-gcov-web/www/site.api.php
diff -u php-gcov-web/www/site.api.php:1.5 php-gcov-web/www/site.api.php:1.6
--- php-gcov-web/www/site.api.php:1.5 Fri Dec 22 23:06:29 2006
+++ php-gcov-web/www/site.api.php Fri Dec 22 23:16:30 2006
@@ -19,7 +19,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: site.api.php,v 1.5 2006/12/22 23:06:29 nlopess Exp $ */
+/* $Id: site.api.php,v 1.6 2006/12/22 23:16:30 nlopess Exp $ */
// File: Core Site API File
// Desc: contains core display functions, it is essential for all pages to include this file.
@@ -300,8 +300,15 @@
function make_cvs_link($path, $line)
{
+ if (strpos($path, 'Zend/') !== false) {
+ $module = $GLOBALS['version'] === 'PHP_4_4' ? 'Zend' :
'ZendEngine2';
+ $path = str_replace('Zend/', '', $path);
+ } else {
+ $module = 'php-src';
+ }
+
$cvsbranch = str_replace('PHP_HEAD', 'HEAD', $GLOBALS['version']);
- return "<a href=\"http://cvs.php.net/viewvc.cgi/php-src/$path?view=annotate&pathrev=$cvsbranch#l$line\">$line</a>";
+ return "<a href=\"http://cvs.php.net/viewvc.cgi/$module/$path?view=annotate&pathrev=$cvsbranch#l$line\">$line</a>";
}