mirror of
https://github.com/Mibew/mibew.git
synced 2025-02-07 08:14:42 +03:00
Remove unused AbstractGenerator::getChatUrlForJs method
This commit is contained in:
parent
0dca0bb57d
commit
21ae86958d
@ -171,27 +171,6 @@ abstract class AbstractGenerator implements GeneratorInterface
|
||||
return $this->generateUrl('chat_user_start', $link_params);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the URL of the chat start point.
|
||||
*
|
||||
* The result is a JavaScript String with several additional dynamic
|
||||
* parameters. It can be use only as a JS String.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
protected function getChatUrlForJs()
|
||||
{
|
||||
$url = str_replace('&', '&', $this->getChatUrl());
|
||||
$modsecfix = $this->getOption('mod_security')
|
||||
? ".replace('http://','').replace('https://','')"
|
||||
: '';
|
||||
|
||||
return "'" . $url
|
||||
. ((strpos($url, '?') === false) ? '?' : '&')
|
||||
. "url='+escape(document.location.href$modsecfix)+'&"
|
||||
. "referrer='+escape(document.referrer$modsecfix)";
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the style options string for the chat popup.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user