Skip to:
Content

bbPress.org


Ignore:
Timestamp:
12/09/2016 01:58:10 PM (9 years ago)
Author:
xknown
Message:

Add PHP 5.x style constructors.

Keep also the PHP 4.x style constructors to avoid breaking code that depends on these methods.

See #3033

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.1/bb-admin/includes/class.bb-install.php

    r2403 r6153  
    102102     * @return boolean Always returns true
    103103     */
    104     function BB_Install( $caller )
     104    function __construct( $caller )
    105105    {
    106106        $this->caller = $caller;
     
    160160
    161161        return true;
     162    }
     163
     164    function BB_Install( $caller ) {
     165        $this->__construct( $caller );
    162166    }
    163167
     
    12811285        require_once( BACKPRESS_PATH . 'class.bpdb-multi.php' );
    12821286
    1283         $bbdb =& new BPDB_Multi( array(
     1287        $bbdb = new BPDB_Multi( array(
    12841288            'name'     => BBDB_NAME,
    12851289            'user'     => BBDB_USER,
Note: See TracChangeset for help on using the changeset viewer.