Skip to:
Content

bbPress.org


Ignore:
Timestamp:
12/12/2016 01:51:49 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/0.9/bb-includes/locale.php

    r1386 r6157  
    165165    }
    166166
    167     function BB_Locale() {
     167    function __construct() {
    168168        $this->init();
    169169        $this->register_globals();
     170    }
     171
     172    function BB_Locale() {
     173        $this->__construct();
    170174    }
    171175}
Note: See TracChangeset for help on using the changeset viewer.