mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
Oops, forgot to define $board_config as a global....
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2841 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
86de719df5
commit
4b896717cc
2 changed files with 29 additions and 0 deletions
|
@ -0,0 +1,28 @@
|
|||
<?php
|
||||
|
||||
//
|
||||
// phpBB 2.x auto-generated config file
|
||||
// Do not change anything in this file!
|
||||
//
|
||||
|
||||
$dbms = 'mysql';
|
||||
|
||||
$dbhost = 'localhost';
|
||||
$dbname = 'phpbb2devboard';
|
||||
$dbuser = 'dougk';
|
||||
$dbpasswd = 'dougkff7';
|
||||
|
||||
$table_prefix = 'phpbb_';
|
||||
|
||||
/*
|
||||
$dbhost = 'localhost';
|
||||
$dbname = 'devphpbb2';
|
||||
$dbuser = 'dougk';
|
||||
$dbpasswd = 'dougkff7';
|
||||
|
||||
$table_prefix = 'phpbb$_';
|
||||
*/
|
||||
|
||||
define('PHPBB_INSTALLED', true);
|
||||
|
||||
?>
|
|
@ -64,6 +64,7 @@ function user_avatar_delete($avatar_type, $avatar_file)
|
|||
|
||||
function user_avatar_gallery($mode, &$error, &$error_msg, $avatar_filename)
|
||||
{
|
||||
global $board_config;
|
||||
if ( file_exists($board_config['avatar_gallery_path'] . '/' . $avatar_filename) && ($mode == 'editprofile') )
|
||||
{
|
||||
$return = ", user_avatar = '" . str_replace("\'", "''", $avatar_filename) . "', user_avatar_type = " . USER_AVATAR_GALLERY;
|
||||
|
|
Loading…
Add table
Reference in a new issue