diff options
author | Tristan Darricau <tristan.darricau@sensiolabs.com> | 2015-10-19 14:40:07 +0200 |
---|---|---|
committer | Tristan Darricau <tristan.darricau@sensiolabs.com> | 2015-10-19 14:40:07 +0200 |
commit | 9ea44abf38f81c696163f45b074c87175c240b69 (patch) | |
tree | b4847adaccf7714b6f4f5351686fc4baae0f4b3b /phpBB/phpbb/avatar/driver/local.php | |
parent | 326ba5325b1185389f22856a999246aec77fc8c7 (diff) | |
parent | a6fd55db354c91dcd0220ab66ebf1036f5f05d85 (diff) | |
download | forums-9ea44abf38f81c696163f45b074c87175c240b69.tar forums-9ea44abf38f81c696163f45b074c87175c240b69.tar.gz forums-9ea44abf38f81c696163f45b074c87175c240b69.tar.bz2 forums-9ea44abf38f81c696163f45b074c87175c240b69.tar.xz forums-9ea44abf38f81c696163f45b074c87175c240b69.zip |
Merge branch '3.1.x'
* 3.1.x:
[ticket/13799] Split lines in HTML files for better readability
[ticket/13799] Add missing space before checked attribute
[ticket/13799] Correctly urlencode category and show selected avatar
[ticket/13799] Do not rawurlencode category in gallery avatar
Diffstat (limited to 'phpBB/phpbb/avatar/driver/local.php')
-rw-r--r-- | phpBB/phpbb/avatar/driver/local.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/phpBB/phpbb/avatar/driver/local.php b/phpBB/phpbb/avatar/driver/local.php index 88a139f81e..f5547c4bc6 100644 --- a/phpBB/phpbb/avatar/driver/local.php +++ b/phpBB/phpbb/avatar/driver/local.php @@ -84,11 +84,13 @@ class local extends \phpbb\avatar\driver\driver 'AVATAR_IMAGE' => $this->phpbb_root_path . $this->config['avatar_gallery_path'] . '/' . $img['file'], 'AVATAR_NAME' => $img['name'], 'AVATAR_FILE' => $img['filename'], + 'CHECKED' => $img['file'] === $row['avatar'], )); $template->assign_block_vars('avatar_local_row.avatar_local_option', array( 'AVATAR_FILE' => $img['filename'], - 'S_OPTIONS_AVATAR' => $img['filename'] + 'S_OPTIONS_AVATAR' => $img['filename'], + 'CHECKED' => $img['file'] === $row['avatar'], )); $col_count = ($col_count + 1) % $table_cols; @@ -184,7 +186,7 @@ class local extends \phpbb\avatar\driver\driver } $cat = ($path == $file_path) ? $user->lang['NO_AVATAR_CATEGORY'] : str_replace("$path/", '', $file_path); $avatar_list[$cat][$image] = array( - 'file' => ($cat != $user->lang['NO_AVATAR_CATEGORY']) ? rawurlencode($cat) . '/' . rawurlencode($image) : rawurlencode($image), + 'file' => ($cat != $user->lang['NO_AVATAR_CATEGORY']) ? str_replace('%2F', '/', rawurlencode($cat)) . '/' . rawurlencode($image) : rawurlencode($image), 'filename' => rawurlencode($image), 'name' => ucfirst(str_replace('_', ' ', preg_replace('#^(.*)\..*$#', '\1', $image))), 'width' => $dims[0], |