Closed (fixed)
Project:
Insert
Version:
8.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
6 Jul 2018 at 07:13 UTC
Updated:
21 Jul 2018 at 14:34 UTC
Jump to comment: Most recent, Most recent file
t() calls should be avoided in classes, use dependency injection and $this->t() instead
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | use_this_t-2984088-1.patch | 9.61 KB | keshavv |
Comments
Comment #2
keshavv commentedPatch added please review
Comment #4
snater commentedMethods of
InsertUtilityandInsertColorboxUtilityare static, usingStringTranslationTraitfails as you cannot use$thisin static context andselffails as well. I guesst()has to stand alone in those files. Feel free to reopen if you find another solution.Comment #5
snater commented