|
@ -21,6 +21,11 @@ class RepositoryDir extends RepositoryBase { |
|
|
while ($f = readdir($d)) { |
|
|
while ($f = readdir($d)) { |
|
|
if (preg_match("/^([0-9a-zA-Z_\-]+)\.json$/", $f, $m) && $f !== 'package.json') { |
|
|
if (preg_match("/^([0-9a-zA-Z_\-]+)\.json$/", $f, $m) && $f !== 'package.json') { |
|
|
$d1 = json_decode(file_get_contents("{$this->path}/{$f}"), true); |
|
|
$d1 = json_decode(file_get_contents("{$this->path}/{$f}"), true); |
|
|
|
|
|
|
|
|
|
|
|
if (!$this->isCategory($d1)) { |
|
|
|
|
|
continue; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
$data['categories'][$m[1]] = jsonMultilineStringsJoin($d1, array('exclude' => array(array('const')))); |
|
|
$data['categories'][$m[1]] = jsonMultilineStringsJoin($d1, array('exclude' => array(array('const')))); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|