]> git.mjollnir.org Git - moodle.git/commitdiff
more cleaning
authortoyomoyo <toyomoyo>
Wed, 15 Mar 2006 02:17:35 +0000 (02:17 +0000)
committertoyomoyo <toyomoyo>
Wed, 15 Mar 2006 02:17:35 +0000 (02:17 +0000)
blog/class.BlogInfo.php
blog/index.php
blog/preferences.php

index 11332a42ba732afeff336ccecd48ba9acd16f254..dbb04b0f50026d2b8d73833671f206e75a24ad5e 100755 (executable)
@@ -95,12 +95,13 @@ class BlogInfo {
     /**
      * Getter for this blog's title, ->blogtitle
      */
+    /*
     function get_blog_title() {
         if (!isset($this->blogtitle)) {
             return '';
         }
         return $this->blogtitle;
-    }
+    }*/
 
     /**
      *
index df07c1ee33793fa8abac38c494ae4d6987653db8..b69b91b184ed4a5a202e7ec5f27aff77dd1cbff3 100755 (executable)
@@ -17,10 +17,7 @@ require_once($CFG->libdir .'/blocklib.php');
 
 $id = optional_param('id', 0, PARAM_INT);
 $limit = optional_param('limit', 0, PARAM_INT);
-$formstart = optional_param('formstart', 'none', PARAM_ALPHA);
-$m = optional_param('m', 0, PARAM_INT); //month
-$y = optional_param('y', 0, PARAM_INT); //year
-$d = optional_param('d', 0, PARAM_INT); //day
+$start = optional_param('formstart', 0, PARAM_INT);
 
 $userid = optional_param('userid',0,PARAM_INT);
 $groupid = optional_param('groupid',0,PARAM_INT);
@@ -156,24 +153,10 @@ switch ($filtertype) {
 }
 
 //first set the start and end day equal to the day argument passed in from the get vars
-$startday = $d;
-$endday = $d + 1;
-if ( empty($d) && !empty($m) && !empty($y) ) {
-    //if there was no day specified then the entire month is wanted.
-    $startday = 1;
-    $endday = blog_mk_getLastDayofMonth($m, $y);
-}
-
 if ($limit == 'none') {
     $limit = get_user_preferences('blogpagesize',8);
 }
 
-if ($formstart == 'none' || $formstart < 0) {
-    $start = 0;
-} else {
-    $start = $formstart;
-}
-
 $blogFilter =& new BlogFilter($userid, '', $limit, $start,$filtertype, $filterselect, $tagid, $tag);
 //print_object($blogFilter); //debug
 
index ac469b0fc65bc2043a6e2711ebaf3ad5d17a18b5..ca458dd1884db5989cd94956112218787bf45348 100755 (executable)
     $pageMeta = '' . "\n";
 
     $strpreferences = get_string('preferences');
+    $strblogs = get_string('blogs', 'blog');
 
-    $navigation = '<a href="'. $bloginfo->get_blog_url() .'">'. $bloginfo->get_blog_title() . '</a> -> '. $strpreferences;
+    $navigation = "<a href='".$CFG->wwwroot."/blog/'>$strblogs</a> -> $strpreferences";
 
-    print_header("$site->shortname: ". $bloginfo->get_blog_title() .": $strpreferences", $bloginfo->get_blog_title(), $navigation, '', $pageMeta, true, '', '');
+    print_header("$site->shortname: $strblogs : $strpreferences", $strblogs, $navigation, '', $pageMeta, true, '', '');
 
     print_heading($strpreferences);