Fixed configuration and added example.

This commit is contained in:
Alex Schroeder
2004-10-02 08:40:00 +00:00
parent 61abb0652f
commit 83117e397d
2 changed files with 15 additions and 5 deletions

View File

@@ -1,3 +1,7 @@
2004-10-02 Sebastian Blatt <sblatt@havens.de>
* modules/dynlogo.pl: Fixed configuration and added example.
2004-09-30 Alex Schroeder <alex@gnu.org>
* wiki.pl (GetAdminBar): Moved GetGotoBar($id) out of this sub and
@@ -69,7 +73,7 @@
* wiki.pl (ApplyRules): Disallow | in the alternate text of
the [[image:page|text]] rule. It
prevented [[image:page|text|page]] from reaching image.pl.
(GetDownloadLink): Use
(GetDownloadLink): Use
* modules/image.pl (ImageSupportRule): Changed regular expression
a bit.

View File

@@ -17,8 +17,17 @@
# Boston, MA 02111-1307 USA
# Makes the wiki logo depend on the current date.
#
# Example Usage: Put the following into your config file and modify as
# needed:
#
# $DynLogoDirectory = '/mypic/dynlogo';
# $DynLogoDefault = 'wiki.jpg';
# %DynLogoMap = ('\d{4}-12-31' => 'party.jpg');
# $LogoUrl = GetDynLogoUrl();
#
$ModulesDescription .= '<p>$Id: dynlogo.pl,v 1.1 2004/09/27 23:01:28 sblatt Exp $</p>';
$ModulesDescription .= '<p>$Id: dynlogo.pl,v 1.2 2004/10/02 08:40:01 sblatt Exp $</p>';
use vars qw($DynLogoDirectory $DynLogoDefault %DynLogoMap);
@@ -43,6 +52,3 @@ sub GetDynLogoUrl {
}
return "$DynLogoDirectory/$DynLogoDefault";
}
# Only use a dynamic logo if no global logo is defined yet.
$LogoUrl = GetDynLogoUrl() if $LogoUrl eq '';