summaryrefslogtreecommitdiff
path: root/includes/pages/admin_news.php
diff options
context:
space:
mode:
authormsquare <msquare@notrademark.de>2017-12-26 17:08:29 +0100
committerGitHub <noreply@github.com>2017-12-26 17:08:29 +0100
commita3905dc8e8347716c69ab7348a7a93a9c3422d5e (patch)
tree2b1794f92fd00a130b4fb8696bd6bbbaebd676cb /includes/pages/admin_news.php
parentb9bbcb93603b4416da2fb59b63c7dbcdf4935bba (diff)
parent6953090e7d789f52761a8f4b505cfbcf0c347018 (diff)
Merge pull request #393 from MyIgel/master
Removed some short ifs from Shifts_view.php, add warning when editing HTML
Diffstat (limited to 'includes/pages/admin_news.php')
-rw-r--r--includes/pages/admin_news.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/includes/pages/admin_news.php b/includes/pages/admin_news.php
index eb3a250e..7f912773 100644
--- a/includes/pages/admin_news.php
+++ b/includes/pages/admin_news.php
@@ -29,6 +29,15 @@ function admin_news()
switch ($request->input('action')) {
case 'edit':
$user_source = User($news['UID']);
+ if (
+ !in_array('admin_news_html', $privileges)
+ && strip_tags($news['Text']) != $news['Text']
+ ) {
+ $html .= warning(
+ _('This message contains HTML. After saving the post some formatting will be lost!'),
+ true
+ );
+ }
$html .= form(
[