XF 2.0 Close a board progmatically?

Jaxel

Well-known member
I'm trying to close my forum through code...

Code:
        $this->repository('XF:Option')->updateOptions([
            'boardActive' => $active,
            'boardInactiveMessage' => $message
        ]);
Doing the above code, properly edits the settings in the admin CP. However, it doesn't actually close the forums. What step am I missing here?
 
Top Bottom