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:
@@ -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 ();
|
||||
|
||||
Reference in New Issue
Block a user