more cleaning

This commit is contained in:
toyomoyo
2006-03-15 02:17:35 +00:00
parent f99fee6c71
commit e17426ca5f
3 changed files with 6 additions and 21 deletions
+2 -1
View File
@@ -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;
}
}*/
/**
*
+1 -18
View File
@@ -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
+3 -2
View File
@@ -42,10 +42,11 @@
$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);