Fix fatal error in GPM\Remote\Plugins|Themes

This commit is contained in:
Matias Griese
2016-03-01 15:03:12 +02:00
parent cdef2e105d
commit ca064d2abc
2 changed files with 6 additions and 2 deletions

View File

@@ -12,7 +12,7 @@ class Plugins extends AbstractPackageCollection
*/
protected $type = 'plugins';
protected $repository = 'https://getgrav.org/downloads/plugins.json?v=' . GRAV_VERSION;
protected $repository = 'https://getgrav.org/downloads/plugins.json?v=';
/**
* Local Plugins Constructor
@@ -21,6 +21,8 @@ class Plugins extends AbstractPackageCollection
*/
public function __construct($refresh = false, $callback = null)
{
$this->repository .= GRAV_VERSION;
parent::__construct($this->repository, $refresh, $callback);
}
}

View File

@@ -12,7 +12,7 @@ class Themes extends AbstractPackageCollection
*/
protected $type = 'themes';
protected $repository = 'https://getgrav.org/downloads/themes.json?v=' . GRAV_VERSION;
protected $repository = 'https://getgrav.org/downloads/themes.json?v=';
/**
* Local Themes Constructor
@@ -21,6 +21,8 @@ class Themes extends AbstractPackageCollection
*/
public function __construct($refresh = false, $callback = null)
{
$this->repository .= GRAV_VERSION;
parent::__construct($this->repository, $refresh, $callback);
}
}