Changeset 1062 for trunk/include/functions_calendar.inc.php
- Timestamp:
- Mar 3, 2006, 2:57:39 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/functions_calendar.inc.php
r1059 r1062 261 261 } 262 262 } 263 $calendar_title = 264 '<a href="'.$url_base.$cal_style.'-'.$cal_view.'">' 265 .$fields[$cal_field]['label'].'</a>'; 266 $calendar_title.= $calendar->get_display_name(); 267 //this should be an assign_block_vars, but I need to assign 'calendar' 268 //above and at that point I don't have the title yet. 269 $template->_tpldata['calendar.'][0]['TITLE'] = $calendar_title; 263 270 } // end category calling 264 271 265 $calendar_title =266 '<a href="'.$url_base.$cal_style.'-'.$cal_view.'">'267 .$fields[$cal_field]['label'].'</a>';268 $calendar_title.= $calendar->get_display_name();269 $template->assign_block_vars(270 'calendar',271 array(272 'TITLE' => '<br/>'.$calendar_title,273 )274 );275 276 272 if ($must_show_list) 277 273 { 278 274 $query = 'SELECT DISTINCT(id)'; 279 $query .= $calendar->inner_sql ;280 $query .=$calendar->get_date_where();275 $query .= $calendar->inner_sql.' 276 '.$calendar->get_date_where(); 281 277 if ( isset($page['super_order_by']) ) 282 278 { … … 290 286 'ORDER BY '.$calendar->date_field.' DESC,', $conf['order_by'] 291 287 ); 292 $query .= $order_by; 288 $query .= ' 289 '.$order_by; 293 290 } 294 291
Note: See TracChangeset
for help on using the changeset viewer.