Wash filename if it has to be used as page title

git-svn-id: http://piwigo.org/svn/trunk@183 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
z0rglub
2003-10-08 18:10:47 +00:00
parent 3b8272fcdc
commit 36d7eac6d4
+2 -1
View File
@@ -218,7 +218,8 @@ if ( $page['name'] != '' )
}
else
{
$vtp->setGlobalVar( $handle, 'page_title', $page['file'] );
$page_title = str_replace("_"," ",get_filename_wo_extension($page['file']));
$vtp->setGlobalVar( $handle, 'page_title', $page_title );
}
//-------------------------------------------------- previous picture thumbnail
if ( $page['num'] >= 1 )