--- mambo-4.5.2/components/com_gallery/gallery.php Sun Mar 13 15:29:34 2005
+++ mambo-4.5.2-dev/components/com_gallery/gallery.php Fri Jul 29 06:00:03 2005
@@ -49,4 +49,22 @@
include(MOS_GALLERY_PARAMS_PATH . 'index.php');
print "\n\n";
-?>
\ No newline at end of file
+if (isset($gallery->session->albumName) && $gallery->session->albumName != "") {
+ foreach ($gallery->album->getParentAlbums(true,true) as $navAlbum) {
+ $mainframe->appendPathWay("".$navAlbum['title']."");
+ //Since this is a recursive function, we'll be sure to temp append all recursive albums
+ $tempPageTitle .= " -> " . $navAlbum['title'];
+ }
+ //Now that we have one string with all of the pagetitle -- we'll make one append of it
+ //Note that this does not modify the site name being prepended before this by Mambo
+ $mainframe->setPageTitle("Gallery $tempPageTitle");
+ if (isset($include) && $include=="view_photo.php") {
+ $mainframe->appendPathWay("" . $photo->caption . "");
+ $mainframe->setPageTitle("Gallery - ".$title." - ".$photo->caption);
+ }
+}
+else { #If No album is being displayed, just call it the generic gallery
+ $mainframe->setPageTitle("Gallery");
+}
+
+?>