Plugin Directory

Changeset 708722


Ignore:
Timestamp:
05/06/2013 04:04:02 PM (13 years ago)
Author:
tkrivickas
Message:

REF: replaced plain dirname with WP plugin_dir_path for base folder constant

Location:
live-stream-badger/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • live-stream-badger/trunk/apis/class-api-core.php

    r700755 r708722  
    33include_once ( 'class-api.php' );
    44include_once ( 'class-api-twitch.php' );
    5 include_once LSB_PLUGIN_BASE_URL . '/domain/domain-core.php';
     5include_once LSB_PLUGIN_BASE . 'domain/domain-core.php';
    66
    77/**
  • live-stream-badger/trunk/domain/domain-core.php

    r700790 r708722  
    11<?php
    22
    3 include_once LSB_PLUGIN_BASE_URL . '/domain/class-stream-info.php';
    4 include_once LSB_PLUGIN_BASE_URL . '/domain/class-stream-url.php';
    5 include_once LSB_PLUGIN_BASE_URL . '/domain/class-menu-item.php';
     3include_once LSB_PLUGIN_BASE . 'domain/class-stream-info.php';
     4include_once LSB_PLUGIN_BASE . 'domain/class-stream-url.php';
     5include_once LSB_PLUGIN_BASE . 'domain/class-menu-item.php';
    66
    77//eof
  • live-stream-badger/trunk/live-stream-badger-plugin.php

    r700997 r708722  
    1111 */
    1212
    13 if ( !defined( 'LSB_PLUGIN_BASE_URL' ) ) {
    14     define( 'LSB_PLUGIN_BASE_URL', dirname( __FILE__ ) );
     13if ( !defined( 'LSB_PLUGIN_BASE' ) ) {
     14    define( 'LSB_PLUGIN_BASE', plugin_dir_path( __FILE__ ) );
    1515}
    1616
    17 include_once ( LSB_PLUGIN_BASE_URL . '/apis/class-api-core.php' );
    18 include_once ( LSB_PLUGIN_BASE_URL . '/domain/domain-core.php' );
     17include_once( LSB_PLUGIN_BASE . 'apis/class-api-core.php' );
     18include_once( LSB_PLUGIN_BASE . 'domain/domain-core.php' );
    1919
    20 include_once ( LSB_PLUGIN_BASE_URL . '/stream-status-widget.php' );
    21 include_once ( LSB_PLUGIN_BASE_URL . '/shortcode/class-embedded-stream.php' );
    22 include_once ( LSB_PLUGIN_BASE_URL . '/scheduler/class-menu-item-updater.php' );
     20include_once( LSB_PLUGIN_BASE . 'stream-status-widget.php' );
     21include_once( LSB_PLUGIN_BASE . 'shortcode/class-embedded-stream.php' );
     22include_once( LSB_PLUGIN_BASE . 'scheduler/class-menu-item-updater.php' );
    2323
    2424// Register widget
  • live-stream-badger/trunk/scheduler/class-menu-item-updater.php

    r700755 r708722  
    11<?php
    22
    3 // Die if we haven't been included by WordPress
    43if ( !defined( 'ABSPATH' ) )
    54    die();
    65
    7 include_once ( LSB_PLUGIN_BASE_URL . '/apis/class-api-core.php' );
    8 include_once ( LSB_PLUGIN_BASE_URL . '/domain/domain-core.php' );
     6include_once ( LSB_PLUGIN_BASE . 'apis/class-api-core.php' );
     7include_once ( LSB_PLUGIN_BASE . 'domain/domain-core.php' );
    98
    109/**
  • live-stream-badger/trunk/shortcode/class-embedded-stream.php

    r707591 r708722  
    11<?php
    22
    3 include_once LSB_PLUGIN_BASE_URL . '/view/class-embedded-twitch-view.php';
     3include_once LSB_PLUGIN_BASE . 'view/class-embedded-twitch-view.php';
    44
    55class LSB_Embedded_Stream {
Note: See TracChangeset for help on using the changeset viewer.