Skip to content

Commit

Permalink
Load language files on callback event
Browse files Browse the repository at this point in the history
IMHO JPlugin should be doing that automatically when the plugin object is instantiated. Since it doesn't developers end up calling loadLangauge on every event handler, making performance worse overall. Oh, well, that's the subject of another PR...
  • Loading branch information
Nicholas K. Dionysopoulos committed Aug 25, 2016
1 parent 6fb4a3e commit 01b8dcf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plugins/authentication/facebook/facebook.php
Expand Up @@ -81,6 +81,9 @@ public function onUserLoginFormFields()

public function onAjaxFacebook()
{
// Load plugin language
$this->loadLanguage('plg_authentication_facebook');

// Try to exchange the code with a token
$facebookOauth = $this->getFacebookOauth();
$app = JFactory::getApplication();
Expand Down

0 comments on commit 01b8dcf

Please sign in to comment.