From: gustav_delius Date: Sun, 25 Jan 2004 19:37:04 +0000 (+0000) Subject: minor fixes, including bugs 997, 998 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=2e39d2f810401468e8a999b865e81b23e2b2ca21;p=moodle.git minor fixes, including bugs 997, 998 --- diff --git a/course/edit.html b/course/edit.html index 82b709a544..00058ef194 100644 --- a/course/edit.html +++ b/course/edit.html @@ -1,67 +1,76 @@ +showreports)) { + $form->showreports = 0; + } + if (!isset($form->maxbytes)) { + $form->maxbytes = 0; + } +?>
- - + + - - + + - - + + - - + + - - + + - - + + ?> - - + + ?> - - + + - - + + - - + + - - + + @@ -130,74 +139,74 @@ - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + +

:

:

category", ""); helpbutton("coursecategory", get_string("category")); ?> -

:

+

:

-

:

+

:

-

:

:

summary); helpbutton("text", get_string("helptext")); if (isset($err["summary"])) formerr($err["summary"]); ?> -

:

:

courseformats, "format", "$form->format", ""); helpbutton("courseformats", get_string("courseformats")); ?> -

:

:

startdate); helpbutton("coursestartdate", get_string("startdate")); - ?>

:

:

numsections", ""); helpbutton("coursenumsections", get_string("numberweeks")); - ?>

:

:

groupmodeforce, ""); helpbutton("groupmodeforce", get_string("groupmodeforce")); ?> -

:

:

visible, ""); helpbutton("courseavailability", get_string("availability")); ?> -

:

+

:

-

:

:

guest, ""); helpbutton("guestaccess", get_string("opentoguests")); ?> -

:

:

:

showrecent, ""); helpbutton("courserecent", get_string("recentactivity")); ?> -

:

:

showgrades, ""); helpbutton("coursegrades", get_string("grades")); ?> -

:

:

showreports, ""); helpbutton("coursereports", get_string("activityreport")); ?> -

:

:

maxbytes); choose_from_menu ($choices, "maxbytes", $form->maxbytes, ""); helpbutton("courseuploadsize", get_string("maximumupload")); ?> -

:

- () +

:

+ () -

:

- () +

:

+ () -

:

- () +

:

+ () -

:

- () +

:

+ () -
">">
diff --git a/lib/datalib.php b/lib/datalib.php index 0c88b64796..3e59fc40de 100644 --- a/lib/datalib.php +++ b/lib/datalib.php @@ -1149,7 +1149,7 @@ function get_course_students($courseid, $sort="s.timeaccess", $dir="", $page=0, } return get_records_sql("SELECT u.id, u.username, u.firstname, u.lastname, u.maildisplay, u.mailformat, - u.email, u.city, u.country, u.lastlogin, u.picture, s.timeaccess as lastaccess + u.email, u.city, u.country, u.lastlogin, u.picture, u.lang, u.timezone, s.timeaccess as lastaccess FROM {$CFG->prefix}user u, {$CFG->prefix}user_students s WHERE $select @@ -1200,7 +1200,7 @@ function get_course_teachers($courseid, $sort="t.authority ASC") { global $CFG; return get_records_sql("SELECT u.id, u.username, u.firstname, u.lastname, u.maildisplay, u.mailformat, - u.email, u.city, u.country, u.lastlogin, u.picture, + u.email, u.city, u.country, u.lastlogin, u.picture, u.lang, u.timezone, t.authority,t.role,t.editall,t.timeaccess as lastaccess FROM {$CFG->prefix}user u, {$CFG->prefix}user_teachers t @@ -1259,7 +1259,7 @@ function get_site_users($sort="u.lastaccess DESC", $select="") { $selectinfo = $select; } else { $selectinfo = "u.id, u.username, u.firstname, u.lastname, u.maildisplay, u.mailformat,". - "u.email, u.city, u.country, u.lastaccess, u.lastlogin, u.picture"; + "u.email, u.city, u.country, u.lastaccess, u.lastlogin, u.picture, u.lang, u.timezone"; } diff --git a/theme/standard/styles.php b/theme/standard/styles.php index 11a51fcd11..5e9afd8162 100644 --- a/theme/standard/styles.php +++ b/theme/standard/styles.php @@ -4,7 +4,7 @@ $nomoodlecookie = true; require_once("../../config.php"); - $themeurl = style_sheet_setup(filemtime("styles.php"), 300, $themename); + $themeurl = style_sheet_setup(filemtime("styles.php"), 300, 'standard'); /// From here on it's nearly a normal stylesheet. /// First are some CSS definitions for normal tags, diff --git a/user/edit.html b/user/edit.html index 6703bcddf1..1ec77137b0 100644 --- a/user/edit.html +++ b/user/edit.html @@ -2,6 +2,9 @@ if (!isset($user->htmleditor)) { $user->htmleditor = 1; } + if (!isset($user->picture)) { + $user->picture = NULL; + } if (empty($user->lang)) { $user->lang = $CFG->lang; }