mirror of
https://github.com/e107inc/e107.git
synced 2025-08-10 16:46:50 +02:00
news preview only in admin area
This commit is contained in:
@@ -225,7 +225,7 @@ class news_shortcodes extends e_shortcode
|
||||
{
|
||||
$es2 = POST_EXTENDEDSTRING;
|
||||
}
|
||||
if (isset($_POST['preview']))
|
||||
if (deftrue('ADMIN_AREA') && isset($_POST['preview']))
|
||||
{
|
||||
return $es1.EXTENDEDSTRING.$es2."<br />".$this->news_item['news_extended'];
|
||||
}
|
||||
|
Reference in New Issue
Block a user