Added option to use old-style ‘new tab’ page preview + fixed #1930

This commit is contained in:
Andy Miller
2018-03-20 11:05:11 -06:00
parent 3235c24af5
commit 38c660f2ca
5 changed files with 41 additions and 9 deletions

View File

@@ -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;
}
}