Skip to content

Commit

Permalink
refactor to put login in structure() method
Browse files Browse the repository at this point in the history
  • Loading branch information
blutarch committed Jan 13, 2023
1 parent 8def684 commit 6e11ee7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion plugins/StopAutoDraft/class.stopautodraft.plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 34,18 @@ public function __construct(
parent::__construct();
}

public function container_init()
public function structure()
{
$this->config->saveToConfig("Vanilla.Drafts.Autosave", false);
$addon = $this->addonManager->lookupAddon("stopautodraft");
$this->addonModel->disable($addon);
}

public function setup()
{
$this->structure();
}

public function onDisable()
{
}
Expand Down

0 comments on commit 6e11ee7

Please sign in to comment.