Version 4.6.0
This commit is contained in:
1 parent
f79dcf067a
commit
517a5e1f70
2036 files changed
+110041
-26162
No files matched your search
@@ -434,8 +434,7 @@ class _Request extends \IPS\Patterns\Singleton
|
||||
{
|
||||
$this->setCookie( 'member_id', NULL );
|
||||
$this->setCookie( 'login_key', NULL );
|
||||
$this->setCookie( 'loggedIn', NULL );
|
||||
$this->setCookie( 'guestTime', NULL );
|
||||
$this->setCookie( 'loggedIn', NULL, NULL, FALSE );
|
||||
$this->setCookie( 'noCache', NULL );
|
||||
|
||||
foreach( $this->cookie as $name => $value )
|
||||
@@ -450,7 +449,7 @@ class _Request extends \IPS\Patterns\Singleton
|
||||
/**
|
||||
* @brief Editor autosave keys to be cleared
|
||||
*/
|
||||
protected $clearAutoSaveCookie = array();
|
||||
public $clearAutoSaveCookie = array();
|
||||
|
||||
/**
|
||||
* Set cookie to clear autosave content from editor
|
||||
@@ -460,13 +459,7 @@ class _Request extends \IPS\Patterns\Singleton
|
||||
*/
|
||||
public function setClearAutosaveCookie( $autoSaveKey )
|
||||
{
|
||||
$this->clearAutoSaveCookie[] = $autoSaveKey;
|
||||
|
||||
/* It is possible for this method to be called from tasks executing during __destruct() after the output has been sent. We want to avoid sending a cookie in that case, as it can cause an error to display. */
|
||||
if ( ! headers_sent() )
|
||||
{
|
||||
\IPS\Request::i()->setCookie( 'clearAutosave', implode( ',', $this->clearAutoSaveCookie ), NULL, FALSE );
|
||||
}
|
||||
$this->clearAutoSaveCookie[ $autoSaveKey ] = $autoSaveKey;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user