Skip to:
Content
Pages
Categories
Search
Top
Bottom

CSS pathing incorrect

  • Avatar of stwc
    stwc
    Participant

    @stwc

    Hey, just testing this out, and it looks like the pathing to the CSS file is messed up. On my install, it’s writing

    `buddypress-docs/includes/cssbp-docs.css?ver=3.1.2′ type=’text/css’ media=’all’ `

    into the head. No slash between css and bp-docs.css.

    Looks like it doesn’t know what DIRECTORY_SEPARATOR is on line 651 of integration-bp.php

Viewing 3 replies - 1 through 3 (of 3 total)
  • Avatar of Boone Gorges
    Boone Gorges
    Keymaster

    @boonebgorges

    Hm. Weird, I thought that PHP had to have this constant defined.

    As a test, would you mind putting the following line into your bp-custom.php or wp-config.php file?

    if ( !defined( ‘DIRECTORY_SEPARATOR’ ) )
    define( ‘DIRECTORY_SEPARATOR’, ‘/’ );

    If that works, I can add it to the plugin itself.

    Avatar of Hugo
    Hugo
    Moderator

    @hnla

    It is a constant, but is it not somewhat redundant? All sane environments that matter use forward slash ‘/’ windows uses ” because it’s hugely perverse but in reality it will translate one to tother

    Avatar of Boone Gorges
    Boone Gorges
    Keymaster

    @boonebgorges

    Yeah, I did some more research. The DIRECTORY_SEPARATOR constant really only needs to be used when parsing a local path that is given to you by the system (such as dirname()), but not when defining includes.

    I’ll refactor in the next version.

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.