Commit 71256a67 authored by Chris Graham's avatar Chris Graham
Browse files

Fixed MANTIS-4648 (News blocks should be decached after adding non-validated news)

parent 2c05e244
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -400,7 +400,6 @@ function add_news($title, $news, $author = null, $validated = 1, $allow_rating =
        seo_meta_set_for_explicit('news', strval($id), $meta_keywords, $meta_description);
    }

    if ($validated == 1) {
    decache('main_news');
    decache('main_image_fader_news');
    decache('side_news');
@@ -408,6 +407,7 @@ function add_news($title, $news, $author = null, $validated = 1, $allow_rating =
    decache('bottom_news');
    decache('side_news_categories');

    if ($validated == 1) {
        dispatch_news_notification($id, $title, $main_news_category_id);
    }