cvs: SVNROOT / commit-email.php

[email protected] ("Gwynne Raskind") Sat, 20 Dec 2008 20:04:18 -0000
Newsgroups svn.migration
Message-ID <cvsgwynne1229803458@cvsserver>
gwynne		Sat Dec 20 20:04:18 2008 UTC

  Modified files:              
    /SVNROOT	commit-email.php 
  Log:
  fix parent path calculation
  
http://cvs.php.net/viewvc.cgi/SVNROOT/commit-email.php?r1=1.11&r2=1.12&diff_format=u
Index: SVNROOT/commit-email.php
diff -u SVNROOT/commit-email.php:1.11 SVNROOT/commit-email.php:1.12
--- SVNROOT/commit-email.php:1.11	Sat Dec 20 19:31:21 2008
+++ SVNROOT/commit-email.php	Sat Dec 20 20:04:18 2008
@@ -7,7 +7,7 @@
 
 // -----------------------------------------------------------------------------------------------------------------------------
 // Constants
-$version = substr('$Revision: 1.11 $', strlen('$Revision: '), -2);
+$version = substr('$Revision: 1.12 $', strlen('$Revision: '), -2);
 $smtp_server = '127.0.0.1';
 $commit_email_list = array(
     // FastCGI ISAPI
@@ -125,7 +125,7 @@
             $emails_to = array_merge($emails_to, $email_list);
         }
     }
-    if (strlen($changed_path) < strlen($parent_path)) {
+    if (substr_count($changed_path, '/') < substr_count($parent_path, '/')) {
         $parent_path = $changed_path;
     }
 }