Icy Phoenix

     
 

025-0002 - Bug in some blocks

025-0002 - Bug in some blocks

Article
Reply with quote    Download Post  
Post 025-0002 - Bug in some blocks 
 
template arrays not reset in .php

 link_block_bug

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

AFTER, ADD
Code: [Download] [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: [Download] [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: [Download] [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.']);


blocks_imp.rar
Description:  
Download
Filename: blocks_imp.rar
Filesize: 3.22 KB
Downloaded: 29 Time(s)




 
hpl - View user's profile Send private message  
hpl [ Tue 22 Jan, 2008 17:48 ]
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us


025-0002 - Bug in some blocks

Comments
Reply with quote    Download Post  
Post Re: 025-0002 - Bug in some blocks 
 
Thanks, I should have fixed these.



 
Mighty Gorgon - View user's profile Send private message  
Mighty Gorgon [ Thu 14 Feb, 2008 13:29 ]
Display posts from previous:    

HideWas this topic useful?

Post new topic  This topic is locked: you cannot edit posts or make replies.  Page 1 of 1