Fix for ticket 1004: Replace all uses of split with explode (none actually required regular expressions). Thanks to Brian Hartsock for providing a patch!

This commit is contained in:
Andy Staudacher
2010-02-06 13:05:44 -08:00
parent 5c0c33782d
commit 7099fc71f1
5 changed files with 10 additions and 10 deletions
@@ -195,7 +195,7 @@ class File_Structure_Test extends Gallery_Unit_Test_Case {
foreach ($dir as $file) {
$file_as_string = file_get_contents($file);
if (preg_match('/\t/', $file_as_string)) {
foreach (split("\n", $file_as_string) as $l => $line) {
foreach (explode("\n", $file_as_string) as $l => $line) {
if (preg_match('/\t/', $line)) {
$errors[] = "$file:$l has tab(s) ($line)";
}