Merge pull request #7 from radiorabe/feature/turn-off-live-chat-per-default
config to disable live chat
This commit is contained in:
commit
e55b95cc3b
2 changed files with 5 additions and 1 deletions
|
@ -224,7 +224,8 @@ class PageLayoutInitPlugin extends Zend_Controller_Plugin_Abstract
|
|||
}
|
||||
|
||||
$view->headScript()->appendScript("var userType = '$userType';");
|
||||
if (array_key_exists('REQUEST_URI', $_SERVER) //Doesn't exist for unit tests
|
||||
if (LIBRETIME_ENABLE_LIVECHAT === true
|
||||
&& array_key_exists('REQUEST_URI', $_SERVER) //Doesn't exist for unit tests
|
||||
&& strpos($_SERVER['REQUEST_URI'], 'Dashboard/stream-player') === false
|
||||
&& strpos($_SERVER['REQUEST_URI'], 'audiopreview') === false
|
||||
&& $_SERVER['REQUEST_URI'] != "/") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue