diff --git a/main/blog/blog.php b/main/blog/blog.php index 39b9cf1a09..820071f0f4 100755 --- a/main/blog/blog.php +++ b/main/blog/blog.php @@ -207,56 +207,32 @@ if (isset($_GET['action']) && $_GET['action'] == 'view_post') { switch ($action) { case 'new_post' : $nameTools = get_lang('NewPost'); - $interbreadcrumb[] = array( - 'url' => "blog.php?blog_id=$blog_id&".api_get_cidreq(), - "name" => Blog::getBlogTitle($blog_id), - ); break; case 'view_post' : $nameTools = ''; - $interbreadcrumb[] = array( - 'url' => "blog.php?blog_id=$blog_id&".api_get_cidreq(), - "name" => Blog::getBlogTitle($blog_id), - ); break; case 'manage_tasks' : $nameTools = get_lang('TaskManager'); - $interbreadcrumb[] = array( - 'url' => "blog.php?blog_id=$blog_id&".api_get_cidreq(), - "name" => Blog::getBlogTitle($blog_id), - ); break; case 'manage_members' : $nameTools = get_lang('MemberManager'); - $interbreadcrumb[] = array( - 'url' => "blog.php?blog_id=$blog_id&".api_get_cidreq(), - "name" => Blog::getBlogTitle($blog_id), - ); break; case 'manage_rights' : $nameTools = get_lang('RightsManager'); - $interbreadcrumb[] = array( - 'url' => "blog.php?blog_id=$blog_id&".api_get_cidreq(), - 'name' => Blog::getBlogTitle($blog_id), - ); break; case 'view_search_result' : $nameTools = get_lang('SearchResults'); - $interbreadcrumb[] = array( - 'url' => "blog.php?blog_id=$blog_id&".api_get_cidreq(), - 'name' => Blog::getBlogTitle($blog_id), - ); break; case 'execute_task' : $nameTools = get_lang('ExecuteThisTask'); - $interbreadcrumb[] = array( - 'url' => "blog.php?blog_id=$blog_id&".api_get_cidreq(), - 'name' => Blog::getBlogTitle($blog_id), - ); break; - default : + default: $nameTools = Blog::getBlogTitle($blog_id); } +$interbreadcrumb[] = array( + 'url' => "blog.php?blog_id=$blog_id&".api_get_cidreq(), + 'name' => Blog::getBlogTitle($blog_id), +); $actionsLeft = []; $actionsLeft[] = Display::url( diff --git a/main/inc/lib/blog.lib.php b/main/inc/lib/blog.lib.php index 296a005841..9340c323d7 100755 --- a/main/inc/lib/blog.lib.php +++ b/main/inc/lib/blog.lib.php @@ -1532,7 +1532,7 @@ class Blog if ($form->validate()) { $values = $form->exportValues(); - $postId = Blog::createPost( + $postId = self::createPost( $values['title'], $values['full_text'], $values['post_file_comment'], @@ -1608,7 +1608,7 @@ class Blog $form->addButton('save', get_lang('Save')); $form->setDefaults($blog_post); - return $form->return_form(); + return $form->returnForm(); } /** diff --git a/main/lp/learnpath.class.php b/main/lp/learnpath.class.php index 5b57bceac3..cb516de0ff 100755 --- a/main/lp/learnpath.class.php +++ b/main/lp/learnpath.class.php @@ -10346,7 +10346,7 @@ EOD; if ($this->debug > 0) { error_log('New LP - In learnpath::clear_prerequisites()', 0); } - $tbl_lp_item = Database :: get_course_table(TABLE_LP_ITEM); + $tbl_lp_item = Database::get_course_table(TABLE_LP_ITEM); $lp_id = $this->get_id(); //Cleaning prerequisites $sql = "UPDATE $tbl_lp_item SET prerequisite = '' @@ -10361,7 +10361,7 @@ EOD; public function set_previous_step_as_prerequisite_for_all_items() { - $tbl_lp_item = Database :: get_course_table(TABLE_LP_ITEM); + $tbl_lp_item = Database::get_course_table(TABLE_LP_ITEM); $course_id = $this->get_course_int_id(); $lp_id = $this->get_id();