1 (edited by buzzkill 2005-04-11 18:19)

Topic: header.php comment clarification

I was working on a custom style today and noticed this on lines 136 - 138 & lines 141 - 143 of header.php

// START SUBST - <pun_page>
$tpl_main = str_replace('<pun_page>', basename($_SERVER['PHP_SELF'], '.php'), $tpl_main);
// END SUBST - <pun_title>


// START SUBST - <pun_title>
$tpl_main = str_replace('<pun_title>', '<h1><span>'.pun_htmlspecialchars($pun_config['o_board_title']).'</span></h1>', $tpl_main);
// END SUBST - <pun_title>

Should the second comment listed be //END SUBST - <pun_page>, instead of //END SUBST - <pun_title> ??

I know this is not a bug.  I just wanted to be sure if this was correct or not.

Re: header.php comment clarification

this is the evil fallout after the use of  copy+paste wink

Re: header.php comment clarification

Noted.

"Programming is like sex: one mistake and you have to support it for the rest of your life."