From 36d7eac6d4ccfa6296544c9556d253bc498737fc Mon Sep 17 00:00:00 2001 From: z0rglub Date: Wed, 8 Oct 2003 18:10:47 +0000 Subject: 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 --- picture.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'picture.php') diff --git a/picture.php b/picture.php index ecf6679f5..100e4a11d 100644 --- a/picture.php +++ b/picture.php @@ -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 ) -- cgit v1.2.3