From: skodak Date: Tue, 27 May 2008 09:34:03 +0000 (+0000) Subject: MDL-15007 is_aggregationcoef_used should be public X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=4e9ca99131ab96eb53c3e4295d8d419cd04b4fd1;p=moodle.git MDL-15007 is_aggregationcoef_used should be public --- diff --git a/lib/grade/grade_category.php b/lib/grade/grade_category.php index cd6a188e70..2c17322723 100644 --- a/lib/grade/grade_category.php +++ b/lib/grade/grade_category.php @@ -768,7 +768,7 @@ class grade_category extends grade_object { * Returns true if category uses special aggregation coeficient * @return boolean true if coeficient used */ - private function is_aggregationcoef_used() { + public function is_aggregationcoef_used() { return ($this->aggregation == GRADE_AGGREGATE_WEIGHTED_MEAN or $this->aggregation == GRADE_AGGREGATE_EXTRACREDIT_MEAN or $this->aggregation == GRADE_AGGREGATE_SUM);