Skip to:
Content

bbPress.org


Ignore:
Timestamp:
08/03/2020 01:20:09 PM (4 months ago)
Author:
xknown
Message:

PHP 7.4 Compat: Use square brackets and remove create_function calls.

File:
1 edited

Legend:

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

    r6208 r7110  
    552552function bb_convert_path_base( $path, $from_base, $to_base ) {
    553553    bb_log_deprecated('function', __FUNCTION__, 'no alternative');
    554     $last_char = $path{strlen($path)-1};
     554    $last_char = $path[strlen($path)-1];
    555555    if ( '/' != $last_char && '\\' != $last_char )
    556556        $last_char = '';
Note: See TracChangeset for help on using the changeset viewer.