mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-01 10:56:08 +01:00
Fix issue in offline admin
This commit is contained in:
@@ -414,6 +414,10 @@ class Admin
|
||||
{
|
||||
$gpm = $this->gpm();
|
||||
|
||||
if (!$gpm) {
|
||||
return;
|
||||
}
|
||||
|
||||
return $local ? $gpm->getInstalledPlugins() : $gpm->getRepositoryPlugins()->filter(function (
|
||||
$package,
|
||||
$slug
|
||||
@@ -431,6 +435,10 @@ class Admin
|
||||
{
|
||||
$gpm = $this->gpm();
|
||||
|
||||
if (!$gpm) {
|
||||
return;
|
||||
}
|
||||
|
||||
return $local ? $gpm->getInstalledThemes() : $gpm->getRepositoryThemes()->filter(function ($package, $slug) use
|
||||
(
|
||||
$gpm
|
||||
|
||||
Reference in New Issue
Block a user