Skip to content

Commit

Permalink
Install plugins and themes in correct multisite folders (#841)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sommerregen authored and rhukster committed May 30, 2016
1 parent d7f286f commit 4c687ee
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ public function __construct($repository = null, $refresh = false, $callback = nu

$this->fetch($refresh, $callback);
foreach (json_decode($this->raw, true) as $slug => $data) {
// Temporarily fix for using multisites
if (isset($data['install_path'])) {
$path = preg_replace('~^user/~i', 'user://', $data['install_path']);
$data['install_path'] = Grav::instance()['locator']->findResource($path, false, true);
}
$this->items[$slug] = new Package($data, $this->type);
}
}
Expand Down

0 comments on commit 4c687ee

Please sign in to comment.