Permalink
Browse files

Fixed logic for $CFG->nofixday : http://moodle.org/mod/forum/discuss.…

  • Loading branch information...
moodler
moodler committed May 12, 2005
1 parent acd2279 commit c3a3c5b8b295dddfd352ff08ee17bf0bcc4e52f8
Showing with 4 additions and 2 deletions.
  1. +4 −2 lib/moodlelib.php
View
@@ -708,8 +708,10 @@ function userdate($date, $format='', $timezone=99, $fixday = true) {
$format = $strftimedaydatetime;
}
- $formatnoday = str_replace('%d', 'DD', $format);
- if ($fixday and empty($CFG->nofixday)) { // Config.php can force %d not to be fixed.
+ if (!empty($CFG->nofixday)) { // Config.php can force %d not to be fixed.
+ $fixday = false;
+ } else if ($fixday) {
+ $formatnoday = str_replace('%d', 'DD', $format);
$fixday = ($formatnoday != $format);
}

0 comments on commit c3a3c5b

Please sign in to comment.