Mail Index
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ApacheGallery] Patch for controlling name of root:
I was playing around with Apache::Gallery last night and wanted to change the root: to something else (configurable in
the config).
to use:
PerlSetVar GalleryRootText 'CK1'
example (look in upper left corner):
http://ck1.is-a-geek.org/pics
patch (to r170):
--- Apache-Gallery-0.7/lib/Apache/Gallery.pm 2003-08-03 12:24:00.000000000 -0500
+++ Apache-Gallery-0.7.new/lib/Apache/Gallery.pm 2003-08-08 10:45:19.000000000 -0500
@@ -1077,7 +1077,7 @@
$picturename = pop(@links);
}
-
+ my $root_text=($r->dir_config('GalleryRootText') or "root:");
if ($r->uri eq '/') {
- return qq{ <a href="/">root:</a> };
+ return qq{ <a href="/">$root_text</a> };
}
@@ -1089,5 +1089,5 @@
my $linktext = $link;
unless (length($link)) {
- $linktext = "root: ";
+ $linktext = "$root_text ";
}
else {