aboutsummaryrefslogtreecommitdiffstats
path: root/picture.php
diff options
context:
space:
mode:
authorz0rglub <z0rglub@piwigo.org>2003-10-08 18:10:47 +0000
committerz0rglub <z0rglub@piwigo.org>2003-10-08 18:10:47 +0000
commit36d7eac6d4ccfa6296544c9556d253bc498737fc (patch)
treec8c6c2b198830f8ece5286b0762daad5db5bb411 /picture.php
parent3b8272fcdc53651de65e5975cce27e8904bbd275 (diff)
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
Diffstat (limited to 'picture.php')
-rw-r--r--picture.php3
1 files changed, 2 insertions, 1 deletions
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 )