summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e2861e5)
raw | patch | inline | side by side (parent: e2861e5)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 6 Dec 2007 08:43:09 +0000 (08:43 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 6 Dec 2007 08:43:09 +0000 (08:43 +0000) |
-Vacations templates will now be able to use %start %stop as replacement for Vacation-Start-Stop time.
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@8036 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@8036 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/personal/mail/class_mailAccount.inc | patch | blob | history |
diff --git a/plugins/personal/mail/class_mailAccount.inc b/plugins/personal/mail/class_mailAccount.inc
index 5f1056d6ab9aba552727f2b9c1df72dad687885c..a3b12bf511b2aa21fde3f04ba666aa0f124da4bf 100644 (file)
$contents= preg_replace("/%$val/",
$this->parent->by_object['user']->$val, $contents);
}
+
+ /* Replace vacation start and end time */
+ if(preg_match("/%start/",$contents)){
+ $contents = preg_replace("/%start/",date("d.m.Y",$this->gosaVacationStart),$contents);
+ }
+ if(preg_match("/%end/",$contents)){
+ $contents = preg_replace("/%end/",date("d.m.Y",$this->gosaVacationStop),$contents);
+ }
}
/* Save message */
$message[]= _("You specified Spam settings, but there is no Folder specified.");
}
- if (preg_match('/V/', $this->gosaMailDeliveryMode) && $this->gosaVacationStart >= $this->gosaVacationStop){
+ if (preg_match('/V/', $this->gosaMailDeliveryMode) && $this->gosaVacationStart > $this->gosaVacationStop){
$message[]= _("Time interval to show vacation message is not valid.");
}