cvs: bugtracker /htdocs/index index.php /includes functions.php

From: Date: Sat, 26 Jul 2008 02:41:21 +0000
Subject: cvs: bugtracker /htdocs/index index.php /includes functions.php
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-2208@lists.php.net to get a copy of this message
bcarlyon Sat Jul 26 02:41:21 2008 UTC Modified files: /bugtracker/htdocs/index index.php /bugtracker/includes functions.php Log: Missed something obvious /slaps self html inlcludes for template files broke down http://cvs.php.net/viewvc.cgi/bugtracker/htdocs/index/index.php?r1=1.10&r2=1.11&diff_format=u Index: bugtracker/htdocs/index/index.php diff -u bugtracker/htdocs/index/index.php:1.10 bugtracker/htdocs/index/index.php:1.11 --- bugtracker/htdocs/index/index.php:1.10 Sat Jul 26 02:33:43 2008 +++ bugtracker/htdocs/index/index.php Sat Jul 26 02:41:21 2008 @@ -168,9 +168,10 @@ $template_data['queries'] = $db->query_count; +$content = tpl_process($content); $content = create_title($content); -$content = tpl_process('generic/header.html', $jsscripts, $meta_refresh) . tpl_process($content) . '<br />' . tpl_process('generic/footer.html'); +$content = tpl_process('generic/header.html', $jsscripts, $meta_refresh) . $content . '<br />' . tpl_process('generic/footer.html'); //lets cheat in the world of table fixing for display $content = str_replace('<table','<table cellspacing="0" cellpadding="0"',$content); http://cvs.php.net/viewvc.cgi/bugtracker/includes/functions.php?r1=1.10&r2=1.11&diff_format=u Index: bugtracker/includes/functions.php diff -u bugtracker/includes/functions.php:1.10 bugtracker/includes/functions.php:1.11 --- bugtracker/includes/functions.php:1.10 Sat Jul 26 02:33:43 2008 +++ bugtracker/includes/functions.php Sat Jul 26 02:41:21 2008 @@ -19,13 +19,13 @@ if (!$template_data['content_title']) { $template_data['content_title'] = str_replace('<h2>','',$data[0]); + //lop off the h2 title from the start of the html + $html = substr($html,4 + 5 + strlen($template_data['content_title']) ); } if ($template_data['page_title'] == 'PHP Bugs') { $template_data['page_title'] .= ' - ' . str_replace('<h2>','',$data[0]); } - //lop off the h2 title from the start of the html - $html = substr($html,4 + 5 + strlen($template_data['content_title']) ); return $html; }

« previous php.webmaster (#2208) next »