Merge pull request #337 from annando/1601-xmpp-federation

XMPP: Don't show the addon on the federation page.
pull/344/head
Tobias Diekershoff 2016-01-17 15:03:17 +01:00
commit 80ccdf0083
1 changed files with 3 additions and 0 deletions

View File

@ -125,6 +125,9 @@ function xmpp_converse(&$a,&$s) {
if (!get_pconfig(local_user(),"xmpp","enabled"))
return;
if (in_array($a->query_string, array("admin/federation/")))
return;
$a->page['htmlhead'] .= '<link type="text/css" rel="stylesheet" media="screen" href="addon/xmpp/converse/css/converse.css" />'."\n";
$a->page['htmlhead'] .= '<script src="addon/xmpp/converse/builds/converse.min.js"></script>'."\n";