From: Zach Copley Date: Wed, 29 Sep 2010 23:11:32 +0000 (-0700) Subject: Make createAnonProfile() static X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f3390599901d7b7766d9813e281e0ca78e9729fd;p=quix0rs-gnu-social.git Make createAnonProfile() static --- diff --git a/plugins/AnonymousFave/AnonymousFavePlugin.php b/plugins/AnonymousFave/AnonymousFavePlugin.php index 264cad1748..47eebef9ba 100644 --- a/plugins/AnonymousFave/AnonymousFavePlugin.php +++ b/plugins/AnonymousFave/AnonymousFavePlugin.php @@ -203,7 +203,7 @@ class AnonymousFavePlugin extends Plugin { $tally = Fave_tally::decrement($notice->id); } - function createAnonProfile() { + static function createAnonProfile() { // Get the anon user's IP, and turn it into a nickname list($proxy, $ip) = common_client_ip(); @@ -253,7 +253,7 @@ class AnonymousFavePlugin extends Plugin { // Do Profile lookup by ID instead of nickname for safety/performance $profile = Profile::staticGet('id', $id); } else { - $profile = $this->createAnonProfile(); + $profile = AnonymousFavePlugin::createAnonProfile(); // Obfuscate so it's hard to figure out the Profile ID $_SESSION['anon_token'] = base64_encode($profile->nickname); }