wiki.pl: Port some fixes from upstream
[Orgmuse.git] / modules / debug.pl
blob264e95549a7ba745a2e17372a31c5cf31728ebcb
1 #! /usr/bin/perl
2 # Copyright (C) 2009 Alex Schroeder <alex@gnu.org>
4 # This program is free software: you can redistribute it and/or modify it under
5 # the terms of the GNU General Public License as published by the Free Software
6 # Foundation, either version 3 of the License, or (at your option) any later
7 # version.
9 # This program is distributed in the hope that it will be useful, but WITHOUT
10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11 # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
13 # You should have received a copy of the GNU General Public License along with
14 # this program. If not, see <http://www.gnu.org/licenses/>.
16 package OddMuse;
18 @Debugging = (\&DebugInterLinks);
20 sub DebugInterLinks {
21 print $q->h2(T('Inter links:')) . $q->p(join(', ', sort keys %InterSite))
22 if %InterSite;
25 *OldPrintFooter = *PrintFooter;
26 *PrintFooter = *NewPrintFooter;
28 sub NewPrintFooter {
29 OldPrintFooter(@_);
30 print "Debug Info: $DebugInfo";