Wednesday, 03 September 2014 07:32
beggarly

HTML Sitemap this->_width not set

Report Xmap bugs on this forum.

HTML Sitemap this->_width not set

Postby lyric8 » Thu Sep 01, 2011 10:11 am

Hey, I think there is an execution order issue or something. I put some debugging statements in and saw the function that sets the width based on columns isn't called before the output starts. Thus all the widths are set to "%" because the this-> width isn't set. I fixed by adding this line to the constructor to XmapHtmlDisplayer in default_class.php.

if( $sitemap->params->get('columns') > 1 ) { // calculate column widths
$this->_width = intval((100 / ($sitemap->params->get('columns'))) - 1);
}
lyric8
Fresh Boarder
Fresh Boarder
 
Posts: 1
Joined: Thu Sep 01, 2011 10:09 am

Return to Bugs



Who is online

Users browsing this forum: No registered users and 2 guests