Changeset 702 for trunk/forum/includes/acp/acp_ranks.php
- Timestamp:
- Mar 31, 2010, 6:32:40 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/forum/includes/acp/acp_ranks.php
r400 r702 3 3 * 4 4 * @package acp 5 * @version $Id : acp_ranks.php 8479 2008-03-29 00:22:48Z naderman$5 * @version $Id$ 6 6 * @copyright (c) 2005 phpBB Group 7 7 * @license http://opensource.org/licenses/gpl-license.php GNU Public License … … 40 40 $this->page_title = 'ACP_MANAGE_RANKS'; 41 41 42 $form_name = 'acp_ prune';42 $form_name = 'acp_ranks'; 43 43 add_form_key($form_name); 44 44 … … 169 169 $img = $path . $img; 170 170 171 if ( !in_array($img, $existing_imgs) || $action == 'edit')171 if ($ranks && $img == $ranks['rank_image']) 172 172 { 173 if ($ranks && $img == $ranks['rank_image']) 174 { 175 $selected = ' selected="selected"'; 176 $edit_img = $img; 177 } 178 else 179 { 180 $selected = ''; 181 } 182 183 if (strlen($img) > 255) 184 { 185 continue; 186 } 187 188 $filename_list .= '<option value="' . htmlspecialchars($img) . '"' . $selected . '>' . $img . '</option>'; 173 $selected = ' selected="selected"'; 174 $edit_img = $img; 189 175 } 176 else 177 { 178 $selected = ''; 179 } 180 181 if (strlen($img) > 255) 182 { 183 continue; 184 } 185 186 $filename_list .= '<option value="' . htmlspecialchars($img) . '"' . $selected . '>' . $img . ((in_array($img, $existing_imgs)) ? ' ' . $user->lang['RANK_IMAGE_IN_USE'] : '') . '</option>'; 190 187 } 191 188 }
Note:
See TracChangeset
for help on using the changeset viewer.