mirror of
https://github.com/moodle/moodle.git
synced 2025-06-03 14:46:35 +02:00
took out a form tag
This commit is contained in:
parent
7c4b2fb3c2
commit
32a2647e02
21
blog/lib.php
21
blog/lib.php
@ -306,10 +306,6 @@ function blog_print_html_formatted_entries(&$blogFilter, $filtertype, $filtersel
|
||||
print '</div>';
|
||||
if (isset($blogEntries) ) {
|
||||
|
||||
if (blog_isLoggedIn() && blog_isediting() ) {
|
||||
print '<form name="batchpublishform" method="post" action="'. $blogFilter->baseurl .'" id="batchpublishform" enctype="multipart/form-data">';
|
||||
}
|
||||
|
||||
$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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user