Permalink
Browse files

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

  • Loading branch information...
1 parent dc263c0 commit 77bd795b2e67ef14f82dd547cf62deceec846e2f @wimrijnders wimrijnders committed Apr 3, 2013
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/GitList/Config.php
View
@@ -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.