mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
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:
parent
dfd0fd39fd
commit
4c36f39aef
1 changed files with 2 additions and 2 deletions
|
@ -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 )
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue