diff options
| author | modela bitweaver <spiderr@bitweaver.org> | 2021-02-02 01:12:19 -0500 |
|---|---|---|
| committer | modela bitweaver <spiderr@bitweaver.org> | 2021-02-02 01:12:19 -0500 |
| commit | 455d3cbf96fe18f193fe155d0223939839bbaf2b (patch) | |
| tree | 4b9b7ef82d7e77c625224df26367e93e58600fea /includes | |
| parent | 8e42273cc4e4ea21a6955fb1fce5a3aed5b96df5 (diff) | |
| download | blogs-455d3cbf96fe18f193fe155d0223939839bbaf2b.tar.gz blogs-455d3cbf96fe18f193fe155d0223939839bbaf2b.tar.bz2 blogs-455d3cbf96fe18f193fe155d0223939839bbaf2b.zip | |
move _inc and _lib to includes/ and use PKG_INCLUDE_PATH constants
Diffstat (limited to 'includes')
| -rw-r--r-- | includes/classes/BitBlog.php | 2 | ||||
| -rw-r--r-- | includes/classes/BitBlogPost.php | 6 | ||||
| -rw-r--r-- | includes/display_bitblogpost_inc.php | 2 | ||||
| -rw-r--r-- | includes/lookup_blog_inc.php | 2 | ||||
| -rw-r--r-- | includes/lookup_post_inc.php | 2 |
5 files changed, 7 insertions, 7 deletions
diff --git a/includes/classes/BitBlog.php b/includes/classes/BitBlog.php index 87a5708..9f360e9 100644 --- a/includes/classes/BitBlog.php +++ b/includes/classes/BitBlog.php @@ -9,7 +9,7 @@ * required setup */ require_once( BLOGS_PKG_CLASS_PATH.'BitBlogPost.php'); -require_once( LIBERTY_PKG_PATH.'LibertyComment.php'); +require_once( LIBERTY_PKG_CLASS_PATH.'LibertyComment.php'); define( 'BITBLOG_CONTENT_TYPE_GUID', 'bitblog' ); diff --git a/includes/classes/BitBlogPost.php b/includes/classes/BitBlogPost.php index a79adbc..280893d 100644 --- a/includes/classes/BitBlogPost.php +++ b/includes/classes/BitBlogPost.php @@ -20,8 +20,8 @@ /** * required setup */ -require_once( LIBERTY_PKG_PATH.'LibertyComment.php'); -require_once( LIBERTY_PKG_PATH.'LibertyMime.php'); +require_once( LIBERTY_PKG_CLASS_PATH.'LibertyComment.php'); +require_once( LIBERTY_PKG_CLASS_PATH.'LibertyMime.php'); require_once( BLOGS_PKG_CLASS_PATH.'BitBlog.php'); define( 'BITBLOGPOST_CONTENT_TYPE_GUID', 'bitblogpost' ); @@ -725,7 +725,7 @@ class BitBlogPost extends LibertyMime { $parts = parse_url($_SERVER['REQUEST_URI']); $uri = httpPrefix(). str_replace('post', 'view_post', $parts['path']). '?post_id=' . $this->mPostId . '&blog_id=' . $this->mInfo['blog_id']; - include_once ( UTIL_PKG_INC.'Snoopy.class.inc' ); + include_once ( UTIL_PKG_INCLUDE_PATH.'Snoopy.class.inc' ); $snoopy = new Snoopy; foreach ($tracks as $track) { diff --git a/includes/display_bitblogpost_inc.php b/includes/display_bitblogpost_inc.php index 7dd7859..266d725 100644 --- a/includes/display_bitblogpost_inc.php +++ b/includes/display_bitblogpost_inc.php @@ -67,7 +67,7 @@ if ( empty( $_REQUEST['format'] ) || $_REQUEST['format'] == "full" || $_REQUEST[ if ($gBitSystem->isFeatureActive( 'blog_posts_comments' ) ) { $comments_return_url = $_SERVER['SCRIPT_NAME']."?post_id=".$gContent->mPostId; $commentsParentId = $gContent->mContentId; - include_once ( LIBERTY_PKG_PATH.'comments_inc.php' ); + include_once ( LIBERTY_PKG_INCLUDE_PATH.'comments_inc.php' ); } $extendedTitle = isset($gContent->mInfo['blogtitle']) ? ' - '.$gContent->mInfo['blogtitle'] : NULL; $gBitSystem->setBrowserTitle($gContent->mInfo['title'].$extendedTitle); diff --git a/includes/lookup_blog_inc.php b/includes/lookup_blog_inc.php index bf1d41f..fa384dd 100644 --- a/includes/lookup_blog_inc.php +++ b/includes/lookup_blog_inc.php @@ -9,7 +9,7 @@ */ global $gContent; require_once( BLOGS_PKG_CLASS_PATH.'BitBlog.php' ); -require_once( LIBERTY_PKG_PATH.'lookup_content_inc.php' ); +require_once( LIBERTY_PKG_INCLUDE_PATH.'lookup_content_inc.php' ); // if we already have a gContent, we assume someone else created it for us, and has properly loaded everything up. if( empty( $gContent ) || !is_object( $gContent ) || !$gContent->isValid() ) { diff --git a/includes/lookup_post_inc.php b/includes/lookup_post_inc.php index 12d52ce..0803a4e 100644 --- a/includes/lookup_post_inc.php +++ b/includes/lookup_post_inc.php @@ -9,7 +9,7 @@ */ global $gContent; require_once( BLOGS_PKG_CLASS_PATH.'BitBlogPost.php'); -require_once( LIBERTY_PKG_PATH.'lookup_content_inc.php' ); +require_once( LIBERTY_PKG_INCLUDE_PATH.'lookup_content_inc.php' ); if( empty( $gContent ) || !is_object( $gContent ) || !$gContent->isValid() ) { // if blog_id supplied, use that |
