summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'CommentStreams/includes/EchoCSPresentationModel.php')
-rw-r--r--CommentStreams/includes/EchoCSPresentationModel.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/CommentStreams/includes/EchoCSPresentationModel.php b/CommentStreams/includes/EchoCSPresentationModel.php
index bc6786cf..3dba5cc9 100644
--- a/CommentStreams/includes/EchoCSPresentationModel.php
+++ b/CommentStreams/includes/EchoCSPresentationModel.php
@@ -21,6 +21,10 @@
* DEALINGS IN THE SOFTWARE.
*/
+namespace MediaWiki\Extension\CommentStreams;
+
+use EchoEventPresentationModel;
+
class EchoCSPresentationModel extends EchoEventPresentationModel {
/**
@@ -81,6 +85,6 @@ class EchoCSPresentationModel extends EchoEventPresentationModel {
* @inheritDoc
*/
public function canRender() {
- return !is_null( $this->event->getTitle() );
+ return $this->event->getTitle() !== null;
}
}