From c261d940c6ce5ff441deb5f10cd07190d0ced31e Mon Sep 17 00:00:00 2001 From: zhouxin Date: Fri, 11 Oct 2024 09:10:24 +0800 Subject: [PATCH] Revert "* [task#130183,doing,0.2h] fix method of get all spaces." This reverts commit 8ad7af8fa6c24c69ae86e98f54f917765f12a7a5. --- module/doc/zen.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/module/doc/zen.php b/module/doc/zen.php index 110f2ab618..520023c9de 100644 --- a/module/doc/zen.php +++ b/module/doc/zen.php @@ -931,8 +931,8 @@ class docZen extends doc */ public function getAllSpaces(string $extra = ''): array { - if(strpos($extra, 'nomine') !== false) return $this->doc->getSubSpaces('custom'); - if(strpos($extra, 'onlymine') !== false) return $this->doc->getSubSpaces('mine'); - return $this->doc->getSubSpaces('mine') + $this->doc->getSubSpaces('custom'); + if(strpos($extra, 'nomine') !== false) return $this->doc->getSubSpaces('custom'); + if(strpos($extra, 'onlymine') !== false) return array('mine' => $this->lang->doc->spaceList['mine']); + return array('mine' => $this->lang->doc->spaceList['mine']) + $this->doc->getSubSpaces('custom'); } }