ext/standaloneusers: logout must be static
authorMathieu Lutfy <mathieu@symbiotic.coop>
Sat, 2 Sep 2023 19:52:20 +0000 (15:52 -0400)
committerMathieu Lu <mathieu@symbiotic.coop>
Sat, 2 Sep 2023 19:52:20 +0000 (15:52 -0400)
ext/standaloneusers/CRM/Standaloneusers/Page/Login.php

index dc52eb190b67a55c9a9aac4293f62fa61885e913..b3a40144e9baf8a3c69f310b69b8e490c4433ae7 100644 (file)
@@ -20,7 +20,7 @@ class CRM_Standaloneusers_Page_Login extends CRM_Core_Page {
   /**
    * Log out.
    */
-  public function logout() {
+  public static function logout() {
     Security::singleton()->logoutUser();
     // Dump them back on the log-IN page.
     CRM_Utils_System::redirect('/civicrm/login?justLoggedOut');