From 40b7d5dbeb8868aa041f83e906e7694030e4aed3 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 23 Jun 2016 16:21:27 +0200 Subject: [PATCH] Some fixes --- wcfsetup/install/files/lib/acp/form/PageAddForm.class.php | 2 +- .../files/lib/system/acl/simple/SimpleAclHandler.class.php | 2 +- .../install/files/lib/system/bbcode/BBCodeHandler.class.php | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/lib/acp/form/PageAddForm.class.php b/wcfsetup/install/files/lib/acp/form/PageAddForm.class.php index 9764109c55..95770c5343 100644 --- a/wcfsetup/install/files/lib/acp/form/PageAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/PageAddForm.class.php @@ -492,7 +492,7 @@ class PageAddForm extends AbstractForm { 'availableLanguages' => $this->availableLanguages, 'availableBoxes' => $this->availableBoxes, 'pageNodeList' => (new PageNodeTree())->getNodeList(), - 'aclValues' => (empty($_POST) ? $this->aclValues : SimpleAclHandler::getInstance()->getOutputValues($this->aclValues)) + 'aclValues' => SimpleAclHandler::getInstance()->getOutputValues($this->aclValues) ]); } } diff --git a/wcfsetup/install/files/lib/system/acl/simple/SimpleAclHandler.class.php b/wcfsetup/install/files/lib/system/acl/simple/SimpleAclHandler.class.php index 16ef7285e2..001524eb6c 100644 --- a/wcfsetup/install/files/lib/system/acl/simple/SimpleAclHandler.class.php +++ b/wcfsetup/install/files/lib/system/acl/simple/SimpleAclHandler.class.php @@ -199,7 +199,7 @@ class SimpleAclHandler extends SingletonFactory { 'group' => [] ]; - if ($rawValues['allowAll'] == 0) { + if (isset($rawValues['allowAll']) && $rawValues['allowAll'] == 0) { if (!empty($rawValues['user'])) { $aclValues['user'] = UserRuntimeCache::getInstance()->getObjects($rawValues['user']); } diff --git a/wcfsetup/install/files/lib/system/bbcode/BBCodeHandler.class.php b/wcfsetup/install/files/lib/system/bbcode/BBCodeHandler.class.php index fc1a5177ba..2dcf58cbd9 100644 --- a/wcfsetup/install/files/lib/system/bbcode/BBCodeHandler.class.php +++ b/wcfsetup/install/files/lib/system/bbcode/BBCodeHandler.class.php @@ -49,6 +49,9 @@ class BBCodeHandler extends SingletonFactory { * @return boolean */ public function isAvailableBBCode($bbCodeTag) { + // TODO + return true; + $bbCode = BBCodeCache::getInstance()->getBBCodeByTag($bbCodeTag); if ($bbCode === null || $bbCode->isDisabled) { return false; -- 2.20.1