From c8669abf9d80dc09bafcca589cb85827b48f7c1f Mon Sep 17 00:00:00 2001
From: "Paul S. Owen" <psotfx@users.sourceforge.net>
Date: Mon, 11 Aug 2003 01:16:29 +0000
Subject: [PATCH] Wouldn't copy theme/template files from unarchived location
 to destination ... this should fix that.

git-svn-id: file:///svn/phpbb/trunk@4376 89ea8834-ac86-4346-8a33-228a782c2dd0
---
 phpBB/adm/admin_styles.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/phpBB/adm/admin_styles.php b/phpBB/adm/admin_styles.php
index f2b0149366..61cbf07a92 100644
--- a/phpBB/adm/admin_styles.php
+++ b/phpBB/adm/admin_styles.php
@@ -353,7 +353,7 @@ switch ($mode)
 											{
 												@mkdir("{$phpbb_root_path}styles/$template_path", 0777);
 												@chmod("{$phpbb_root_path}styles/$template_path", 0777);
-												copy_files($root_path, filelist("{$root_path}template", '', '*'), "$template_path/template");
+												copy_files("{$root_path}template", filelist("{$root_path}template", '', '*'), "$template_path/template");
 											}
 
 											$template_storedb = (!is_writeable("{$phpbb_root_path}styles/$template_path/template")) ? 1 : 0;
@@ -393,7 +393,7 @@ switch ($mode)
 
 												@mkdir("{$phpbb_root_path}styles/$theme_path", 0777);
 												@chmod("{$phpbb_root_path}/$theme_path", 0777);
-												copy_files($root_path, filelist("{$root_path}theme", '', '*'), "$theme_path/theme");
+												copy_files("{$root_path}theme", filelist("{$root_path}theme", '', '*'), "$theme_path/theme");
 											}
 
 											$theme_storedb = 0;