Skip to content

Commit dd6f86a

Browse files
committed
avoid errors on weird plugin.txt files
1 parent 35a78f7 commit dd6f86a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Skeletor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ static public function fromDir($dir)
7777

7878
$data = file($dir . '/' . $type . '.info.txt', FILE_IGNORE_NEW_LINES);
7979
$data = array_map(function ($item) {
80-
return array_map('trim', explode(' ', $item, 2));
80+
return array_map('trim', sexplode(' ', $item, 2, ''));
8181
}, $data);
8282
$data = array_combine(array_column($data, 0), array_column($data, 1));
8383

0 commit comments

Comments
 (0)