From b8545396e3c319391b39c3b6d73800c61021701b Mon Sep 17 00:00:00 2001 From: "o.pinke" Date: Fri, 4 Mar 2022 20:16:33 +0100 Subject: [PATCH] show noti if client missing --- includes/include.mod_rewrite_content.php | 4 +++- includes/include.mod_rewrite_contentexpert.php | 4 +++- includes/include.mod_rewrite_contenttest.php | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/includes/include.mod_rewrite_content.php b/includes/include.mod_rewrite_content.php index 05227e0..fecd30c 100644 --- a/includes/include.mod_rewrite_content.php +++ b/includes/include.mod_rewrite_content.php @@ -23,8 +23,10 @@ global $client, $cfg; ##### Initialization if ((int) $client <= 0) { - // if there is no client selected, display empty page + // if there is no client selected, display noti $oPage = new cPage; + $oNoti = new Contenido_Notification(); + $oPage->setContent($oNoti->returnNotification("warning", i18n("No client set!"))); $oPage->render(); return; } diff --git a/includes/include.mod_rewrite_contentexpert.php b/includes/include.mod_rewrite_contentexpert.php index f6581bc..cfd0b18 100644 --- a/includes/include.mod_rewrite_contentexpert.php +++ b/includes/include.mod_rewrite_contentexpert.php @@ -23,8 +23,10 @@ global $client, $cfg; ##### Initialization if ((int) $client <= 0) { - // if there is no client selected, display empty page + // if there is no client selected, display noti $oPage = new cPage; + $oNoti = new Contenido_Notification(); + $oPage->setContent($oNoti->returnNotification("warning", i18n("No client set!"))); $oPage->render(); return; } diff --git a/includes/include.mod_rewrite_contenttest.php b/includes/include.mod_rewrite_contenttest.php index 90a1032..52c3d09 100644 --- a/includes/include.mod_rewrite_contenttest.php +++ b/includes/include.mod_rewrite_contenttest.php @@ -31,8 +31,10 @@ global $client, $cfg; ##### Initialization if ((int) $client <= 0) { - // if there is no client selected, display empty page + // if there is no client selected, display noti $oPage = new cPage; + $oNoti = new Contenido_Notification(); + $oPage->setContent($oNoti->returnNotification("warning", i18n("No client set!"))); $oPage->render(); return; }