Revert "* [task#130183,doing,0.2h] fix method of get all spaces."
This reverts commit 8ad7af8fa6c24c69ae86e98f54f917765f12a7a5.
This commit is contained in:
+3
-3
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user