Commit fea05b62 authored by Tino Goratsch's avatar Tino Goratsch

do not invoke VCS related files in the directory iterators

parent 6d033384
......@@ -302,7 +302,7 @@ class Modules
{
if (empty($this->allModules)) {
foreach ($this->getModuleNamespaces() as $namespace) {
$modules = array_diff(scandir(MODULES_DIR . $namespace . '/'), ['.', '..']);
$modules = array_diff(scandir(MODULES_DIR . $namespace . '/'), ['.', '..', '.gitignore', '.svn', '.htaccess', '.htpasswd']);
foreach ($modules as $module) {
$info = $this->getModuleInfo($module);
if (!empty($info)) {
......
......@@ -44,7 +44,7 @@ class Index extends Core\Modules\Controller
// ...danach die Restlichen
foreach ($this->modules->getModuleNamespaces() as $namespace) {
$modules = array_diff(scandir(MODULES_DIR . $namespace . '/'), ['.', '..']);
$modules = array_diff(scandir(MODULES_DIR . $namespace . '/'), ['.', '..', '.gitignore', '.svn', '.htaccess', '.htpasswd']);
foreach ($modules as $row) {
if (in_array(strtolower($row), $coreModules) === false) {
$results[$row] = $this->_returnUpdateModuleResult($row);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment