User tests: Successful: Unsuccessful:
Pull Request for Issue # .
This PR makes some cleanup to Blog Sample Data plugin:
array
and stdClass
, it works because at the end, the return data will be json encoded, but we should choose to use one type only.Factory::getLanguage()
with $this->app->getLanguage()
Factory::getUser()
with $this->app->getIdentity()
Status | New | ⇒ | Pending |
Category | ⇒ | Front End Plugins |
Labels |
Added:
?
|
I have not tested :) but I will say be careful replacing Factory::getLanguage()
with $this->app->getLanguage()
at the moment, in 100% of the attempts I have made to replace these they then dont work. It seems it is not ready to be used through the app just yet and you dont always get the results intended.
@PhilETaylor Real test worked well for me. Also, I tried to write some code to test the behavior for some methods called on this plugin:
$this->app->getLanguage()->load
$this->app->getLanguage()->getTag()
And it worked OK. So I guess it's fine for the change in this plugin
If it works here then great, just keep in mind what I said for next time :)
If it works here then great, just keep in mind what I said for next time :)
I can only confirm it works for the changes in this PR :). For other contexts , I could not confirm :D.
/me bookmarks this thread for "next time" mwah mwah mwah
I have tested this item
Applied PR and Blog sample data populated properly.
Status | Pending | ⇒ | Ready to Commit |
RTC
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2021-06-09 06:43:47 |
Closed_By | ⇒ | chmst | |
Labels |
Added:
?
|
Thanks!
I have tested this item✅ successfully on a51b778
Test using welsh language.
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/34462.