Skip to:
Content

bbPress.org

Changeset 1264


Ignore:
Timestamp:
03/10/2008 07:21:24 PM (18 years ago)
Author:
mdawaffe
Message:

normalize DIR_SEPARATORs before comparing. Fixes 810

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bb-admin/admin-functions.php

    r1246 r1264  
    867867    $description = bb_autop( $description );
    868868
    869     if (substr($plugin_file, 0, strlen(BB_CORE_PLUGIN_DIR)) == BB_CORE_PLUGIN_DIR) {
     869    $plugin_file = str_replace( '\\', '/', $plugin_file );
     870    $core_dir    = str_replace( '\\', '/', BB_CORE_PLUGIN_DIR );
     871
     872    if (substr($plugin_file, 0, strlen($core_dir)) == $core_dir) {
    870873        $location = 'core';
    871874    } else {
Note: See TracChangeset for help on using the changeset viewer.