Plugin Directory

Changeset 1996534


Ignore:
Timestamp:
12/17/2018 03:24:40 PM (7 years ago)
Author:
jibberchat
Message:

Fixed basecontroller syntax with dirname

Location:
jibber-chat/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • jibber-chat/trunk/inc/JC_Base/Jibber_Chat_BaseController.php

    r1860379 r1996534  
    1616    public function __construct() {
    1717        // Distance to parent (root folder)
    18         $this->plugin_path = plugin_dir_path( dirname( __FILE__, 2 ) );
    19         $this->plugin_url = plugin_dir_url( dirname( __FILE__, 2 ) );
     18        $this->plugin_path = plugin_dir_path( dirname(dirname(__FILE__)) );
     19        $this->plugin_url = plugin_dir_url( dirname(dirname(__FILE__)) );
    2020        // Small hack with the to get the correct path
    21         $this->plugin = plugin_basename( dirname( __FILE__, 3 ) ) . '/jibber-chat.php';
     21        $this->plugin = plugin_basename( dirname(dirname(dirname(__FILE__))) ) . '/jibber-chat.php';
    2222    }
    2323}
     24
  • jibber-chat/trunk/jibber-chat.php

    r1996506 r1996534  
    77Plugin Name: Jibber Chat
    88Description: Plugin for Jibber Chat
    9 Version:     1.0.5
     9Version:     1.0.6
    1010Author:      Jibber AB
    1111Author URI:  https://jibber.social/
Note: See TracChangeset for help on using the changeset viewer.