basename the filename

git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@5103 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Meik Sievertsen 2005-03-17 17:33:30 +00:00
parent dfd0fd39fd
commit 4c36f39aef

View file

@ -75,7 +75,7 @@ switch( $mode )
if( isset($install_to) ) 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; $template_name = $$install_to;
$found = FALSE; $found = FALSE;
@ -739,7 +739,7 @@ switch( $mode )
@umask(0111); @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 ) if( !$fp )
{ {