forked from GNUsocial/gnu-social
Don't redefine 'STATUSNET' in installer
This commit is contained in:
parent
1946eba7f4
commit
fad0c875ca
@ -44,7 +44,7 @@ abstract class Installer
|
|||||||
/** Web site info */
|
/** Web site info */
|
||||||
public $sitename, $server, $path, $fancy;
|
public $sitename, $server, $path, $fancy;
|
||||||
/** DB info */
|
/** DB info */
|
||||||
public $host, $dbname, $dbtype, $username, $password, $db;
|
public $host, $database, $dbtype, $username, $password, $db;
|
||||||
/** Administrator info */
|
/** Administrator info */
|
||||||
public $adminNick, $adminPass, $adminEmail, $adminUpdates;
|
public $adminNick, $adminPass, $adminEmail, $adminUpdates;
|
||||||
/** Should we skip writing the configuration file? */
|
/** Should we skip writing the configuration file? */
|
||||||
@ -509,7 +509,9 @@ abstract class Installer
|
|||||||
$this->updateStatus("Initializing...");
|
$this->updateStatus("Initializing...");
|
||||||
ini_set('display_errors', 1);
|
ini_set('display_errors', 1);
|
||||||
error_reporting(E_ALL);
|
error_reporting(E_ALL);
|
||||||
define('STATUSNET', 1);
|
if (!defined('STATUSNET')) {
|
||||||
|
define('STATUSNET', 1);
|
||||||
|
}
|
||||||
require_once INSTALLDIR . '/lib/framework.php';
|
require_once INSTALLDIR . '/lib/framework.php';
|
||||||
StatusNet::initDefaults($this->server, $this->path);
|
StatusNet::initDefaults($this->server, $this->path);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user