From: Joshua Ferraro Date: Sun, 21 Oct 2007 20:11:35 +0000 (-0500) Subject: moving localfiles to tmp X-Git-Tag: v3.00.00-alpha~1378 X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;h=56e102e20e877ba5e66af7aaf195051a553a18e4;hp=9d29ce5d58614b56e71044e47b11cc1229604ccf;p=koha.git moving localfiles to tmp Signed-off-by: Chris Cormack Signed-off-by: Joshua Ferraro --- diff --git a/C4/AuthoritiesMarc.pm b/C4/AuthoritiesMarc.pm index 506dc3808a..caece1e3e2 100644 --- a/C4/AuthoritiesMarc.pm +++ b/C4/AuthoritiesMarc.pm @@ -564,13 +564,13 @@ sub ModAuthority { ### they should have a system preference "dontmerge=1" otherwise by default biblios will be updated ### the $merge flag is now depreceated and will be removed at code cleaning if (C4::Context->preference('dontmerge') ){ - # save the file in localfile/modified_authorities + # save the file in tmp/modified_authorities my $cgidir = C4::Context->intranetdir ."/cgi-bin"; unless (opendir(DIR,"$cgidir")) { $cgidir = C4::Context->intranetdir."/"; } - my $filename = $cgidir."/localfile/modified_authorities/$authid.authid"; + my $filename = $cgidir."/tmp/modified_authorities/$authid.authid"; open AUTH, "> $filename"; print AUTH $authid; close AUTH; diff --git a/localfile/modified_authorities/DO_NOT_REMOVE b/localfile/modified_authorities/DO_NOT_REMOVE deleted file mode 100644 index 8a0b851f4a..0000000000 --- a/localfile/modified_authorities/DO_NOT_REMOVE +++ /dev/null @@ -1 +0,0 @@ -do not remove this file, used to avoid cvs deleting this directory diff --git a/tmp/modified_authorities/DO_NOT_REMOVE b/tmp/modified_authorities/DO_NOT_REMOVE new file mode 100644 index 0000000000..8a0b851f4a --- /dev/null +++ b/tmp/modified_authorities/DO_NOT_REMOVE @@ -0,0 +1 @@ +do not remove this file, used to avoid cvs deleting this directory