From 05cfe96d73cc8e8b5c814ed772abfa2f4dbf42b9 Mon Sep 17 00:00:00 2001 From: nemunaire Date: Wed, 14 Jan 2015 12:35:37 +0100 Subject: [PATCH] Fix DEBUG --- check.pl | 4 ++-- onyx/modules/templates/smarty/plugins/function.link.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/check.pl b/check.pl index 64bad518..5ce96ede 100755 --- a/check.pl +++ b/check.pl @@ -111,8 +111,8 @@ for my $f (readdir $dh) $solution{whirlpool} = <$fh>; chomp( $solution{whirlpool} ); close $fh; - use Data::Dumper; - print STDERR Dumper(\%solution); +# use Data::Dumper; +# print STDERR Dumper(\%solution); $dbh = DBI->connect("DBI:mysql:database=$db_settings{db};host=$db_settings{host};port=3306", $db_settings{user}, $db_settings{pass}, diff --git a/onyx/modules/templates/smarty/plugins/function.link.php b/onyx/modules/templates/smarty/plugins/function.link.php index d00ddca9..7ca24127 100644 --- a/onyx/modules/templates/smarty/plugins/function.link.php +++ b/onyx/modules/templates/smarty/plugins/function.link.php @@ -21,7 +21,7 @@ function smarty_function_link($params, $template) else $label = $params['label']; - if (!defined("DEBUG")) + if (!defined("DEBUG") || !DEBUG) { $href_de = $href;