git.cweiske.de
/
bdrem.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update phing build script to use composer installation only
[bdrem.git]
/
src
/
bdrem
/
Source
/
vCard.php
diff --git
a/src/bdrem/Source/vCard.php
b/src/bdrem/Source/vCard.php
index 98b8e0061e77514802ae84de512d4ff5f1a14259..3d55915bd28839c76889547116ff02213b882872 100644
(file)
--- a/
src/bdrem/Source/vCard.php
+++ b/
src/bdrem/Source/vCard.php
@@
-37,8
+37,13
@@
class Source_vCard
/**
* Set the VCard folder path
*/
/**
* Set the VCard folder path
*/
- public function __construct(
array
$config)
+ public function __construct($config)
{
{
+ if (is_string($config)) {
+ $config = array(
+ 'folder' => $config
+ );
+ }
$this->folder = $config['folder'];
if (!is_dir($this->folder)) {
throw new \Exception(
$this->folder = $config['folder'];
if (!is_dir($this->folder)) {
throw new \Exception(