From: Evan Prodromou Date: Mon, 5 Mar 2012 15:32:25 +0000 (-0600) Subject: make scale() public X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8a1911322f548fd45b83eb81583ca8d9592aebfd;p=quix0rs-gnu-social.git make scale() public --- 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));