From 4c36f39aef2ee5a261418c1934b4687d1cae9d78 Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Thu, 17 Mar 2005 17:33:30 +0000 Subject: [PATCH] basename the filename git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@5103 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/admin/admin_styles.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpBB/admin/admin_styles.php b/phpBB/admin/admin_styles.php index a745d61c25..5a135768e4 100644 --- a/phpBB/admin/admin_styles.php +++ b/phpBB/admin/admin_styles.php @@ -75,7 +75,7 @@ switch( $mode ) if( isset($install_to) ) { - include($phpbb_root_path. "templates/" . $install_to . "/theme_info.cfg"); + include($phpbb_root_path. "templates/" . basename($install_to) . "/theme_info.cfg"); $template_name = $$install_to; $found = FALSE; @@ -739,7 +739,7 @@ switch( $mode ) @umask(0111); - $fp = @fopen($phpbb_root_path . 'templates/' . $template_name . '/theme_info.cfg', 'w'); + $fp = @fopen($phpbb_root_path . 'templates/' . basename($template_name) . '/theme_info.cfg', 'w'); if( !$fp ) {