From ece966f06e29973f8b9dd0938b18ec3b1a61684b Mon Sep 17 00:00:00 2001 From: nicolasconnault Date: Wed, 3 Oct 2007 12:22:25 +0000 Subject: [PATCH] MDL-11482 Resolved the sum icon issue (added a new x-bar icon) and resolved a dependency problem in moodlelib --- course/lib.php | 13 +++++++------ grade/report/grader/lib.php | 2 +- lib/moodlelib.php | 1 + pix/i/mean.gif | Bin 0 -> 962 bytes pix/t/mean.gif | Bin 0 -> 309 bytes 5 files changed, 9 insertions(+), 7 deletions(-) create mode 100644 pix/i/mean.gif create mode 100644 pix/t/mean.gif diff --git a/course/lib.php b/course/lib.php index 123c7e85da..41d1d4ce96 100644 --- a/course/lib.php +++ b/course/lib.php @@ -2078,13 +2078,14 @@ function get_course_section($section, $courseid) { $id = insert_record("course_sections", $cw); return get_record("course_sections", "id", $id); } - +/** + * Given a full mod object with section and course already defined, adds this module to that section. + * + * @param object $mod + * @param int $beforemod An existing ID which we will insert the new module before + * @return int The course_sections ID where the mod is inserted + */ function add_mod_to_section($mod, $beforemod=NULL) { -/// Given a full mod object with section and course already defined -/// If $before is specified, then this is an existing ID which we -/// will insert the new module before -/// -/// Returns the course_sections ID where the mod is inserted if ($section = get_record("course_sections", "course", "$mod->course", "section", "$mod->section")) { diff --git a/grade/report/grader/lib.php b/grade/report/grader/lib.php index 98fd2dae7d..a68bc33cf6 100644 --- a/grade/report/grader/lib.php +++ b/grade/report/grader/lib.php @@ -374,7 +374,7 @@ class grade_report_grader extends grade_report { $icons = array('eyecons' => 't/hide.gif', 'calculations' => 't/calc.gif', 'locks' => 't/lock.gif', - 'averages' => 't/sigma.gif', + 'averages' => 't/mean.gif', 'nooutcomes' => 't/outcomes.gif'); $pref_name = 'grade_report_show' . $type; diff --git a/lib/moodlelib.php b/lib/moodlelib.php index 8edfe63e69..6d7756d18f 100644 --- a/lib/moodlelib.php +++ b/lib/moodlelib.php @@ -2852,6 +2852,7 @@ function truncate_userinfo($info) { function delete_user($user) { global $CFG; require_once($CFG->libdir.'/grouplib.php'); + require_once($CFG->libdir.'/gradelib.php'); begin_sql(); diff --git a/pix/i/mean.gif b/pix/i/mean.gif new file mode 100644 index 0000000000000000000000000000000000000000..ba300ddef5073e32ffbfd875e1aef4953c1c3895 GIT binary patch literal 962 zcmV;z13mmlNk%w1VGsZi0OtSz000010RaL60s{jB1Ox;H1qB8M1_uWR2nYxX2?+`c z3JVJh3=9kn4Gj(s4i66x5D*X%5fKs+5)%^>6ciK{6%`g178e&67#J8C85tTH8XFrM z92^`S9UUGX9v>ecARr(iAt53nA|oRsBqSsyB_$>%CMPE+C@3f?DJd!{Dl021EG#T7 zEiEoCE-x=HFfcGNF)=bSGBYzXG&D3dH8nOiHa9mnI5;>tIXOByIy*Z%JUl!-Jv}}? zK0iM{KtMo2K|w-7LPJACL_|bIMMXwNMn^|SNJvOYNl8jdN=r*iOiWBoO-)WtPESuy zP*6}&QBhJ-Qd3h?R8&+|RaI72R##V7SXfwDSy@_IT3cINTwGjTU0q&YUSD5dU|?Wj zVPRroVq;@tWMpJzWo2e&W@l$-XlQ6@X=!R|YHMq2Y;0_8ZEbFDZf|dIaBy&OadC2T za&vQYbaZreb#-=jc6WDoczAeud3kzzdV70&e0+R;eSLm@et&;|fPjF3fq{a8f`fyD zgoK2Jg@uNOhKGlTh=_=ZiHVAeii?YjjEszpjg5|uj*pLzkdTm(k&%*;l9Q8@l$4Z} zm6ev3mY0{8n3$NEnVFiJnwy)OoSdAUot>VZo}ZteprD|kp`oIpqNAguq@<*!rKP5( zrl+T;sHmu^si~@}s;jH3tgNi9t*x%EuCK4Ju&}VPv9YqUva_?Zw6wIfwY9dkwzs#p zxVX5vxw*Q!y1To(yu7@dCU$jHda z$;ryf%FD~k%*@Qq&CSlv&d<-!(9qD)(b3Y<($mw^)YR0~)z#M4*4Nk9*x1lt)=I7_<=;-L_>FMg~>g((4 z?Ck9A?d|UF?(gsK@bK{Q@$vHV^7Hfa^z`)g_4W4l_V@Sq`1ttw`T6?#`uqF){QUg= z{r&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