From 4c6803a0540243c2ae1e36b6fafc8728e69473cc Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Wed, 18 Sep 2013 00:35:49 +0200 Subject: [PATCH] GNUSOCIAL is the new defined indicator STATUSNET is still there for compatibility, so we don't have to change all scripts at once yet... --- index.php | 4 ++-- lib/installer.php | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/index.php b/index.php index dbb7fff6f8..98ad54a1fc 100644 --- a/index.php +++ b/index.php @@ -41,8 +41,8 @@ $_startTime = microtime(true); $_perfCounters = array(); define('INSTALLDIR', dirname(__FILE__)); -define('STATUSNET', true); -define('LACONICA', true); // compatibility +define('GNUSOCIAL', true); +define('STATUSNET', true); // compatibility $user = null; $action = null; diff --git a/lib/installer.php b/lib/installer.php index 187bdc172c..78f03b49dd 100644 --- a/lib/installer.php +++ b/lib/installer.php @@ -422,7 +422,7 @@ abstract class Installer // assemble configuration file in a string $cfg = "updateStatus("Initializing..."); ini_set('display_errors', 1); error_reporting(E_ALL); + if (!defined('GNUSOCIAL')) { + define('GNUSOCIAL', true); + } if (!defined('STATUSNET')) { - define('STATUSNET', 1); + define('STATUSNET', true); } require_once INSTALLDIR . '/lib/framework.php'; StatusNet::initDefaults($this->server, $this->path);