26bb6a8a by Jeff Balicki

fixed titles

1 parent 06468163
......@@ -69,6 +69,7 @@ function display_page()
$type = $_POST['type'];
$title = $_POST['title'];
$sendto = $_POST['sendto'];
$executeDate = ($type == 'scheduled' || $type == 'newsletter') ? $_POST['execute_date'] : '0000-00-00 00:00:00';
$trigger = ($type == 'scheduled' || $type == 'newsletter') ? 'scheduled-cron-job' : $_POST['trigger'];
......@@ -101,7 +102,7 @@ function display_page()
$system = $_POST[$lang . '_system'];
$pushMessageTime = $_POST[$lang . '_push_notifications_time'];
$title = $_POST[$lang . '_push_notifications_title'];
$push_title = $_POST[$lang . '_push_notifications_title'];
$message = $_POST[$lang . '_push_notifications_message'];
$link = $_POST[$lang . '_push_notifications_link'];
$status = $_POST[$lang . '_push_notifications_status'];
......@@ -130,7 +131,7 @@ function display_page()
$pushMessageData,
[
'push_message_time' => $pushMessageTime,
$lang . '_title' => $title,
$lang . '_title' => $push_title,
$lang . '_message' => $message,
$lang . '_link' => $link,
$lang . '_status' => $status,
......@@ -431,7 +432,7 @@ function create_notification()
$system = $_POST[$lang . '_system'];
$pushMessageTime = $_POST[$lang . '_push_notifications_time'];
$title = $_POST[$lang . '_push_notifications_title'];
$push_title = $_POST[$lang . '_push_notifications_title'];
$message = $_POST[$lang . '_push_notifications_message'];
$link = $_POST[$lang . '_push_notifications_link'];
$status = $_POST[$lang . '_push_notifications_status'];
......@@ -457,7 +458,7 @@ function create_notification()
$pushMessageData,
[
'push_message_time' => $pushMessageTime,
$lang . '_title' => $title,
$lang . '_title' => $push_title,
$lang . '_message' => $message,
$lang . '_link' => $link,
$lang . '_status' => $status,
......
......@@ -6,6 +6,7 @@ use Tz\WordPress\Tools\Notifications\Settings;
function getInputFormValues($validation, $name)
{
return ($validation->set_value($name) != '') ? $validation->set_value($name) : (!empty($_POST[$name])) ? $_POST[$name] : '';
}
$newsletter = get_posts_with_fallback(
......