mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-04 15:57:45 +02:00
my turn to break the forum (and at least pm's are no longer working - will not last long). HARRRR
git-svn-id: file:///svn/phpbb/trunk@4978 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -1038,10 +1038,15 @@ function avatar_upload($data, &$error)
|
||||
|
||||
function avatar_gallery($category, &$error)
|
||||
{
|
||||
global $config;
|
||||
global $config, $phpbb_root_path, $user;
|
||||
|
||||
$path = $phpbb_root_path . $config['avatar_gallery_path'];
|
||||
|
||||
if (!file_exists($path) || !is_dir($path))
|
||||
{
|
||||
return array($user->lang['NONE'] => array());
|
||||
}
|
||||
|
||||
// To be replaced with SQL ... before M3 completion
|
||||
$dp = @opendir($path);
|
||||
|
||||
@@ -1073,6 +1078,11 @@ function avatar_gallery($category, &$error)
|
||||
}
|
||||
closedir($dp);
|
||||
|
||||
if (!sizeof($data))
|
||||
{
|
||||
return array($user->lang['NONE'] => array());
|
||||
}
|
||||
|
||||
@ksort($data);
|
||||
|
||||
return $data;
|
||||
|
Reference in New Issue
Block a user