mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2026-05-05 17:26:58 +02:00
Fixed deleting file when using file field type [#1558]
This commit is contained in:
@@ -1392,9 +1392,9 @@ class Admin
|
||||
return $found_fields;
|
||||
}
|
||||
|
||||
public function getPagePathFromToken($path)
|
||||
public function getPagePathFromToken($path, $page = null)
|
||||
{
|
||||
return Utils::getPagePathFromToken($path, $this->page(true));
|
||||
return Utils::getPagePathFromToken($path, $page ?: $this->page(true));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user