split() is deprecated in php 5.3

This commit is contained in:
Thomas Keller 2011-10-27 23:00:14 +02:00
parent 6f620e3f54
commit ae11b1de4a

View File

@ -87,7 +87,7 @@ class IDF_Scm_Git extends IDF_Scm
$filename = trim(substr($line, 1)); $filename = trim(substr($line, 1));
$return->patches[] = $filename; $return->patches[] = $filename;
} else if ($action == 'R') { } else if ($action == 'R') {
$matches = split ("\t", $line); $matches = preg_split("/\t/", $line);
$return->renames[$matches[1]] = $matches[2]; $return->renames[$matches[1]] = $matches[2];
} }
} }