Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Single repository in config.ini converted to array in config.php.

  • Loading branch information...
commit 77bd795b2e67ef14f82dd547cf62deceec846e2f 1 parent dc263c0
@wimrijnders wimrijnders authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/GitList/Config.php
View
5 src/GitList/Config.php
@@ -12,6 +12,11 @@ public static function fromFile($file)
die(sprintf('Please, create the %1$s file.', $file));
}
$data = parse_ini_file($file, true);
+
+ # Ensure that repositories item is an array
+ if (!is_array($data['git']['repositories'])) {
+ $data['git']['repositories'] = array($data['git']['repositories']);
+ }
return new static($data);
}

0 comments on commit 77bd795

Please sign in to comment.
Something went wrong with that request. Please try again.