Skip to content

Commit

Permalink
Get the application if not done by JPlugin.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bakual committed May 12, 2014
1 parent f3af6ce commit 28b8061
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions plugins/system/remember/remember.php
Expand Up @@ -38,6 +38,12 @@ class PlgSystemRemember extends JPlugin
*/
public function onAfterInitialise()
{
// Get the application if not done by JPlugin. This may happen during upgrades from Joomla 2.5.
if (!$this->app)
{
$this->app = JFactory::getApplication();
}

// No remember me for admin.
if ($this->app->isAdmin())
{
Expand Down

0 comments on commit 28b8061

Please sign in to comment.