From: Alexander Ebert Date: Thu, 23 Jun 2016 14:21:27 +0000 (+0200) Subject: Some fixes X-Git-Tag: 3.0.0_Beta_1~1373 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=40b7d5dbeb8868aa041f83e906e7694030e4aed3;p=GitHub%2FWoltLab%2FWCF.git Some fixes --- 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;