# Blosxom 3.0 Plugin: ComplementFlavours # Author: Hironori Azuma # Version: 2004-05-12 package Blosxom::Plugin::ComplementFlavours; use strict; start:{ package Blosxom; *_get_template = *get_template; *get_template = *Blosxom::Plugin::ComplementFlavours::get_template; 1; } sub get_template{ return Blosxom::_get_template(@_) or Blosxom::_get_template($_[0],$_[0]->{settings}->{default_flavour}); } 1; __END__ =head1 NAME Blosxom 3.0 Plugin: ComplementFlavours =head1 SYNOPSIS Complements missing flavours(content_type,head...) using default flavours. =head1 INSTALLATION Drop into the Blosxom plugins directory. =head1 VERSION 2004-05-12 =head1 AUTHOR Hironori Azuma =head1 SEE ALSO Blosxom Home/Docs/Licensing: http://www.raelity.org/apps/blosxom/ Blosxom Plugin Docs: http://www.raelity.org/apps/blosxom/plugin.shtml =head1 BUGS Address bug reports and comments to the Blosxom mailing list [http://www.yahoogroups.com/group/blosxom]. =head1 LICENSE Copyright 2004, Hironori Azuma Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.