Skip to:
Content

bbPress.org

Changeset 6170


Ignore:
Timestamp:
12/14/2016 12:13:14 PM (8 years ago)
Author:
xknown
Message:

branch 0.9: Silence signature mismatch notices.

In PHP 7.0, they are reported as warnings http://php.net/manual/fr/migration70.incompatible.php#migration70.incompatible.error-handling.strict

See #3033

Location:
branches/1.1
Files:
2 edited

Legend:

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

    r6154 r6170  
    12801280    }
    12811281   
    1282     function start_el($output, $forum, $depth) {
     1282    function start_el($output, $forum, $depth = 0) {
    12831283        $this->forum_id = $forum->forum_id;
    12841284        $indent = str_repeat("\t", $depth + 1);
    12851285        $output .= $indent . "<li id='forum-$this->forum_id'" . get_alt_class( 'forum', 'forum clear list-block' ) . ">\n";
    1286 
    12871286        return $output;
    12881287    }
    12891288   
    1290     function end_el($output, $forum, $depth) {
     1289    function end_el($output, $forum, $depth = 0) {
    12911290        $indent = str_repeat("\t", $depth + 1);
    12921291        $output .= $indent . "</li>\n";
  • branches/1.1/bb-includes/class.bb-walker.php

    r6153 r6170  
    66
    77    //abstract callbacks
    8     function start_lvl($output) { return $output; }
    9     function end_lvl($output)   { return $output; }
    10     function start_el($output)  { return $output; }
    11     function end_el($output)    { return $output; }
     8    function start_lvl($output, $depth) { return $output; }
     9    function end_lvl($output, $depth)   { return $output; }
     10    function start_el($output, $object, $depth = 0)  { return $output; }
     11    function end_el($output, $object, $depth = 0)    { return $output; }
    1212
    1313    function _init() {
     
    144144    }
    145145
    146     function start_el()  { return ''; }
    147     function end_el()    { return ''; }
     146    function start_el( $output, $object, $depth = 0 )  { return ''; }
     147    function end_el( $output, $object, $depth = 0 )    { return ''; }
    148148}
    149149
Note: See TracChangeset for help on using the changeset viewer.