mirror of
https://github.com/getgrav/grav.git
synced 2026-02-03 21:30:24 +01:00
Fix fatal error in GPM\Remote\Plugins|Themes
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user