Skip to content

Commit

Permalink
fixes symlink
Browse files Browse the repository at this point in the history
  • Loading branch information
jirisvoboda committed Jul 6, 2015
1 parent ade0645 commit dc838e2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Metronic.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<?php
/**
* @copyright Copyright (c) 2014 icron.org
* @license http://yii2metronic.icron.org/license.html
* @link http://www.digitaldeals.cz/
* @copyright Copyright (c) 2014 Digital Deals s.r.o.
* @license http://www.digitaldeals.cz/license/
*/

namespace dlds\metronic;
Expand Down Expand Up @@ -242,7 +243,7 @@ public function init()
throw new InvalidConfigException('You have to specify resources locations to be able to create symbolic links. Specify "admin" and "global" theme folder locations.');
}

if (!is_link(self::ASSETS_LINK))
if (!is_link(self::ASSETS_LINK) && !is_dir(self::ASSETS_LINK))
{
symlink($this->resources, self::ASSETS_LINK);
}
Expand Down

0 comments on commit dc838e2

Please sign in to comment.