Skip to:
Content

BuddyPress.org

Changeset 9 for trunk/bp_xprofile.php


Ignore:
Timestamp:
04/03/2008 10:30:24 PM (17 years ago)
Author:
apeatling
Message:

fixed date selection and the clearing of date selections. Added the ability to delete profile images

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp_xprofile.php

    r6 r9  
    380380        {
    381381            $picture = new BP_XProfile_Picture($_GET['file']);
    382            
     382
    383383            if(!$picture->delete())
    384384            {
     
    386386                $type = 'error';
    387387            }
    388             else
    389             {
    390                 $thumbnail = new BP_XProfile_Picture($picture->thumb_filename);
    391                 $thumbnail->delete();
    392                
    393                 $message = __('Profile picture deleted.');
    394                 $type = 'success';
    395             }       
    396         }
    397     }
    398    
     388        }
     389    }
     390
    399391    $current = BP_XProfile_Picture::get_current();
    400392    $current_thumbnail = new BP_XProfile_Picture($current['thumbnail']);
Note: See TracChangeset for help on using the changeset viewer.