From 4c9801e7abfdb0ed235d0d1f1d194e052f894f82 Mon Sep 17 00:00:00 2001 From: Olav Morken <olav.morken@uninett.no> Date: Thu, 28 Oct 2010 11:33:22 +0000 Subject: [PATCH] consent: Make getTargetedID() static. This function is called statically several places, so let us make it static to avoid the warnings. git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2612 44740490-163a-0410-bde0-09ae8108e29a --- modules/consent/lib/Auth/Process/Consent.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/consent/lib/Auth/Process/Consent.php b/modules/consent/lib/Auth/Process/Consent.php index ae2be3fb6..d497d4030 100644 --- a/modules/consent/lib/Auth/Process/Consent.php +++ b/modules/consent/lib/Auth/Process/Consent.php @@ -223,7 +223,7 @@ class sspmod_consent_Auth_Process_Consent extends SimpleSAML_Auth_ProcessingFilt /** * Get a targeted ID. An identifier that is unique per SP entity ID. */ - public function getTargetedID($userid, $source, $destination) { + public static function getTargetedID($userid, $source, $destination) { return hash('sha1', $userid . '|' . SimpleSAML_Utilities::getSecretSalt() . '|' . $source . '|' . $destination); } -- GitLab