From 25b091e6e06862ee7f7631471c47f9cd94a2019f Mon Sep 17 00:00:00 2001 From: M.Gergo Date: Wed, 18 Mar 2020 03:21:19 +0100 Subject: Rev: 4622 --- mayor-orig/mayor-naplo/log/mayor-naplo.rev | 2 +- mayor-orig/mayor-naplo/www/include/modules/naplo/base/rights.php | 1 + .../mayor-naplo/www/policy/private/naplo/haladasi/haladasi-pre.php | 5 +++-- .../www/skin/classic/module-naplo/javascript/naplo.jquery.min.js | 6 +++++- 4 files changed, 10 insertions(+), 4 deletions(-) (limited to 'mayor-orig/mayor-naplo') diff --git a/mayor-orig/mayor-naplo/log/mayor-naplo.rev b/mayor-orig/mayor-naplo/log/mayor-naplo.rev index a28d2964..25199c9d 100644 --- a/mayor-orig/mayor-naplo/log/mayor-naplo.rev +++ b/mayor-orig/mayor-naplo/log/mayor-naplo.rev @@ -1 +1 @@ -4620 +4622 diff --git a/mayor-orig/mayor-naplo/www/include/modules/naplo/base/rights.php b/mayor-orig/mayor-naplo/www/include/modules/naplo/base/rights.php index fd538da0..a0377a17 100644 --- a/mayor-orig/mayor-naplo/www/include/modules/naplo/base/rights.php +++ b/mayor-orig/mayor-naplo/www/include/modules/naplo/base/rights.php @@ -434,6 +434,7 @@ if (__NAPLO_INSTALLED === true) { } elseif (defined('__PARENTDIAKID')) { define('__USERDIAKID',__PARENTDIAKID); define('__USERSZULOID', getSzuloIdByUserAccount(("$page/$sub/$f" != 'naplo//diakValaszto'))); +// } elseif (_POLICY === 'parent') { } elseif ("$page/$sub/$f" != 'naplo//diakValaszto') { header('Location: '.location('index.php?page=naplo&f=diakValaszto')); } else { diff --git a/mayor-orig/mayor-naplo/www/policy/private/naplo/haladasi/haladasi-pre.php b/mayor-orig/mayor-naplo/www/policy/private/naplo/haladasi/haladasi-pre.php index 31511d7b..79d49bd0 100644 --- a/mayor-orig/mayor-naplo/www/policy/private/naplo/haladasi/haladasi-pre.php +++ b/mayor-orig/mayor-naplo/www/policy/private/naplo/haladasi/haladasi-pre.php @@ -110,6 +110,7 @@ if ( $skin == 'ajax' // set defaults ++ // if (strtotime($igDt) > strtotime($_TANEV['zarasDt'])) $igDt = $_TANEV['zarasDt']; $maxIgDt = date('Y-m-d', strtotime('next Saturday', strtotime($_TANEV['kovetkezoKezdesDt']))); + if (strtotime($igDt) > strtotime($maxIgDt)) $igDt = $maxIgDt; elseif (strtotime($igDt) < strtotime($_TANEV['kezdesDt'])) $igDt = $_TANEV['kezdesDt']; if (date('w', strtotime($igDt)) == 0) $igDt = date('Y-m-d',strtotime('-1 days',strtotime($igDt))); // Hogy vasárnap még a múltheti látszódjon @@ -269,10 +270,10 @@ if ( $skin == 'ajax' ) && (__NAPLOADMIN || __VEZETOSEG)) { $_NAPOK = _genNapok($tolDt,$igDt); for ($i=0; $i