025-0002 - Bug in some blocks »  Show posts from    to     

Icy Phoenix


Old Bugs - 025-0002 - Bug in some blocks



hpl [ Tue 22 Jan, 2008 17:48 ]
Post subject: 025-0002 - Bug in some blocks
template arrays not reset in .php

link_block_bug

OPEN blocks/blocks_imp_links.php
FIND
Code: [Hide] [Select]
//reset($template->_tpldata['links_row.']);

AFTER, ADD
Code: [Hide] [Select]
$template->_tpldata['links_own1.'] = array();
//reset($template->_tpldata['links_own1.']);
$template->_tpldata['links_own2.'] = array();
//reset($template->_tpldata['links_own2.']);
$template->_tpldata['links_scroll.'] = array();
//reset($template->_tpldata['links_scroll.']);
$template->_tpldata['links_static.'] = array();
//reset($template->_tpldata['links_static.']);


OPEN blocks/blocks_imp_news.php
FIND
Code: [Hide] [Select]
//$template->_tpldata['news_detail.'] = array();
//reset($template->_tpldata['news_detail.']);
//$template->_tpldata['newscol.'] = array();
//reset($template->_tpldata['newscol.']);
$template->_tpldata['articles_fp.'] = array();
//reset($template->_tpldata['articles_fp.']);
$template->_tpldata['news_categories.'] = array();
//reset($template->_tpldata['news_categories.']);
$template->_tpldata['newsrow.'] = array();
//reset($template->_tpldata['newsrow.']);
$template->_tpldata['news_archives.'] = array();
//reset($template->_tpldata['news_archives.']);
$template->_tpldata['arch.'] = array();
//reset($template->_tpldata['arch.']);

REPLACE WITH
Code: [Hide] [Select]
$template->_tpldata['no_news.'] = array();
//reset($template->_tpldata['no_news.']);
$template->_tpldata['news_categories.'] = array();
//reset($template->_tpldata['news_categories.']);
$template->_tpldata['newsrow.'] = array();
//reset($template->_tpldata['newsrow.']);
$template->_tpldata['newscol.'] = array();
//reset($template->_tpldata['newscol.']);
$template->_tpldata['news_detail.'] = array();
//reset($template->_tpldata['news_detail.']);
$template->_tpldata['news_archives.'] = array();
//reset($template->_tpldata['news_archives.']);
$template->_tpldata['arch.'] = array();
//reset($template->_tpldata['arch.']);
$template->_tpldata['year.'] = array();
//reset($template->_tpldata['year.']);
$template->_tpldata['month.'] = array();
//reset($template->_tpldata['month.']);
$template->_tpldata['day.'] = array();
//reset($template->_tpldata['day.']);
$template->_tpldata['no_articles.'] = array();
//reset($template->_tpldata['no_articles.']);
$template->_tpldata['articles.'] = array();
//reset($template->_tpldata['articles.']);
$template->_tpldata['comments.'] = array();
//reset($template->_tpldata['comments.']);
$template->_tpldata['pagination.'] = array();
//reset($template->_tpldata['pagination.']);


Mighty Gorgon [ Thu 14 Feb, 2008 13:29 ]
Post subject: Re: 025-0002 - Bug in some blocks
Thanks, I should have fixed these.




Powered by Icy Phoenix