]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
make scale() public
authorEvan Prodromou <evan@status.net>
Mon, 5 Mar 2012 15:32:25 +0000 (09:32 -0600)
committerEvan Prodromou <evan@status.net>
Mon, 5 Mar 2012 15:32:25 +0000 (09:32 -0600)
Spam_score.php

index 4d2aef4152647559ede9f91184a9c2b41fba4938..c815b42e368f3cebdb62f1963f7e2b3f34b4c894 100644 (file)
@@ -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));