diff --git a/system/router.php b/system/router.php index d45889f9..ca5454ff 100644 --- a/system/router.php +++ b/system/router.php @@ -220,9 +220,8 @@ else { $content .= $tmp_content; if (hasFlag(FLAG_CONTENT_PAGES) || superAdmin()) { $pageInfo = getCustomPageInfo($pageName); - $content = $twig->render('admin.pages.links.html.twig', array( - 'page' => array('id' => $pageInfo !== null ? $pageInfo['id'] : 0, 'hidden' => $pageInfo !== null ? $pageInfo['hidden'] : '0') - )) . $content; + $content = $twig->render('admin.links.html.twig', ['page' => 'pages', 'id' => $pageInfo !== null ? $pageInfo['id'] : 0, 'hidden' => $pageInfo !== null ? $pageInfo['hidden'] : '0'] + ) . $content; } $page = $pageName; diff --git a/system/templates/admin.pages.links.html.twig b/system/templates/admin.pages.links.html.twig deleted file mode 100644 index 459d0623..00000000 --- a/system/templates/admin.pages.links.html.twig +++ /dev/null @@ -1,14 +0,0 @@ -
- - Edit - - - Delete - - - {% if page.hidden != 1 %}Hide{% else %}Show{% endif %} - -
-