diff --git a/ChangeLog b/ChangeLog index 840d3d91..1255ad7e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2004-10-02 Sebastian Blatt + + * modules/dynlogo.pl: Fixed configuration and added example. + 2004-09-30 Alex Schroeder * 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. diff --git a/modules/dynlogo.pl b/modules/dynlogo.pl index 9b9ee4ef..a672e310 100644 --- a/modules/dynlogo.pl +++ b/modules/dynlogo.pl @@ -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 .= '

$Id: dynlogo.pl,v 1.1 2004/09/27 23:01:28 sblatt Exp $

'; +$ModulesDescription .= '

$Id: dynlogo.pl,v 1.2 2004/10/02 08:40:01 sblatt Exp $

'; 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 '';