From 0edcaf3f6977573c10779dee368b711c10f76945 Mon Sep 17 00:00:00 2001 From: osaajani Date: Wed, 4 Dec 2019 05:08:46 +0100 Subject: [PATCH] temporary remove mms option --- controllers/publics/Scheduled.php | 4 +++- templates/setting/show.php | 6 ++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/controllers/publics/Scheduled.php b/controllers/publics/Scheduled.php index 0b648d5..aeff877 100755 --- a/controllers/publics/Scheduled.php +++ b/controllers/publics/Scheduled.php @@ -387,6 +387,7 @@ namespace controllers\publics; $success = $this->internal_scheduled->update_for_user($id_user, $id_scheduled, $at, $text, $origin, $flash, $numbers, $contacts, $groups, $conditional_groups); //Check for media + /* $current_media = $scheduled['current_media'] ?? false; if (!$current_media) { @@ -405,11 +406,12 @@ namespace controllers\publics; { continue; } + */ $nb_update += 1; } - if (!$nb_update != count($scheduleds)) + if ($nb_update != count($scheduleds)) { \FlashMessage\FlashMessage::push('danger', 'Certains SMS n\'ont pas été mis à jour.'); return $this->redirect(\descartes\Router::url('Scheduled', 'list')); diff --git a/templates/setting/show.php b/templates/setting/show.php index c7675ec..416bc2f 100755 --- a/templates/setting/show.php +++ b/templates/setting/show.php @@ -53,7 +53,8 @@ - + +

Détection des URL dans les discussions