cvs: SVNROOT / commit-email.php

From: Date: Sat, 20 Dec 2008 20:04:18 +0000
Subject: cvs: SVNROOT / commit-email.php
Groups: svn.migration 
Request: Send a blank email to svn-migration+get-225@lists.php.net to get a copy of this message
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; } }

« previous svn.migration (#225) next »