From 8a1911322f548fd45b83eb81583ca8d9592aebfd Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Mon, 5 Mar 2012 09:32:25 -0600 Subject: [PATCH] make scale() public --- Spam_score.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Spam_score.php b/Spam_score.php index 4d2aef4152..c815b42e36 100644 --- a/Spam_score.php +++ b/Spam_score.php @@ -154,7 +154,7 @@ class Spam_score extends Managed_DataObject } } - protected static function scale($score) + public static function scale($score) { $raw = round($score * Spam_score::MAX_SCALE); return max(0, min(Spam_score::MAX_SCALE, $raw)); -- 2.39.5