Changeset 1017 for trunk/bp-xprofile/bp-xprofile-admin.php
- Timestamp:
- 02/04/2009 12:29:21 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-xprofile/bp-xprofile-admin.php
r850 r1017 11 11 function xprofile_admin( $message = '', $type = 'error' ) { 12 12 global $bp; 13 13 14 $type = preg_replace( '|[^a-z]|i', '', $type ); 15 14 16 $groups = BP_XProfile_Group::get_all(); 15 17 16 18 if ( isset($_GET['mode']) && isset($_GET['group_id']) && $_GET['mode'] == "add_field" ) { 17 19 xprofile_admin_manage_field($_GET['group_id']); … … 45 47 ?> 46 48 <div id="message" class="<?php echo $type; ?> fade"> 47 <p><?php echo $message; ?></p>49 <p><?php echo wp_specialchars( $message ); ?></p> 48 50 </div> 49 51 <?php } … … 63 65 </script> 64 66 65 <?php if ( function_exists('wp_nonce_field') )66 67 68 for ( $i = 0; $i < count($groups); $i++ ) { 67 <?php 68 wp_nonce_field('xprofile_reorder_fields'); 69 70 for ( $i = 0; $i < count($groups); $i++ ) { // TODO: foreach 69 71 ?> 70 72 <p> … … 121 123 122 124 <?php } else { ?> 123 <div id="message" class="error"><p> You have no groups.</p></div>125 <div id="message" class="error"><p><?php _e('You have no groups.', 'buddypress' ); ?></p></div> 124 126 <p><a href="admin.php?page=xprofile_settings&mode=add_group"><?php _e( 'Add New Group', 'buddypress' ) ?></a></p> 125 127 <?php } ?> … … 184 186 } 185 187 186 unset($_GET['mode']); 188 unset($_GET['mode']); // TODO: wtf? 187 189 xprofile_admin( $message, $type ); 188 190 } … … 261 263 xprofile_admin($message, $type); 262 264 } 263 264 ?>
Note: See TracChangeset
for help on using the changeset viewer.