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-includes/class.bb-dir-map.php

    r2393 r6153  
    1515    var $_current_file;
    1616
    17     function BB_Dir_Map( $root, $args = '' ) {
     17    function __construct( $root, $args = '' ) {
    1818        if ( !is_dir( $root ) ) {
    1919            $this->error = new WP_Error( 'bb_dir_map', __('Not a valid directory') );
     
    2828        $this->_current_root = $this->root = rtrim($root, '/\\');
    2929        $this->map();
     30    }
     31
     32    function BB_Dir_Map( $root, $args = '' ) {
     33        $this->__construct( $root, $args );
    3034    }
    3135
Note: See TracChangeset for help on using the changeset viewer.