mirror of
https://github.com/flextype/flextype.git
synced 2025-08-18 02:41:27 +02:00
@@ -36,7 +36,7 @@ class InformationController extends Controller
|
||||
$response,
|
||||
'plugins/admin/views/templates/system/information/index.html',
|
||||
[
|
||||
'menu_item' => 'information',
|
||||
'menu_item' => 'infomation',
|
||||
'php_uname' => php_uname(),
|
||||
'webserver' => isset($_SERVER['SERVER_SOFTWARE']) ? $_SERVER['SERVER_SOFTWARE'] : @getenv('SERVER_SOFTWARE'),
|
||||
'php_sapi_name' => php_sapi_name(),
|
||||
|
@@ -67,6 +67,7 @@ class SettingsController extends Controller
|
||||
'locales' => $locales,
|
||||
'entries' => $entries,
|
||||
'themes' => $themes,
|
||||
'menu_item' => 'settings',
|
||||
'links' => [
|
||||
'settings' => [
|
||||
'link' => $this->router->pathFor('admin.settings.index'),
|
||||
|
@@ -220,7 +220,7 @@ class SnippetsController extends Controller
|
||||
*/
|
||||
public function deleteProcess(Request $request, Response $response) : Response
|
||||
{
|
||||
$id = $this->slugify->slugify($request->getParsedBody()['snippet-id']);
|
||||
$id = $request->getParsedBody()['snippet-id'];
|
||||
|
||||
if ($this->snippets->delete($id)) {
|
||||
$this->flash->addMessage('success', __('admin_message_snippet_deleted'));
|
||||
@@ -241,7 +241,7 @@ class SnippetsController extends Controller
|
||||
*/
|
||||
public function duplicateProcess(Request $request, Response $response) : Response
|
||||
{
|
||||
$id = $this->slugify->slugify($request->getParsedBody()['snippet-id']);
|
||||
$id = $request->getParsedBody()['snippet-id'];
|
||||
|
||||
if ($this->snippets->copy($id, $id . '-duplicate-' . date("Ymd_His"))) {
|
||||
$this->flash->addMessage('success', __('admin_message_snippet_duplicated'));
|
||||
|
Reference in New Issue
Block a user