Some fixes
authorAlexander Ebert <ebert@woltlab.com>
Thu, 23 Jun 2016 14:21:27 +0000 (16:21 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 23 Jun 2016 14:21:33 +0000 (16:21 +0200)
wcfsetup/install/files/lib/acp/form/PageAddForm.class.php
wcfsetup/install/files/lib/system/acl/simple/SimpleAclHandler.class.php
wcfsetup/install/files/lib/system/bbcode/BBCodeHandler.class.php

index 9764109c5566e70c02320dd4c88095b07230cd6d..95770c53437a26adf2489b3e112f42ad1fd46259 100644 (file)
@@ -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)
                ]);
        }
 }
index 16ef7285e25b5c759e269f9fda5ce523b91d9085..001524eb6ccbf6a47a6a0fc52b596cf2b615d33f 100644 (file)
@@ -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']);
                        }
index fc1a5177bab884915a77f44d24e277be34b3fa81..2dcf58cbd9d3cd363360ebd041183808a855f2c6 100644 (file)
@@ -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;