]> git.mjollnir.org Git - moodle.git/commitdiff
took out a form tag
authortoyomoyo <toyomoyo>
Wed, 15 Mar 2006 07:14:39 +0000 (07:14 +0000)
committertoyomoyo <toyomoyo>
Wed, 15 Mar 2006 07:14:39 +0000 (07:14 +0000)
blog/lib.php

index 40f48ee538ed5407cb34f799862af77ec8f0bd03..2f3ac46664dd72ce052a5a91beb25f2e19e8833f 100755 (executable)
@@ -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&amp;id='. $template['userid'];
-    $template['moodlepix'] = blog_get_moodle_pix_path();
     $template['author'] = $blogEntry->entryAuthorName;
     $template['lastmod'] = $blogEntry->formattedEntryLastModified;
     $template['created'] = $blogEntry->formattedEntryCreated;