summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormodela bitweaver <bitweaver@modela>2014-06-17 13:20:42 -0400
committermodela bitweaver <bitweaver@modela>2014-06-17 13:20:42 -0400
commitfcab4a7123101e475331d2769053dc912708ef88 (patch)
tree7941c40789c1d593bd52c21d60b83edc1712236b
parent05cbd06aa62b7be8f201ac037963828d3f955043 (diff)
downloadarticles-fcab4a7123101e475331d2769053dc912708ef88.tar.gz
articles-fcab4a7123101e475331d2769053dc912708ef88.tar.bz2
articles-fcab4a7123101e475331d2769053dc912708ef88.zip
update static function getImageThumbnails definition
-rw-r--r--BitArticle.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/BitArticle.php b/BitArticle.php
index ebb2988..e12367a 100644
--- a/BitArticle.php
+++ b/BitArticle.php
@@ -116,7 +116,7 @@ class BitArticle extends LibertyMime
$this->mTopicId = $this->mInfo['topic_id'];
$this->mTypeId = $this->mInfo['article_type_id'];
- $this->mInfo['thumbnail_url'] = BitArticle::getImageThumbnails( $this->mInfo );
+ $this->mInfo['thumbnail_url'] = static::getImageThumbnails( $this->mInfo );
$this->mInfo['creator'] = ( !empty( $this->mInfo['creator_real_name'] ) ? $this->mInfo['creator_real_name'] : $this->mInfo['creator_user'] );
$this->mInfo['editor'] = ( !empty( $this->mInfo['modifier_real_name'] ) ? $this->mInfo['modifier_real_name'] : $this->mInfo['modifier_user'] );
$this->mInfo['display_url'] = $this->getDisplayUrl();
@@ -385,7 +385,7 @@ class BitArticle extends LibertyMime
* @return url to image
* @access public
**/
- public function getImageThumbnails($pParamHash)
+ public static function getImageThumbnails($pParamHash)
{
global $gBitSystem, $gThumbSizes;
$ret = NULL;
@@ -568,7 +568,7 @@ class BitArticle extends LibertyMime
// get this stuff parsed
$res = array_merge( $this->parseSplit( $res, $gBitSystem->getConfig( 'articles_description_length', 500 )), $res );
- $res['thumbnail_url'] = BitArticle::getImageThumbnails( $res );
+ $res['thumbnail_url'] = static::getImageThumbnails( $res );
$res['num_comments'] = $comment->getNumComments( $res['content_id'] );
$res['display_url'] = self::getDisplayUrlFromHash( $res );
$res['display_link'] = $this->getDisplayLink( $res['title'], $res );