mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-02 19:36:08 +01:00
Fixed broken page types filtering
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
* Curl fix for invalid cert errors with News Feed
|
||||
* Avoid requiring `admin.super` for ajax calls [#739](https://github.com/getgrav/grav-plugin-admin/issues/739)
|
||||
* Fix showing HTML in notifications, in the feed
|
||||
* Fixed broken page type filtering
|
||||
|
||||
# v1.1.4
|
||||
## 08/14/2016
|
||||
|
||||
@@ -978,11 +978,11 @@ class AdminController
|
||||
if (count($flags)) {
|
||||
$types = [];
|
||||
|
||||
$pageTypes = Pages::pageTypes();
|
||||
$pageTypes = array_keys(Pages::pageTypes());
|
||||
foreach ($pageTypes as $pageType) {
|
||||
if (($pageType = array_search($pageType, $flags)) !== false) {
|
||||
if (($pageKey = array_search($pageType, $flags)) !== false) {
|
||||
$types[] = $pageType;
|
||||
unset($flags[$pageType]);
|
||||
unset($flags[$pageKey]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user