You are receiving this message because you have an upcoming reservation on {$ResourceName} and its availability has changed.
+ +{$Message|nl2br}
+ + diff --git a/lib/Application/Authentication/CaptchaService.php b/lib/Application/Authentication/CaptchaService.php index f04e74992..70d7d3fba 100644 --- a/lib/Application/Authentication/CaptchaService.php +++ b/lib/Application/Authentication/CaptchaService.php @@ -91,10 +91,10 @@ public static function Create() new BooleanConverter()) ) { - Log::Debug('Using ReCaptchaService'); +// Log::Debug('Using ReCaptchaService'); return new ReCaptchaService(); } - Log::Debug('Using CaptchaService'); +// Log::Debug('Using CaptchaService'); return new CaptchaService(); } diff --git a/lib/Config/Configuration.php b/lib/Config/Configuration.php index fa29efce7..d94d9d38a 100644 --- a/lib/Config/Configuration.php +++ b/lib/Config/Configuration.php @@ -99,7 +99,7 @@ class Configuration implements IConfiguration const DEFAULT_CONFIG_ID = 'booked'; const DEFAULT_CONFIG_FILE_PATH = 'config/config.php'; - const VERSION = '2.8.4'; + const VERSION = '2.8.5'; protected function __construct() { diff --git a/lib/Email/Messages/ResourceStatusChangeEmail.php b/lib/Email/Messages/ResourceStatusChangeEmail.php new file mode 100644 index 000000000..6d94a6ee9 --- /dev/null +++ b/lib/Email/Messages/ResourceStatusChangeEmail.php @@ -0,0 +1,59 @@ +. + */ + +require_once(ROOT_DIR . 'lib/Email/namespace.php'); + +class ResourceStatusChangeEmail extends EmailMessage +{ + + private $email; + /** + * @var BookableResource + */ + private $resource; + private $message; + + /** + * @param string $email + * @param BookableResource $resource + * @param string $message + * @param string $language + */ + public function __construct($email, BookableResource $resource, $message, $language) + { + parent::__construct($language); + $this->email = $email; + $this->resource = $resource; + $this->message = $message; + } + + public function To() + { + return new EmailAddress($this->email); + } + + public function Subject() + { + return $this->Translate('ResourceStatusChangedSubject', array($this->resource->GetName())); + } + + public function Body() + { + $this->Set('ResourceName', $this->resource->GetName()); + $this->Set('Message', $this->message); + return $this->FetchTemplate('ResourceStatusChanged.tpl'); + } +} \ No newline at end of file diff --git a/tpl/Admin/Resources/manage_resources.tpl b/tpl/Admin/Resources/manage_resources.tpl index 2441c9fe7..ad3bb3e49 100644 --- a/tpl/Admin/Resources/manage_resources.tpl +++ b/tpl/Admin/Resources/manage_resources.tpl @@ -227,17 +227,17 @@ along with Booked Scheduler. If not, see