cvs: phpdoc /scripts revcheck.php
| From: | Gabor Hojtsy | Date: | Fri, 29 Mar 2002 18:48:02 +0000 |
| Subject: | cvs: phpdoc /scripts revcheck.php | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969343782@lists.php.net to get a copy of this message | ||
goba Fri Mar 29 13:48:02 2002 EDT
Modified files:
/phpdoc/scripts revcheck.php
Log:
Add 1. to N/A revision number files' English rev too
Index: phpdoc/scripts/revcheck.php
diff -u phpdoc/scripts/revcheck.php:1.22 phpdoc/scripts/revcheck.php:1.23
--- phpdoc/scripts/revcheck.php:1.22 Mon Mar 25 17:55:31 2002
+++ phpdoc/scripts/revcheck.php Fri Mar 29 13:48:02 2002
@@ -332,17 +332,18 @@
$trans_name = substr($trans_file, strlen($DOCDIR) + strlen($LANG) + 1);
// Get English file revision for revision computing
- $en_rev = get_tag($file);
+ $en_rev = get_tag($file);
// If we have a numeric revision number (not n/a), compute rev. diff
if (is_numeric($this_rev)) {
- $rev_diff = intval($en_rev) - intval($this_rev);
+ $rev_diff = intval($en_rev) - intval($this_rev);
$trans_rev = "1.{$this_rev}";
$en_rev = "1.{$en_rev}";
} else {
// If we have no numeric revision, make all revision
// columns hold the rev from the translated file
$rev_diff = $trans_rev = $this_rev;
+ $en_rev = "1.{$en_rev}";
}
// Compute sizes, times and diffs