summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZach Copley <zach@status.net>2010-09-29 16:11:32 -0700
committerZach Copley <zach@status.net>2010-09-29 16:11:32 -0700
commitf3390599901d7b7766d9813e281e0ca78e9729fd (patch)
tree9aaa226c3a22c8ba5ca637624926e567ee104f6a
parentba6984284425f4556777523338fa4f15a03e3884 (diff)
Make createAnonProfile() static
-rw-r--r--plugins/AnonymousFave/AnonymousFavePlugin.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/AnonymousFave/AnonymousFavePlugin.php b/plugins/AnonymousFave/AnonymousFavePlugin.php
index 264cad174..47eebef9b 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);
}