Skip to content
Browse files

Misc. thingys

  • Loading branch information...
1 parent 2f44c0f commit 3e3f14f60f2bb2e1dd7c7abe2c926f72dfcd315a @pudge pudge committed Aug 13, 2008
Showing with 3 additions and 2 deletions.
  1. +1 −0 plugins/FireHose/FireHose.pm
  2. +1 −1 sql/mysql/defaults.sql
  3. +1 −1 themes/slashcode/tasks/process_file_queue.pl
View
1 plugins/FireHose/FireHose.pm
@@ -22,6 +22,7 @@ LONG DESCRIPTION.
=head1 EXPORTED FUNCTIONS
=cut
+
use strict;
use DBIx::Password;
use Slash;
View
2 sql/mysql/defaults.sql
@@ -1019,7 +1019,7 @@ INSERT INTO vars (name, value, description) VALUES ('nick_regex', '^[a-zA-Z_][ a
INSERT INTO vars (name, value, description) VALUES ('nick_maxlen', '20', 'Max length of nickname, should correspond with schema for users.nickname');
INSERT INTO vars (name, value, description) VALUES ('no_prerendered_stories','0','Turn off use of prerendered stories in display');
INSERT INTO vars (name, value, description) VALUES ('offer_insecure_login_link','0','Offer the user the \'totally insecure but very convenient\' index.pl login link');
-INSERT IGNORE INTO vars (name, value, description) VALUES ('optipng', '', 'path to optipng if it is to be used for compressing thumbnails');
+INSERT INTO vars (name, value, description) VALUES ('optipng', '', 'path to optipng if it is to be used for compressing thumbnails');
INSERT INTO vars (name, value, description) VALUES ('organise_stories','','organise story blocks');
INSERT INTO vars (name, value, description) VALUES ('panic','0','0:Normal, 1:No frills, 2:Essentials only');
INSERT INTO vars (name, value, description) VALUES ('poll_cache','0','On home page, cache and display default poll for users (if false, is extra hits to database)');
View
2 themes/slashcode/tasks/process_file_queue.pl
@@ -69,7 +69,7 @@ sub handleFileCmd {
slashdLog("About to create thumb $path$thumb");
system("$convert -size 260x194 $path$name -resize '130x97>' -bordercolor transparent -border 48 -gravity center -crop 130x97+0+0 -page +0+0 -colors 256 -depth 8 -compress BZip $path$thumb");
- if($constants->{optipng} && $suffix eq "png") {
+ if ($constants->{optipng} && $suffix eq "png") {
system("$constants->{optipng} -q $path$thumb");
}
my $data = {

0 comments on commit 3e3f14f

Please sign in to comment.
Something went wrong with that request. Please try again.