--- qdig.php.orig Mon Jun 13 00:01:28 2005
+++ qdig.php Mon Jun 13 00:08:55 2005
@@ -1588,7 +1588,7 @@
function subdirLinks($dir_nav)
{
global $imgs, $qdig_url, $extra_param, $anchor, $reqd_image, $subdirs,
- $thumbs, $rootdir;
+ $thumbs, $rootdir, $caption_path;
if (isset($imgs)) {
if ($dir_nav['icon'] == 1) {
$icon = ' ';
@@ -1625,6 +1625,7 @@
$dirurl = rawurlencode($dir);
$dirtxt = str_replace(' ', ' ', $dir); // replace spaces
$dirtxt = str_replace("'", ''', $dir); // replace apostrophes
+ $dircapt= file_exists("$caption_path/$dir.txt")?file_get_contents("$caption_path/$dir.txt"):"";
if ($age_idx < ($dir_nav['dir_is_new'] * 1000)) {
$newdir = $dir_nav['new_flag'];
} else {
@@ -1633,7 +1634,7 @@
$str .= <<$tag1$bkt1
$icon$dirtxt$newdir
+ class="qdig-subdirlink" title="{$dir_nav['go_to_txt']} $dir">$icon$dirtxt$newdir $dircapt
$bkt2\n
EOT;
}