Skip to content

Commit

Permalink
Item12864: don't use DEBUG constant for debug
Browse files Browse the repository at this point in the history
... as it conflicts with Assert.pm
  • Loading branch information
MichaelDaum committed Aug 28, 2014
1 parent 157be05 commit c038d5f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
8 changes: 8 additions & 0 deletions .gitignore
@@ -0,0 +1,8 @@
*.swp
MathModePlugin.md5
MathModePlugin.sha1
MathModePlugin.tgz
MathModePlugin.txt
MathModePlugin.zip
MathModePlugin_installer
MathModePlugin_installer.pl
6 changes: 3 additions & 3 deletions lib/Foswiki/Plugins/MathModePlugin.pm
@@ -1,6 +1,6 @@
# Plugin for Foswiki - The Free and Open Source Wiki, http://foswiki.org/
#
# Copyright (C) 2006-2011 Michael Daum http://michaeldaumconsulting.com
# Copyright (C) 2006-2014 Michael Daum http://michaeldaumconsulting.com
# Copyright (C) 2002 Graeme Lufkin, gwl@u.washington.edu
#
# This program is free software; you can redistribute it and/or
Expand All @@ -24,8 +24,8 @@ use warnings;
our $web;
our $topic;
our $core;
our $VERSION = '4.03';
our $RELEASE = '4.03';
our $VERSION = '4.04';
our $RELEASE = '4.04';
our $NO_PREFS_IN_TOPIC = 1;
our $SHORTDESCRIPTION = 'Include <nop>LaTeX formatted math in your Foswiki pages';
our %FoswikiCompatibility;
Expand Down
6 changes: 3 additions & 3 deletions lib/Foswiki/Plugins/MathModePlugin/Core.pm
Expand Up @@ -26,13 +26,13 @@ use File::Copy qw( move );
use File::Temp ();
#use FindBin ();

use constant DEBUG => 0; # toggle me
use constant TRACE => 0; # toggle me

###############################################################################
# static
sub writeDebug {
#&Foswiki::Func::writeDebug('- MathModePlugin - '.$_[0]) if DEBUG;
print STDERR '- MathModePlugin - '.$_[0]."\n" if DEBUG;
#&Foswiki::Func::writeDebug('- MathModePlugin - '.$_[0]) if TRACE;
print STDERR '- MathModePlugin - '.$_[0]."\n" if TRACE;
}

###############################################################################
Expand Down

0 comments on commit c038d5f

Please sign in to comment.