summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorspiderr <spiderr@bitweaver.org>2021-02-04 12:01:20 -0500
committerspiderr <spiderr@bitweaver.org>2021-02-04 12:01:20 -0500
commit554418f5054e3ccef8e5da18aebaa9bb07488b32 (patch)
treed98a177674c1d2089bd888beb6adeed0e05f4427 /plugins
parent807b28ba1d2d3eab932e9614ad3d6b07704647de (diff)
downloadliberty-554418f5054e3ccef8e5da18aebaa9bb07488b32.tar.gz
liberty-554418f5054e3ccef8e5da18aebaa9bb07488b32.tar.bz2
liberty-554418f5054e3ccef8e5da18aebaa9bb07488b32.zip
move _inc and _lib to includes/ and use PKG_INCLUDE_PATH constants
Diffstat (limited to 'plugins')
-rw-r--r--plugins/data.alias.php2
-rw-r--r--plugins/data.attachment.php4
-rw-r--r--plugins/filter.bitlinks.php2
3 files changed, 4 insertions, 4 deletions
diff --git a/plugins/data.alias.php b/plugins/data.alias.php
index f55d201..4502bab 100644
--- a/plugins/data.alias.php
+++ b/plugins/data.alias.php
@@ -49,7 +49,7 @@ function data_alias_help() {
function data_alias( $pData, $pParams, $pCommonObject ) {
$page = '';
- require_once(WIKI_PKG_PATH."BitPage.php");
+ require_once(WIKI_PKG_CLASS_PATH.'BitPage.php');
foreach( $pParams as $key => $value ) {
if( !empty( $value ) ) {
diff --git a/plugins/data.attachment.php b/plugins/data.attachment.php
index 8fe8ed1..539df90 100644
--- a/plugins/data.attachment.php
+++ b/plugins/data.attachment.php
@@ -133,7 +133,7 @@ function data_attachment( $pData, $pParams, $pCommonObject, $pParseHash ) {
// link to page by page_id
// avoid endless loops
- require_once( WIKI_PKG_PATH.'BitPage.php');
+ require_once( WIKI_PKG_CLASS_PATH.'BitPage.php');
$wp = new BitPage( $pParams['page_id'] );
if( $wp->load() ) {
$wrapper['display_url'] = $wp->getDisplayUrl();
@@ -145,7 +145,7 @@ function data_attachment( $pData, $pParams, $pCommonObject, $pParseHash ) {
}
} elseif( !empty( $pParams['page_name'] )) {
// link to page by page_name
- require_once( WIKI_PKG_PATH.'BitPage.php');
+ require_once( WIKI_PKG_CLASS_PATH.'BitPage.php');
$wp = new BitPage();
$wrapper['display_url'] = $wp->getDisplayUrl( $pParams['page_name'] );
} elseif( !empty( $pParams['link'] ) && $pParams['link'] == 'false' ) {
diff --git a/plugins/filter.bitlinks.php b/plugins/filter.bitlinks.php
index 76618d7..8b5144d 100644
--- a/plugins/filter.bitlinks.php
+++ b/plugins/filter.bitlinks.php
@@ -227,7 +227,7 @@ class BitLinks extends BitBase {
// final attempt to get page details
if( empty( $ret ) && !empty( $pObject ) && $gBitSystem->isPackageActive( 'wiki' ) ) {
- require_once( WIKI_PKG_PATH.'BitPage.php' );
+ require_once( WIKI_PKG_CLASS_PATH.'BitPage.php' );
if( $ret = BitPage::pageExists( $pTitle, FALSE, $pContentId )) {
if( count( $ret ) > 1 ) {
$ret[0]['description'] = tra( 'Multiple pages with this name' );