attribute :private, :kind_of => [TrueClass, FalseClass], :default => false
attribute :recaptcha_public_key, :kind_of => String
attribute :recaptcha_private_key, :kind_of => String
+attribute :extra_file_extensions, :kind_of => [String, Array]
attribute :reload_apache, :kind_of => [TrueClass, FalseClass], :default => true
def after_created
:site_notice => site_notice,
:site_readonly => site_readonly,
:ssl_enabled => ssl_enabled,
+ :extra_file_extensions => extra_file_extensions,
:private_accounts => private_accounts,
:private => private
}
$wgFileExtensions[] = 'odt';
$wgFileExtensions[] = 'odp';
$wgFileExtensions[] = 'svg';
+<% @mediawiki[:extra_file_extensions].each do |mw_extra_file_extension| -%>
+ $wgFileExtensions[] = '<%= mw_extra_file_extension %>';
+<% end -%>
$wgSVGConverters = array( 'rsvg' => '/usr/bin/rsvg-convert -w $width -h $height -o $output $input');
$wgSVGConverter = 'rsvg';