summaryrefslogtreecommitdiff
path: root/plugins/gnusocial/gnusocial.module
blob: 33e6e7d55da16fae57ebf638d76c97d09ba32d3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php

function gnusocial_init($config) {
  define('INSTALLDIR', $config['root_path']);
  define('EJABBERD', true);
  define('GNUSOCIAL', true);
  define('STATUSNET', true);  // compatibility

  $server = $config['server'];
  require_once $config['root_path'] . 'lib/common.php';
  require_once $config['root_path'] . 'lib/util.php';

  common_config_set('syslog', 'appname', 'ejabberd'); // too late for init...

  // Load the plugin.
  require_once __DIR__ . '/BridgeGnusocial.php';
  return new BridgeGnusocial();
}