summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Evans <grknight@gentoo.org>2019-04-11 11:28:22 -0400
committerBrian Evans <grknight@gentoo.org>2019-04-11 11:28:22 -0400
commit767a402a39c57cefcccd91b672a90b1142782824 (patch)
treebf008d102619c9206d16b2c448c4c622299adb56
parentUpgrade CheckUser to 1.32 (diff)
downloadextensions-767a402a39c57cefcccd91b672a90b1142782824.tar.gz
extensions-767a402a39c57cefcccd91b672a90b1142782824.tar.bz2
extensions-767a402a39c57cefcccd91b672a90b1142782824.zip
CommentStreams: Include minor fixes from upstream
Signed-off-by: Brian Evans <grknight@gentoo.org>
-rw-r--r--CommentStreams/includes/Comment.php5
-rw-r--r--CommentStreams/resources/CommentStreams.css1
2 files changed, 4 insertions, 2 deletions
diff --git a/CommentStreams/includes/Comment.php b/CommentStreams/includes/Comment.php
index c6744ac5..27a8300c 100644
--- a/CommentStreams/includes/Comment.php
+++ b/CommentStreams/includes/Comment.php
@@ -981,8 +981,9 @@ EOT;
if ( count( $values ) > 0 ) {
// this property should only have one value so pick the first one
$value = $values[0];
- if ( $value->getDIType() == SMWDataItem::TYPE_STRING
- || $value->getDIType() == SMWDataItem::TYPE_BLOB ) {
+ if ( ( defined( 'SMWDataItem::TYPE_STRING' ) &&
+ $value->getDIType() == SMWDataItem::TYPE_STRING ) ||
+ $value->getDIType() == SMWDataItem::TYPE_BLOB ) {
return $value->getString();
} elseif ( $value->getDIType() == SMWDataItem::TYPE_WIKIPAGE ) {
return $value->getTitle();
diff --git a/CommentStreams/resources/CommentStreams.css b/CommentStreams/resources/CommentStreams.css
index 9473a305..574e6a82 100644
--- a/CommentStreams/resources/CommentStreams.css
+++ b/CommentStreams/resources/CommentStreams.css
@@ -14,6 +14,7 @@
.cs-comment {
position: relative;
+ overflow: hidden;
}
.cs-reply-comment {