[Fusionforge-commits] r15068 - trunk/src/plugins/scmsvn/common

Franck VILLAUME nerville at fusionforge.org
Sun Feb 12 11:15:40 CET 2012


Author: nerville
Date: 2012-02-12 11:15:40 +0100 (Sun, 12 Feb 2012)
New Revision: 15068

Modified:
   trunk/src/plugins/scmsvn/common/SVNPlugin.class.php
Log:
fix deprecated php warning

Modified: trunk/src/plugins/scmsvn/common/SVNPlugin.class.php
===================================================================
--- trunk/src/plugins/scmsvn/common/SVNPlugin.class.php	2012-02-12 10:10:21 UTC (rev 15067)
+++ trunk/src/plugins/scmsvn/common/SVNPlugin.class.php	2012-02-12 10:15:40 UTC (rev 15068)
@@ -626,13 +626,12 @@
 
 // End of class, helper functions now
 
-function SVNPluginCharData ($parser, $chars) {
+function SVNPluginCharData($parser, $chars) {
 	global $last_tag, $last_user, $last_time, $start_time, $end_time,
 		$time_ok, $user_list;
 	switch ($last_tag) {
 	case "AUTHOR":
-		$last_user = ereg_replace ('[^a-z0-9_-]', '',
-					   strtolower (trim ($chars))) ;
+		$last_user = preg_replace('/[^a-z0-9_-]/', '', strtolower(trim($chars)));
 		break;
 	case "DATE":
 		$chars = preg_replace('/T(\d\d:\d\d:\d\d)\.\d+Z?$/', ' ${1}', $chars);
@@ -674,7 +673,7 @@
 	}
 }
 
-function SVNPluginEndElement ($parser, $name) {
+function SVNPluginEndElement($parser, $name) {
 	global $time_ok, $last_tag, $commits;
 	if ($name == "LOGENTRY" && $time_ok) {
 		$commits++;




More information about the Fusionforge-commits mailing list