summaryrefslogtreecommitdiff
path: root/includes/classes/BitBlog.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/classes/BitBlog.php')
-rwxr-xr-xincludes/classes/BitBlog.php12
1 files changed, 5 insertions, 7 deletions
diff --git a/includes/classes/BitBlog.php b/includes/classes/BitBlog.php
index f3cc0be..9948257 100755
--- a/includes/classes/BitBlog.php
+++ b/includes/classes/BitBlog.php
@@ -9,10 +9,10 @@
* required setup
*/
namespace Bitweaver\Blogs;
+
use Bitweaver\BitBase;
use Bitweaver\Liberty\LibertyContent;
use Bitweaver\Liberty\LibertyMime;
-use Bitweaver\Users\RolePermUser;
define( 'BITBLOG_CONTENT_TYPE_GUID', 'bitblog' );
@@ -30,7 +30,7 @@ class BitBlog extends LibertyMime {
} else {
$this->mBlogId = $this->verifyId( $pBlogId ) ? $pBlogId : 0;
}
-
+
parent::__construct();
$this->registerContentType( BITBLOG_CONTENT_TYPE_GUID, [
'content_type_guid' => BITBLOG_CONTENT_TYPE_GUID,
@@ -38,7 +38,7 @@ class BitBlog extends LibertyMime {
'handler_class' => 'BitBlog',
'handler_package' => 'blogs',
'handler_file' => 'BitBlog.php',
- 'maintainer_url' => 'https://www.bitweaver.org'
+ 'maintainer_url' => 'https://www.bitweaver.org',
] );
$this->mContentId = $pContentId;
$this->mContentTypeGuid = BITBLOG_CONTENT_TYPE_GUID;
@@ -103,7 +103,6 @@ class BitBlog extends LibertyMime {
return true;
}
-
/*shared*/
public function getBlog( $pBlogId, $pContentId = null ) {
global $gBitSystem;
@@ -176,7 +175,7 @@ class BitBlog extends LibertyMime {
//$pParamHash['blog_store']['posts'] = 0;
$pParamHash['blog_store']['content_id'] = $this->mContentId;
// if pParamHash['blog_id'] is set, someone is requesting a particular blog_id. Use with caution!
- $pParamHash['blog_store']['blog_id'] = isset( $pParamHash['blog_id'] ) && is_numeric( $pParamHash['blog_id'] )
+ $pParamHash['blog_store']['blog_id'] = isset( $pParamHash['blog_id'] ) && is_numeric( $pParamHash['blog_id'] )
? $pParamHash['blog_id'] : $this->mDb->GenID( 'blogs_blog_id_seq' );
$this->mBlogId = $pParamHash['blog_store']['blog_id'];
@@ -277,7 +276,6 @@ class BitBlog extends LibertyMime {
$whereSql = preg_replace( '/^[\s]*AND/', ' WHERE ', $whereSql );
}
-
$ret = [];
// Return a data array, even if empty
@@ -400,7 +398,7 @@ class BitBlog extends LibertyMime {
public function getAvailableContentStatuses( $pUserMinimum=-100, $pUserMaximum=100 ) {
global $gBitUser;
$ret = null;
- // return null for all but admins
+ // return null for all but admins
if( $gBitUser->hasPermission( 'p_liberty_edit_all_status' )) {
$ret = LibertyMime::getAvailableContentStatuses();
}