private function showUsingQuery($templateName, $query, $highlight = '', $comments = 0, $dateheads = 1)
{
global $CONF, $manager, $currentTemplateName;
- global $StartTime;
$lastVisit = cookieVar($CONF['CookiePrefix'] .'lastVisit');
if ( $lastVisit != 0 )
if ( $old_date != 0 )
{
$oldTS = strtotime($old_date);
- $data = array('blog' => $this, 'timestamp' => $oldTS);
+ $data = array('blog' => &$this, 'timestamp' => $oldTS);
$manager->notify('PreDateFoot', $data);
if ( !in_array('DATE_FOOTER', $template) || empty($template['DATE_FOOTER']) )
$manager->notify('PostDateFoot', $data);
}
- $data = array('blog' => $this, 'timestamp' => $timestamp);
+ $data = array('blog' => &$this, 'timestamp' => $timestamp);
$manager->notify('PreDateHead', $data);
// note, to use templatvars in the dateheader, the %-characters need to be doubled in
// parse item
$parser->parse($template['ITEM_HEADER']);
- $data = array('blog' => $this, 'item' => &$item);
+ $data = array('blog' => &$this, 'item' => &$item);
$manager->notify('PreItem', $data);
$parser->parse($template['ITEM']);
$manager->notify('PostItem', $data);
// add another date footer if there was at least one item
if ( ($numrows > 0) && $dateheads )
{
- $data = array('blog' => $this, 'timestamp' => strtotime($old_date));
+ $data = array('blog' => &$this, 'timestamp' => strtotime($old_date));
$manager->notify('PreDateFoot', $data);
$parser->parse($template['DATE_FOOTER']);
$manager->notify('PostDateFoot', $data);
* @param string $direction ASC/DESC
* @return void
*/
- public function showBlogList($template, $bnametype, $orderby, $direction)
+ static public function showBlogList($template, $bnametype, $orderby, $direction)
{
global $CONF, $manager;