MDL-18927 fixed performance regression

This commit is contained in:
skodak 2009-04-22 19:40:21 +00:00
parent 842feb0612
commit 121d8006e4
2 changed files with 5 additions and 5 deletions

View file

@ -1189,7 +1189,7 @@ class grade_item extends grade_object {
} else if ($this->is_category_item()) {
if ($fulltotal) {
$category = $this->get_parent_category();
$category = $this->load_parent_category();
$a = new stdClass();
$a->category = $category->get_name();
return get_string('categorytotalfull', 'grades', $a);
@ -1977,9 +1977,9 @@ class grade_item extends grade_object {
* grade item.
*/
public function get_coefstring() {
$parent_category = $this->get_parent_category();
$parent_category = $this->load_parent_category();
if ($this->is_category_item()) {
$parent_category = $parent_category->get_parent_category();
$parent_category = $parent_category->load_parent_category();
}
if ($parent_category->is_aggregationcoef_used()) {