nlopess Tue Jul 12 15:51:34 2005 EDT
Modified files:
/phpdoc/scripts revcheck.php
Log:
add a no-whitespace diff link
http://cvs.php.net/diff.php/phpdoc/scripts/revcheck.php?r1=1.51&r2=1.52&ty=u
Index: phpdoc/scripts/revcheck.php
diff -u phpdoc/scripts/revcheck.php:1.51 phpdoc/scripts/revcheck.php:1.52
--- phpdoc/scripts/revcheck.php:1.51 Sun Jul 10 13:34:58 2005
+++ phpdoc/scripts/revcheck.php Tue Jul 12 15:51:32 2005
@@ -849,11 +849,15 @@
// If we have a 'numeric' revision diff and it is not zero,
// make a link to the CVS repository's diff script
if ($file["revision"][2] != "n/a" && $file["revision"][2] !== 0) {
- $file["short_name"] = "<a href=\"http://cvs.php.net/diff.php/" .
- preg_replace( "'^".$DOCDIR."'", "phpdoc/",
$file["full_name"]) .
- "?r1=" . $file["revision"][1] .
- "&r2=" . $file["revision"][0] .
- CVS_OPT . "\">" . $file["short_name"] .
"</a>";
+ $url = 'http://cvs.php.net/diff.php/' .
+ preg_replace( "'^".$DOCDIR."'", 'phpdoc/',
$file['full_name']) .
+ '?r1=' . $file['revision'][1] .
+ '&r2=' . $file['revision'][0] .
+ CVS_OPT;
+ $url_ws = $url . '&ws=0';
+
+ $file['short_name'] = '<a href="' . $url . '">'.
$file["short_name"] . '</a> '.
+ '<a href="' . $url_ws . '">[NoWS]</a>';
}
// Guess the new directory from the full name of the file