summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlsces <lester@lsces.co.uk>2015-12-08 12:46:35 +0000
committerlsces <lester@lsces.co.uk>2015-12-08 12:46:35 +0000
commit560d281ec3c26543599b886fd83291d34d1fbfa8 (patch)
tree824d4812663f7ab0792c08610d6834c3b7cb1204
parent15b02e6d6faa56a50e429e2e4d65bf3032587f9e (diff)
downloadblogs-560d281ec3c26543599b886fd83291d34d1fbfa8.tar.gz
blogs-560d281ec3c26543599b886fd83291d34d1fbfa8.tar.bz2
blogs-560d281ec3c26543599b886fd83291d34d1fbfa8.zip
Rename constructor for PHP7 compliance
-rw-r--r--BitBlog.php2
-rw-r--r--BitBlogPost.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/BitBlog.php b/BitBlog.php
index 79a020e..58856e5 100644
--- a/BitBlog.php
+++ b/BitBlog.php
@@ -19,7 +19,7 @@ define( 'BITBLOG_CONTENT_TYPE_GUID', 'bitblog' );
class BitBlog extends LibertyMime {
var $mBlogId;
- function BitBlog( $pBlogId=NULL, $pContentId=NULL ) {
+ function __construct( $pBlogId=NULL, $pContentId=NULL ) {
$this->mBlogId = @$this->verifyId( $pBlogId ) ? $pBlogId : NULL;
parent::__construct( $pContentId );
$this->registerContentType( BITBLOG_CONTENT_TYPE_GUID, array(
diff --git a/BitBlogPost.php b/BitBlogPost.php
index 3bfa1cc..914db43 100644
--- a/BitBlogPost.php
+++ b/BitBlogPost.php
@@ -32,7 +32,7 @@ define( 'BITBLOGPOST_CONTENT_TYPE_GUID', 'bitblogpost' );
class BitBlogPost extends LibertyMime {
var $mPostId;
- function BitBlogPost( $pPostId=NULL, $pContentId=NULL ) {
+ function __construct( $pPostId=NULL, $pContentId=NULL ) {
parent::__construct();
$this->registerContentType( BITBLOGPOST_CONTENT_TYPE_GUID, array(
'content_type_guid' => BITBLOGPOST_CONTENT_TYPE_GUID,