mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
Fixes bug when deleting cms templates
This commit is contained in:
parent
19a3fe2b43
commit
e6379ea21d
@ -248,10 +248,9 @@ class Index extends Controller
|
||||
{
|
||||
$this->validateRequestTheme();
|
||||
|
||||
$this->loadTemplate(
|
||||
Request::input('templateType'),
|
||||
trim(Request::input('templatePath'))
|
||||
)->delete();
|
||||
$type = Request::input('templateType');
|
||||
|
||||
$this->loadTemplate($type, trim(Request::input('templatePath')))->delete();
|
||||
|
||||
/*
|
||||
* Extensibility
|
||||
|
Loading…
x
Reference in New Issue
Block a user