[interchange-cvs] interchange - kwalsh modified code/UI_Tag/cp.coretag

interchange-core@interchange.redhat.com interchange-core@interchange.redhat.com
Tue May 28 21:05:00 2002


User:      kwalsh
Date:      2002-05-29 01:04:47 GMT
Modified:  code/UI_Tag cp.coretag
Log:
	* Moved the "require File::Copy" to outside the sub.  The require
	  was causing "Safe mode" calls to the tag to fail, such as the
	  $Tag->cp() call from within admin/wizard/do_save.html.

	  Thanks to Dan Helfman for reporting the problem in IRC.

Revision  Changes    Path
1.2       +1 -1      interchange/code/UI_Tag/cp.coretag


rev 1.2, prev_rev 1.1
Index: cp.coretag
===================================================================
RCS file: /var/cvs/interchange/code/UI_Tag/cp.coretag,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- cp.coretag	29 Jan 2002 05:52:40 -0000	1.1
+++ cp.coretag	29 May 2002 01:04:46 -0000	1.2
@@ -1,9 +1,9 @@
 UserTag cp Order from to
 UserTag cp addAttr
 UserTag cp Routine <<EOR
+require File::Copy;
 sub {
 	my ($from, $to, $opt) = @_;
-	require File::Copy;
 #Debug("cp from=$from to=$to umask=$opt->{umask}");
 	my $save_mask;
 	if($opt->{umask}) {