Пример #1
0
 public function logout()
 {
     if (Module::isInstalled('agilemultipleshop')) {
         unset($_SESSION[Context::getContext()->cookie->getName()]);
     }
     parent::logout();
 }
 /**
  * Logout
  *
  * @since 1.5.0
  */
 public function logout()
 {
     if (file_exists(_PS_ROOT_DIR_ . '/modules/fbconnect_psb/fb_sdk/facebook.php')) {
         include _PS_ROOT_DIR_ . '/modules/fbconnect_psb/fb_sdk/facebook.php';
         $facebook = new Facebook(array('appId' => Configuration::get('FB_CONNECT_APPID'), 'secret' => Configuration::get('FB_CONNECT_APPKEY')));
         $facebook->destroySession();
     }
     parent::logout();
 }