fixed 2 bugs:
changed get_the_photo_gallery() to check for if (isset($_GET['album'])) instead if(!$folder) because when the gallery is on the root page $folder is nil but ['album'] is not set.
changed the breadcrumbs:
from
$code .= '<a href="'.$baseurl.'" >'.i18n_r($thisfile_tphotogall.'/PHOTO_GALLERY').'</a> » ';
to
$req = explode('?', $_SERVER["REQUEST_URI"]);
$code .= '<a href="'.$req[0].'" >'.i18n_r($thisfile_tphotogall.'/PHOTO_GALLERY').'</a> » ';
so that the photo gallery link actually takes you to where you started from.
Also (not included) on my service a change to a .htaccess file was necessary:
had to comment out "Options -Indexes" in plugins/thephotogallery/.htaccess (your service might support it, mined doesn't)
EDIT:
forgot to attach file
changed get_the_photo_gallery() to check for if (isset($_GET['album'])) instead if(!$folder) because when the gallery is on the root page $folder is nil but ['album'] is not set.
changed the breadcrumbs:
from
$code .= '<a href="'.$baseurl.'" >'.i18n_r($thisfile_tphotogall.'/PHOTO_GALLERY').'</a> » ';
to
$req = explode('?', $_SERVER["REQUEST_URI"]);
$code .= '<a href="'.$req[0].'" >'.i18n_r($thisfile_tphotogall.'/PHOTO_GALLERY').'</a> » ';
so that the photo gallery link actually takes you to where you started from.
Also (not included) on my service a change to a .htaccess file was necessary:
had to comment out "Options -Indexes" in plugins/thephotogallery/.htaccess (your service might support it, mined doesn't)
EDIT:
forgot to attach file