1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-11 17:24:46 +02:00

Just some small updates in 3.0.77, mostly related to AdminThemeUikit updates

This commit is contained in:
Ryan Cramer
2017-09-29 12:18:34 -04:00
parent 73d7e997fe
commit 5a39c9efc9
5 changed files with 33 additions and 13 deletions

View File

@@ -301,8 +301,10 @@ abstract class AdminThemeFramework extends AdminTheme {
if($this->isSuperuser) return true;
$allow = false;
$pageViewable = $p->viewable();
if(!$pageViewable) return false;
$allow = false;
$numChildren = count($children);
if($p->process == 'ProcessPageAdd') {
@@ -580,7 +582,7 @@ abstract class AdminThemeFramework extends AdminTheme {
*/
public function renderNotices($notices, array $options = array()) {
if(!count($notices)) return '';
// if(!count($notices)) return '';
if($this->isLoggedIn && $this->wire('modules')->isInstalled('SystemNotifications')) {
$systemNotifications = $this->wire('modules')->get('SystemNotifications');
@@ -720,7 +722,7 @@ abstract class AdminThemeFramework extends AdminTheme {
$f->collapsed = Inputfield::collapsedBlank;
if($this->get('useAsLogin')) $f->attr('checked', 'checked');
$inputfields->add($f);
if($f->attr('checked') && $this->input->requestMethod('GET')) {
$class = $this->className();
foreach($this->modules->findByPrefix('AdminTheme') as $name) {