diff options
Diffstat (limited to 'init.php')
-rw-r--r-- | init.php | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -1,8 +1,6 @@ <?php class Profile_Chooser extends Plugin { - private $host; - function about() { return array(null, "Adds a profile chooser to the main toolbar", @@ -10,8 +8,6 @@ class Profile_Chooser extends Plugin { } function init($host) { - $this->host = $host; - $host->add_hook($host::HOOK_MAIN_TOOLBAR_BUTTON, $this); } @@ -19,7 +15,7 @@ class Profile_Chooser extends Plugin { return file_get_contents(__DIR__ . "/init.js"); } - function getprofile() { + function getprofile() : void { print json_encode(["profile" => $_SESSION["profile"] ?? 0]); } |