mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-01 02:46:04 +01:00
Added option to use old-style ‘new tab’ page preview + fixed #1930
This commit is contained in:
@@ -1792,8 +1792,14 @@ class Admin
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return HTTP_REFERRER if set
|
||||
*
|
||||
* @return null
|
||||
*/
|
||||
public function getReferrer()
|
||||
{
|
||||
return $_SERVER['HTTP_REFERER'];
|
||||
$referrer = isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : null;
|
||||
return $referrer;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user