Fix KDM email start/end time substitution.
authorCarl Hetherington <cth@carlh.net>
Sat, 27 Aug 2016 19:27:40 +0000 (20:27 +0100)
committerCarl Hetherington <cth@carlh.net>
Sat, 27 Aug 2016 19:27:40 +0000 (20:27 +0100)
src/lib/cinema_kdms.cc

index 6a0349b3125cb97052bc6d8fc0607052a3218c5d..e82a987e846f49dc1ea0bd772fecadc8e80f4456 100644 (file)
@@ -164,14 +164,14 @@ CinemaKDMs::email (
 
                string subject = config->kdm_subject();
                boost::algorithm::replace_all (subject, "$CPL_NAME", cpl_name);
-               boost::algorithm::replace_all (subject, "$START_TIME", name_values['f']);
-               boost::algorithm::replace_all (subject, "$END_TIME", name_values['t']);
+               boost::algorithm::replace_all (subject, "$START_TIME", name_values['b']);
+               boost::algorithm::replace_all (subject, "$END_TIME", name_values['e']);
                boost::algorithm::replace_all (subject, "$CINEMA_NAME", i.cinema->name);
 
                string body = config->kdm_email().c_str();
                boost::algorithm::replace_all (body, "$CPL_NAME", cpl_name);
-               boost::algorithm::replace_all (body, "$START_TIME", name_values['f']);
-               boost::algorithm::replace_all (body, "$END_TIME", name_values['t']);
+               boost::algorithm::replace_all (body, "$START_TIME", name_values['b']);
+               boost::algorithm::replace_all (body, "$END_TIME", name_values['e']);
                boost::algorithm::replace_all (body, "$CINEMA_NAME", i.cinema->name);
 
                string screens;