View | Details | Raw Unified | Return to bug 5497
Collapse All | Expand All

(-)a/classes/submission/trackDirector/TrackDirectorAction.inc.php (-4 / +3 lines)
 Lines 335-348   class TrackDirectorAction extends Action { Link Here 
335
						$reviewDueDate = strftime(Config::getVar('general', 'date_format_short'), strtotime($reviewAssignment->getDateDue()));
335
						$reviewDueDate = strftime(Config::getVar('general', 'date_format_short'), strtotime($reviewAssignment->getDateDue()));
336
					} else {
336
					} else {
337
						if ($schedConf->getSetting('reviewDeadlineType') == REVIEW_DEADLINE_TYPE_ABSOLUTE) {
337
						if ($schedConf->getSetting('reviewDeadlineType') == REVIEW_DEADLINE_TYPE_ABSOLUTE) {
338
							$reviewDeadlineDate = strtotime($schedConf->getSetting('numWeeksPerReviewAbsolute'));
338
							$reviewDeadlineDate = $schedConf->getSetting('numWeeksPerReviewAbsolute');
339
							$daysDiff = ($reviewDeadlineDate - strtotime(date("Y-m-d"))) / (60 * 60 * 24);
339
							$reviewDueDate = strftime(Config::getVar('general', 'date_format_short'), $reviewDeadlineDate);
340
							$numWeeks = max(round($daysDiff / 7), 2);
341
						} elseif ($schedConf->getSetting('reviewDeadlineType') == REVIEW_DEADLINE_TYPE_RELATIVE) {
340
						} elseif ($schedConf->getSetting('reviewDeadlineType') == REVIEW_DEADLINE_TYPE_RELATIVE) {
342
							$numWeeks = max((int) $schedConf->getSetting('numWeeksPerReviewRelative'), 2);
341
							$numWeeks = max((int) $schedConf->getSetting('numWeeksPerReviewRelative'), 2);
342
							$reviewDueDate = strftime(Config::getVar('general', 'date_format_short'), strtotime('+' . $numWeeks . ' week'));
343
						}
343
						}
344
						
344
						
345
						$reviewDueDate = strftime(Config::getVar('general', 'date_format_short'), strtotime('+' . $numWeeks . ' week'));
346
					}
345
					}
347
346
348
					$submissionUrl = Request::url(null, null, 'reviewer', 'submission', $reviewId, $reviewerAccessKeysEnabled?array('key' => 'ACCESS_KEY'):array());
347
					$submissionUrl = Request::url(null, null, 'reviewer', 'submission', $reviewId, $reviewerAccessKeysEnabled?array('key' => 'ACCESS_KEY'):array());

Return to bug 5497