mirror of
https://github.com/monstra-cms/monstra.git
synced 2025-08-01 10:50:37 +02:00
Pages Plugin: hack for old Monstra - added
This commit is contained in:
@@ -112,6 +112,9 @@
|
||||
}
|
||||
}
|
||||
|
||||
// Hack For old Monstra
|
||||
$child_page['access'] = (isset($current_page['access'])) ? $current_page['access'] : 'public' ;
|
||||
|
||||
// Check is child_parent -> request parent
|
||||
if ($c_p == $data[0]) {
|
||||
|
||||
@@ -157,7 +160,7 @@
|
||||
// Get current page
|
||||
$current_page = Pages::$pages->select('[slug="'.$data[0].'"]', null);
|
||||
|
||||
// For old Monstra
|
||||
// Hack For old Monstra
|
||||
$current_page['access'] = (isset($current_page['access'])) ? $current_page['access'] : 'public' ;
|
||||
|
||||
if (count($current_page) != 0) {
|
||||
|
Reference in New Issue
Block a user