diff --git a/ui/ui/user-dashboard.tpl b/ui/ui/user-dashboard.tpl index 2e1cb5db..f797accd 100644 --- a/ui/ui/user-dashboard.tpl +++ b/ui/ui/user-dashboard.tpl @@ -53,7 +53,10 @@

{Lang::T('Announcement')}

- {include file="$_path/../pages/Announcement_Customer.html"} + {$Announcement_Customer = "{$PAGES_PATH}/Announcement_Customer.html"} + {if file_exists($Announcement_Customer)} + {include file=$Announcement_Customer} + {/if}
diff --git a/ui/ui/user-login.tpl b/ui/ui/user-login.tpl index 2340f517..69e7a1f0 100644 --- a/ui/ui/user-login.tpl +++ b/ui/ui/user-login.tpl @@ -32,7 +32,10 @@
{Lang::T('Announcement')}
- {include file="$_path/../pages/Announcement.html"} + {$Announcement = "{$PAGES_PATH}/Announcement.html"} + {if file_exists($Announcement)} + {include file=$Announcement} + {/if}