Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/30/2016 09:41:49 PM (4 years ago)
Author:
djpaul
Message:

Emails: swap out remaining old function names.

Prior to initial commit in BuddyPress, setter and getter methods were
renamed. These were missed, and the template call was causing PHP
Fatals.

Props mercime

See #6592

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/classes/class-bp-email.php

    r10482 r10483  
    737737            // Load the template.
    738738            bp_locate_template( bp_email_get_template( $this->post_object ), true, false );
    739             $this->template( ob_get_contents() );
     739            $this->set_template( ob_get_contents() );
    740740
    741741            ob_end_clean();
     
    930930        // BCC, CC, and token properties are optional.
    931931        if (
    932             ! $this->get( 'from' ) ||
    933             ! $this->get( 'to' ) ||
    934             ! $this->get( 'subject' ) ||
    935             ! $this->get( 'content' ) ||
    936             ! $this->get( 'template' )
     932            ! $this->get_from() ||
     933            ! $this->get_to() ||
     934            ! $this->get_subject() ||
     935            ! $this->get_content() ||
     936            ! $this->get_template()
    937937        ) {
    938938            $retval = new WP_Error( 'missing_parameter', __CLASS__, $this );
Note: See TracChangeset for help on using the changeset viewer.