From: toyomoyo Date: Wed, 15 Mar 2006 07:14:39 +0000 (+0000) Subject: took out a form tag X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=32a2647e0233bc62fb486ba2159eac78a74bf5d0;p=moodle.git took out a form tag --- diff --git a/blog/lib.php b/blog/lib.php index 40f48ee538..2f3ac46664 100755 --- a/blog/lib.php +++ b/blog/lib.php @@ -306,10 +306,6 @@ function blog_print_html_formatted_entries(&$blogFilter, $filtertype, $filtersel print ''; if (isset($blogEntries) ) { - if (blog_isLoggedIn() && blog_isediting() ) { - print '
'; - } - $count = 0; foreach ($blogEntries as $blogEntry) { blog_print_entry($blogEntry, 'list', $filtertype, $filterselect); //print this entry. @@ -353,21 +349,6 @@ function blog_print_html_formatted_entries(&$blogFilter, $filtertype, $filtersel unset($blogFilter->filtered_entries); } -/** - * blog_get_moodle_pix_path - * - * Returns the directory path to the current theme's pix folder. - * @return string - */ -function blog_get_moodle_pix_path(){ - global $CFG, $THEME; - if (empty($THEME->custompix)) { - return $CFG->wwwroot.'/pix'; - } else { - return $CFG->themedir.current_theme().'/pix'; - } -} - /** * This function is in lib and not in BlogInfo because entries being searched * might be found in any number of blogs rather than just one. @@ -405,8 +386,6 @@ function blog_print_entry(&$blogEntry, $viewtype='full', $filtertype='', $filter // add editing controls if allowed $template['courseid'] = $blogEntry->entryCourseId; $template['userid'] = $blogEntry->entryuserid; - $template['authorviewurl'] = $CFG->wwwroot .'/user/view.php?course=1&id='. $template['userid']; - $template['moodlepix'] = blog_get_moodle_pix_path(); $template['author'] = $blogEntry->entryAuthorName; $template['lastmod'] = $blogEntry->formattedEntryLastModified; $template['created'] = $blogEntry->formattedEntryCreated;