summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal Luçi <ermal.luci@gmail.com>2012-08-29 23:36:02 -0700
committerErmal Luçi <ermal.luci@gmail.com>2012-08-29 23:36:02 -0700
commitf68a7f714689a8ccbd182dddc9ad29ac6fc1f3ee (patch)
treeb866a162ed09aa3dd8c6207eb6db00d290f7954e
parent0649859138161c1cf49032348114cd683e212fbe (diff)
parent50b3fc5a0e1fb99747c325f6f5746f47d01e4f04 (diff)
downloadpfsense-f68a7f714689a8ccbd182dddc9ad29ac6fc1f3ee.zip
pfsense-f68a7f714689a8ccbd182dddc9ad29ac6fc1f3ee.tar.gz
Merge pull request #217 from phildd/master
Month matching for scheduler rules
-rw-r--r--etc/inc/filter.inc7
1 files changed, 2 insertions, 5 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index c5a8f70..8da51bd 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -3015,7 +3015,7 @@ function filter_get_time_based_rule_status($schedule) {
if($timeday['month'])
$month = $timeday['month'];
else
- $week = "";
+ $month = "";
if($timeday['day'])
$day = $timeday['day'];
else
@@ -3066,9 +3066,6 @@ function filter_tdr_day($schedule) {
* Calculate day of month.
* IE: 29th of may
*/
- $weekday = date("w");
- if($weekday == 0)
- $weekday = 7;
$date = date("d");
$defined_days = explode(",", $schedule);
if($g['debug'])
@@ -3096,7 +3093,7 @@ function filter_tdr_hour($schedule) {
function filter_tdr_position($schedule) {
global $g;
/*
- * Calculate possition, ie: day of week.
+ * Calculate position, ie: day of week.
* Sunday = 7, Monday = 1, Tuesday = 2
* Weds = 3, Thursday = 4, Friday = 5,
* Saturday = 6
OpenPOWER on IntegriCloud