2007-06-12
glen2005
dirName:dirName:fileName syntax is not perfect. it should also support dirName:dirName: . When file name is not given, it should default to predetermined name (such as index in webservers).
I made code changes to arrowed line, to make breadcrumb work correctly.
function tpl_pagetitle($id=null, $ret=false){
global $conf;
if(is_null($id)){
global $ID;
$id = $ID;
}
//gleno, if the start page is '$conf[start]' do not display
$id = preg_replace("/(:{$conf['start']})$/", '', $id); <-------------
$name = $id;
if ($conf['useheading']) {
$title = p_get_first_heading($id);
if ($title) $name = $title;
}
if ($ret) {
return hsc($name);
} else {
print hsc($name);
return true;
}
}
Hi hope similar solution is intergrated to code base.
Thanks,
-Glen