1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-18 02:41:27 +02:00

Flextype Box Plugin: Admin #125 #117

-  fixes
This commit is contained in:
Awilum
2019-06-14 16:36:35 +03:00
parent 6ac6fc1706
commit c7dd618904
3 changed files with 4 additions and 3 deletions

View File

@@ -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(),

View File

@@ -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'),

View File

@@ -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'));