Basic class fix for calc interval, smarty test page fix

- smarty test page used old variable names
- the interval date calc function was private but should be public
static
This commit is contained in:
Clemens Schwaighofer
2019-06-28 11:50:40 +09:00
parent d87033d57d
commit 0d89eea1af
2 changed files with 4 additions and 4 deletions

View File

@@ -1453,7 +1453,7 @@ class Basic
// PARAMS: start date, end date
// RETURN: overall days, week days, weekend days as array 0...2 or named
// DESC : calculates the days between two dates
private function calcDaysInterval($start_date, $end_date, $return_named = false)
public static function calcDaysInterval($start_date, $end_date, $return_named = false)
{
// pos 0 all, pos 1 weekday, pos 2 weekend
$days = array ();