X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fcommon.php;h=c31c45f62612f8d218f6ef8cfe33a72ad3b94c17;hb=42545c662560e15e29cf620f6ed4f5e2c75b5647;hp=ca02a3e7fbc8f7854b570f059bc19abca950198a;hpb=12588b1cf73fad7d0a76a29a46ec355150eaa54e;p=quix0rs-gnu-social.git diff --git a/lib/common.php b/lib/common.php index ca02a3e7fb..c31c45f626 100644 --- a/lib/common.php +++ b/lib/common.php @@ -19,16 +19,12 @@ if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); } -// @fixme shouldn't this be in index.php instead? -//exit with 200 response, if this is checking fancy from the installer -if (isset($_REQUEST['p']) && $_REQUEST['p'] == 'check-fancy') { exit; } - // All the fun stuff to actually initialize StatusNet's framework code, // without loading up a site configuration. require_once INSTALLDIR . '/lib/framework.php'; try { - StatusNet::init(@$server, @$path, @$conffile); + GNUsocial::init(@$server, @$path, @$conffile); } catch (NoConfigException $e) { // XXX: Throw a conniption if database not installed // XXX: Find a way to use htmlwriter for this instead of handcoded markup