Skip to content
Permalink
Browse files

fix search blog - refs BT#12324

  • Loading branch information...
aragonc committed Mar 20, 2017
1 parent bea6166 commit 4794ebbb005052a32c9b19656ba407cbef9e6a79
Showing with 3 additions and 3 deletions.
  1. +3 −3 main/blog/blog.php
@@ -22,7 +22,7 @@
api_protect_course_script(true);
$lib_path = api_get_path(LIBRARY_PATH);
$blog_table_attachment = Database::get_course_table(TABLE_BLOGS_ATTACHMENT);
$blog_table_attachment = Database::get_course_table(TABLE_BLOGS_ATTACHMENT);
$nameTools = get_lang('Blogs');
$DaysShort = api_get_week_days_short();
@@ -182,7 +182,7 @@
if (isset($_GET['action']) && $_GET['action'] == 'view_post') {
$task_id = (isset ($_GET['task_id']) && is_numeric($_GET['task_id'])) ? $_GET['task_id'] : 0;
if (isset($_GET['do']) && $_GET['do'] == 'delete_comment') {
if (isset($_GET['do']) && $_GET['do'] == 'delete_comment'){
if (api_is_allowed('BLOG_'.$blog_id, 'article_comments_delete', $task_id)) {
Blog :: delete_comment($blog_id, (int)$_GET['post_id'],(int)$_GET['comment_id']);
$return_message = array('type' => 'confirmation', 'message' => get_lang('CommentDeleted'));
@@ -192,7 +192,7 @@
}
}
if (isset($_GET['do']) && $_GET['do'] == 'delete_article') {
if (isset($_GET['do']) && $_GET['do'] == 'delete_article'){
if (api_is_allowed('BLOG_'.$blog_id, 'article_delete', $task_id)) {
Blog :: delete_post($blog_id, (int)$_GET['article_id']);
$action = ''; // Article is gone, go to blog home

0 comments on commit 4794ebb

Please sign in to comment.
You can’t perform that action at this time.