t() calls should be avoided in classes, use dependency injection and $this->t() instead.

Comments

Rangaswini created an issue. See original summary.

Rangaswini’s picture

StatusFileSize
new549 bytes
Rangaswini’s picture

Assigned: Rangaswini » Unassigned
Status: Active » Needs review
Lal_’s picture

Status: Needs review » Needs work
+++ b/src/AddToCalendarApiWidget.php
@@ -77,7 +77,7 @@ class AddToCalendarApiWidget {
+    $display_text = $this->t(':text', array(':text' => $this->atcDisplayText));

instead of array(), use [] instead

ravi.shankar’s picture

Status: Needs work » Needs review
StatusFileSize
new544 bytes
shaktik’s picture

Patch Looks good to me.

shaktik’s picture

Status: Needs review » Reviewed & tested by the community