From a6589f5e5ee9e677d52246cede8dedd29dcb1f97 Mon Sep 17 00:00:00 2001 From: Alex Schroeder Date: Sat, 8 Mar 2008 00:41:33 +0000 Subject: [PATCH] Revert change to default $DataDir. --- wiki.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wiki.pl b/wiki.pl index ea5db13e..e11e268f 100755 --- a/wiki.pl +++ b/wiki.pl @@ -8,7 +8,7 @@ use CGI::Carp qw(fatalsToBrowser); use vars qw($VERSION); local $| = 1; # Do not buffer output (localized for mod_perl) -$VERSION=(split(/ +/, '$Revision: 1.847 $'))[1]; # for MakeMaker +$VERSION=(split(/ +/, '$Revision: 1.848 $'))[1]; # for MakeMaker # Options: @@ -56,7 +56,7 @@ $UseConfig = 1 unless defined $UseConfig; # Main wiki directory $DataDir = $ENV{WikiDataDir} if $UseConfig and not $DataDir; -$DataDir = '/var/opt/oddmuse/wiki' unless $DataDir; +$DataDir = '/tmp/oddmuse' unless $DataDir; # FIXME: /var/opt/oddmuse/wiki ? $ConfigPage = '' unless $ConfigPage; # config page @@ -266,7 +266,7 @@ sub InitRequest { sub InitVariables { # Init global session variables for mod_perl! $WikiDescription = $q->p($q->a({-href=>'http://www.oddmuse.org/'}, 'Oddmuse'), $Counter++ > 0 ? Ts('%s calls', $Counter) : '') - . $q->p(q{$Id: wiki.pl,v 1.847 2008/03/08 00:05:55 as Exp $}); + . $q->p(q{$Id: wiki.pl,v 1.848 2008/03/08 00:41:33 as Exp $}); $WikiDescription .= $ModulesDescription if $ModulesDescription; $PrintedHeader = 0; # Error messages don't print headers unless necessary $ReplaceForm = 0; # Only admins may search and replace